[IA64] Add __mca_table to the DISCARD list in gate.lds

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>

authored by

Jes Sorensen and committed by
Tony Luck
3283a67d d89cfe7f

+5
+1
arch/ia64/kernel/gate.lds.S
··· 59 *(.dynbss) 60 *(.bss .bss.* .gnu.linkonce.b.*) 61 *(__ex_table) 62 } 63 } 64
··· 59 *(.dynbss) 60 *(.bss .bss.* .gnu.linkonce.b.*) 61 *(__ex_table) 62 + *(__mca_table) 63 } 64 } 65
+4
include/asm-ia64/asmmacro.h
··· 38 39 /* 40 * Helper macros for accessing user memory. 41 */ 42 43 .section "__ex_table", "a" // declare section & section attributes
··· 38 39 /* 40 * Helper macros for accessing user memory. 41 + * 42 + * When adding any new .section/.previous entries here, make sure to 43 + * also add it to the DISCARD section in arch/ia64/kernel/gate.lds.S or 44 + * unpleasant things will happen. 45 */ 46 47 .section "__ex_table", "a" // declare section & section attributes