aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/re
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-01-13 20:44:31 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-01-13 20:44:31 +0000
commit9ef4e3afcb2e1d7c7a2e3aa77d02e802654d96da (patch)
treebed14e15d037c7e323186851d3d94c920705aec5 /sys/dev/re
parentc1338c65d63b78f4f3a9c95dc11b3edd85a58135 (diff)
downloadsrc-9ef4e3afcb2e1d7c7a2e3aa77d02e802654d96da.tar.gz
src-9ef4e3afcb2e1d7c7a2e3aa77d02e802654d96da.zip
Apply a workaround for a binutils issue with the .note.ABI-tag section
generated from lib/csu/common/crtbrand.c (which ultimately ends up in executables and shared libraries, via crt1.o, gcrt1.o or Scrt1.o). For all arches except sparc, gcc emits the section directive for the abitag struct in crtbrand.c with a PROGBITS type. However, newer versions of binutils (after 2.16.90) require the section to be of NOTE type, to guarantee that the .note.ABI-tag section correctly ends up in the first page of the final executable. Unfortunately, there is no clean way to tell gcc to use another section type, so crtbrand.c (or the C files that include it) must be compiled in multiple steps: - Compile the .c file to a .s file. - Edit the .s file to change the 'progbits' type to 'note', for the section directive that defines the .note.ABI-tag section. - Compile the .s file to an object file. These steps are done in the invididual Makefiles for each applicable arch. Reviewed by: kib
Notes
Notes: svn path=/head/; revision=217375
Diffstat (limited to 'sys/dev/re')
0 files changed, 0 insertions, 0 deletions