Commit 172c5106 authored by Roland McGrath's avatar Roland McGrath Committed by Tony Luck

[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: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent d650c37b
...@@ -20,6 +20,8 @@ SECTIONS ...@@ -20,6 +20,8 @@ SECTIONS
.gnu.version_d : { *(.gnu.version_d) } .gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) } .gnu.version_r : { *(.gnu.version_r) }
.note : { *(.note*) } :readable :note
.dynamic : { *(.dynamic) } :readable :dynamic .dynamic : { *(.dynamic) } :readable :dynamic
/* /*
...@@ -83,6 +85,7 @@ PHDRS ...@@ -83,6 +85,7 @@ PHDRS
epc PT_LOAD FILEHDR PHDRS FLAGS(1); /* PF_X */ epc PT_LOAD FILEHDR PHDRS FLAGS(1); /* PF_X */
#endif #endif
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */ dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
note PT_NOTE FLAGS(4); /* PF_R */
unwind PT_IA_64_UNWIND; unwind PT_IA_64_UNWIND;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment