diff options
author | David Mosberger-Tang <dmosberger@gmail.com> | 2007-08-09 13:53:15 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-08-13 16:28:04 -0400 |
commit | 336cdba8640677117bc3fd101e3e1a34c98a275d (patch) | |
tree | c5738d1c291f7b0079a604e4ef29a26adf6b106e /arch/ia64/kernel/vmlinux.lds.S | |
parent | 5d36aa9bbed32507b21e345f9d065868af5f5991 (diff) |
[IA64] need NOTES in vmlinux.lds.S
Add NOTES to linker script such that the kernel can be built with
recent versions of binutils. Without this patch, final link fails
with this error:
ld: .tmp_vmlinux1: section `.text' can't be allocated in segment 0
ld: final link failed: Bad value
This error is due to the fact that the --build-id option is used
with newer linkers to include a .notes section on the kernel, but
without the NOTES macro, that section won't be included in the kernel
which then leads to the above error message.
Signed-off-by: David Mosberger-Tang <dmosberger@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/ia64/kernel/vmlinux.lds.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ia64/kernel/vmlinux.lds.S b/arch/ia64/kernel/vmlinux.lds.S index 83e80677de70..446f12d866b3 100644 --- a/arch/ia64/kernel/vmlinux.lds.S +++ b/arch/ia64/kernel/vmlinux.lds.S | |||
@@ -20,6 +20,7 @@ PHDRS { | |||
20 | code PT_LOAD; | 20 | code PT_LOAD; |
21 | percpu PT_LOAD; | 21 | percpu PT_LOAD; |
22 | data PT_LOAD; | 22 | data PT_LOAD; |
23 | note PT_NOTE; | ||
23 | } | 24 | } |
24 | SECTIONS | 25 | SECTIONS |
25 | { | 26 | { |
@@ -62,6 +63,9 @@ SECTIONS | |||
62 | 63 | ||
63 | /* Read-only data */ | 64 | /* Read-only data */ |
64 | 65 | ||
66 | NOTES :code :note /* put .notes in text and mark in PT_NOTE */ | ||
67 | code_continues : {} :code /* switch back to regular program... */ | ||
68 | |||
65 | /* Exception table */ | 69 | /* Exception table */ |
66 | . = ALIGN(16); | 70 | . = ALIGN(16); |
67 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) | 71 | __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) |
@@ -276,10 +280,6 @@ SECTIONS | |||
276 | .debug_typenames 0 : { *(.debug_typenames) } | 280 | .debug_typenames 0 : { *(.debug_typenames) } |
277 | .debug_varnames 0 : { *(.debug_varnames) } | 281 | .debug_varnames 0 : { *(.debug_varnames) } |
278 | /* These must appear regardless of . */ | 282 | /* These must appear regardless of . */ |
279 | /* Discard them for now since Intel SoftSDV cannot handle them. | ||
280 | .comment 0 : { *(.comment) } | ||
281 | .note 0 : { *(.note) } | ||
282 | */ | ||
283 | /DISCARD/ : { *(.comment) } | 283 | /DISCARD/ : { *(.comment) } |
284 | /DISCARD/ : { *(.note) } | 284 | /DISCARD/ : { *(.note) } |
285 | } | 285 | } |