Skip to content

Commit

Permalink
[IA64] Add __mca_table to the DISCARD list in gate.lds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jes Sorensen authored and Tony Luck committed Mar 30, 2006
1 parent d89cfe7 commit 3283a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/ia64/kernel/gate.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ SECTIONS
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(__ex_table)
*(__mca_table)
}
}

Expand Down
4 changes: 4 additions & 0 deletions include/asm-ia64/asmmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

/*
* 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
Expand Down

0 comments on commit 3283a67

Please sign in to comment.