XXX: This is a hack, the note inclusion does not belong here, and

it belongs in a separate elf_nbsd.sh, included from elf_i386_nbsd.sh.
The problem is described in:
https://bugzilla.redhat.com/show_bug.cgi?id=492183#c7, namely if
all the sections are not defined in the ld script, it can screw
up.  This happens when building /usr/src/usr.sbin.crash with
MKPIE=yes. Thanks to Piotr Meyer for the report and analysis.
We don't need to fix any other archs yet (because crash only works on i386),
but we should. skrll should look into it, please :-)
This commit is contained in:
christos 2010-04-20 22:47:48 +00:00
parent 22f8c9421b
commit 22c1c07780
1 changed files with 1 additions and 0 deletions

View File

@ -12,3 +12,4 @@ GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
SEPARATE_GOTPLT=12
OTHER_SECTIONS=".note.netbsd.ident 0 : { KEEP(*(.note.netbsd.ident)); }"