[IA64] Add __mca_table to the DISCARD list in gate.lds
authorJes Sorensen <jes@sgi.com>
Thu, 30 Mar 2006 15:13:22 +0000 (10:13 -0500)
committerTony Luck <tony.luck@intel.com>
Thu, 30 Mar 2006 17:04:19 +0000 (09:04 -0800)
Add __mca_table to the DISCARD list for the gate.lds linker script to
avoid broken linker references when linking the final vmlinux file.

Also add comment to include/asm-ia64/asmmacros.h to avoid anyone else
hitting this problem in the future.

Credits to James Bottomley <James.Bottomley@SteelEye.com> for spotting
the DISCARD list in gate.lds.S

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/gate.lds.S
include/asm-ia64/asmmacro.h

index e1e4aba..7c99e6e 100644 (file)
@@ -59,6 +59,7 @@ SECTIONS
        *(.dynbss)
        *(.bss .bss.* .gnu.linkonce.b.*)
        *(__ex_table)
+       *(__mca_table)
   }
 }
 
index d4cec32..edf2ceb 100644 (file)
@@ -38,6 +38,10 @@ name:
 
 /*
  * Helper macros for accessing user memory.
+ *
+ * When adding any new .section/.previous entries here, make sure to
+ * also add it to the DISCARD section in arch/ia64/kernel/gate.lds.S or
+ * unpleasant things will happen.
  */
 
        .section "__ex_table", "a"              // declare section & section attributes