default to using @note for saving the linker opts (someone mentioned
authorSimon Marlow <marlowsd@gmail.com>
Wed, 10 Aug 2011 09:02:55 +0000 (10:02 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 10 Aug 2011 09:02:55 +0000 (10:02 +0100)
that it wasn't working on Alpha, because we had explicitly listed the
arches rather than having a sensible fallback).

compiler/main/DriverPipeline.hs

index ee002b2..43e096e 100644 (file)
@@ -1465,13 +1465,8 @@ mkExtraObjToLinkIntoBinary dflags dep_packages = do
 
             elfSectionNote :: String
             elfSectionNote = case platformArch (targetPlatform dflags) of
-                               ArchX86    -> "@note"
-                               ArchX86_64 -> "@note"
-                               ArchPPC    -> "@note"
-                               ArchPPC_64 -> "@note"
-                               ArchSPARC  -> "@note"
                                ArchARM    -> "%note"
-                               ArchUnknown -> panic "elfSectionNote ArchUnknown"
+                               _          -> "@note"
 
 -- The "link info" is a string representing the parameters of the
 -- link.  We save this information in the binary, and the next time we