summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-10-18 15:11:08 -0700
committerTony Luck <tony.luck@intel.com>2007-10-29 10:54:33 -0700
commit172c51068499ed4a168a2b94eda9d1f160a396a1 (patch)
treead577214c0c3858b5f640e5040039037d320c60d
parentd650c37b2f8dbc5ac5055957617816eeb40ec79c (diff)
downloadop-kernel-dev-172c51068499ed4a168a2b94eda9d1f160a396a1.zip
op-kernel-dev-172c51068499ed4a168a2b94eda9d1f160a396a1.tar.gz
[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>
-rw-r--r--arch/ia64/kernel/gate.lds.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ia64/kernel/gate.lds.S b/arch/ia64/kernel/gate.lds.S
index 44817d9..454d7a7 100644
--- a/arch/ia64/kernel/gate.lds.S
+++ b/arch/ia64/kernel/gate.lds.S
@@ -20,6 +20,8 @@ SECTIONS
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
+ .note : { *(.note*) } :readable :note
+
.dynamic : { *(.dynamic) } :readable :dynamic
/*
@@ -83,6 +85,7 @@ PHDRS
epc PT_LOAD FILEHDR PHDRS FLAGS(1); /* PF_X */
#endif
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
+ note PT_NOTE FLAGS(4); /* PF_R */
unwind PT_IA_64_UNWIND;
}
OpenPOWER on IntegriCloud