Skip to content

Commit

Permalink
[IA64] vDSO vs --build-id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland McGrath authored and Tony Luck committed Oct 29, 2007
1 parent d650c37 commit 172c510
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/ia64/kernel/gate.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 172c510

Please sign in to comment.