diff options
author | Roland McGrath <roland@redhat.com> | 2007-10-18 18:11:08 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2007-10-29 13:54:33 -0400 |
commit | 172c51068499ed4a168a2b94eda9d1f160a396a1 (patch) | |
tree | ad577214c0c3858b5f640e5040039037d320c60d /arch/ia64/kernel/gate.lds.S | |
parent | d650c37b2f8dbc5ac5055957617816eeb40ec79c (diff) |
[IA64] vDSO vs --build-id
When gcc uses --build-id by default, the gate.lds.S linker script runs afoul
of the new note section and produces a bad DSO image. This fixes it.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/gate.lds.S')
-rw-r--r-- | arch/ia64/kernel/gate.lds.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/kernel/gate.lds.S b/arch/ia64/kernel/gate.lds.S index 44817d97ab43..454d7a7dfa9d 100644 --- a/arch/ia64/kernel/gate.lds.S +++ b/arch/ia64/kernel/gate.lds.S | |||
@@ -20,6 +20,8 @@ SECTIONS | |||
20 | .gnu.version_d : { *(.gnu.version_d) } | 20 | .gnu.version_d : { *(.gnu.version_d) } |
21 | .gnu.version_r : { *(.gnu.version_r) } | 21 | .gnu.version_r : { *(.gnu.version_r) } |
22 | 22 | ||
23 | .note : { *(.note*) } :readable :note | ||
24 | |||
23 | .dynamic : { *(.dynamic) } :readable :dynamic | 25 | .dynamic : { *(.dynamic) } :readable :dynamic |
24 | 26 | ||
25 | /* | 27 | /* |
@@ -83,6 +85,7 @@ PHDRS | |||
83 | epc PT_LOAD FILEHDR PHDRS FLAGS(1); /* PF_X */ | 85 | epc PT_LOAD FILEHDR PHDRS FLAGS(1); /* PF_X */ |
84 | #endif | 86 | #endif |
85 | dynamic PT_DYNAMIC FLAGS(4); /* PF_R */ | 87 | dynamic PT_DYNAMIC FLAGS(4); /* PF_R */ |
88 | note PT_NOTE FLAGS(4); /* PF_R */ | ||
86 | unwind PT_IA_64_UNWIND; | 89 | unwind PT_IA_64_UNWIND; |
87 | } | 90 | } |
88 | 91 | ||