freebsd-nq/lib
Dimitry Andric 9ef4e3afcb 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
2011-01-13 20:44:31 +00:00
..
bind Revert part of r217071 so that us mere mortals can clearly see 2011-01-09 23:47:11 +00:00
clang Don't use -fno-exceptions or -fno-rtti for .c files, when building 2010-11-14 22:17:12 +00:00
csu Apply a workaround for a binutils issue with the .note.ABI-tag section 2011-01-13 20:44:31 +00:00
libalias Remove redundant WARNS?=6 overrides and inherit the WARNS setting from 2010-03-02 18:44:08 +00:00
libarchive Don't write data into an empty "file." 2010-12-07 16:48:01 +00:00
libauditd Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libbegemot Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libblocksruntime Import libcompiler_rt into HEAD and add Makefiles. 2010-11-11 15:13:11 +00:00
libbluetooth Add the following Linux BlueZ compatibility macros: htobs(), htobl(), 2010-09-22 23:41:02 +00:00
libbsm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libbsnmp Unbreak the build by temprorarily not using include directives in 2010-12-20 22:56:50 +00:00
libbz2 Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libc Implement __pthread_map_stacks_exec() callback for libc, to change the 2011-01-08 17:13:43 +00:00
libcalendar Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libcam Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
libcom_err
libcompat Small style(9) fix: use tabs instead of spaces. 2010-08-08 08:19:23 +00:00
libcompiler_rt Fix braino in r217101. -Wa is used to supply assembler flag to cc driver. 2011-01-07 15:59:23 +00:00
libcrypt Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libdevinfo Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libdevstat Spelling fixes. 2010-08-03 17:40:09 +00:00
libdisk mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libdwarf Removed redundant -I. from CFLAGS and "yes" from WITHOUT_MAN. 2010-02-25 22:16:30 +00:00
libedit libedit: Try to map <Delete> to ed-delete-next-char. 2010-09-05 16:12:10 +00:00
libefi Spelling fixes. 2010-08-03 17:40:09 +00:00
libelf mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libexpat Fix buildworld -DNO_CLEAN when using with Perforce, which marks files as 2010-08-12 20:46:49 +00:00
libfetch Move variable declarations into the conditional block where they are 2010-10-24 01:05:10 +00:00
libftpio mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
libgeom Remove stale link. 2010-12-04 08:44:56 +00:00
libgpib Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
libgssapi mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libipsec The use of snprintf() to append to a buffer is not valid according to C99 2010-12-11 08:07:21 +00:00
libipx Fix incorrect usage of 'assure' and 'insure'. 2010-08-28 16:32:01 +00:00
libjail Find a jail's type as part of jailparam_init rather than waiting until 2010-10-27 21:01:53 +00:00
libkiconv Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libkse Merge from tbemd: 2010-06-13 01:27:29 +00:00
libkvm Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
liblzma Remove obsoleted private symbol. 2010-11-19 09:59:55 +00:00
libmagic Use CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all the 2010-08-01 12:10:32 +00:00
libmd Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmemstat Spelling fixes. 2010-08-03 17:40:09 +00:00
libmilter Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libmp Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libncp Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libnetgraph bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expects 2009-12-28 12:29:13 +00:00
libngatm Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libopie Let libopie use utmpx instead of utmp. 2010-01-13 18:02:30 +00:00
libpam Add <time.h> for ctime(), which we accidentally picked up through 2010-11-22 14:45:16 +00:00
libpcap Regenerate our lib/libpcap/config.h for libpcap 1.1.1. 2010-10-29 22:57:14 +00:00
libpkg - Take libinstall.a out of pkg_install and make it a proper shared library. 2010-04-23 11:07:43 +00:00
libpmc Fix manpage markup. 2010-11-06 10:54:33 +00:00
libproc Fix a memory leak on the error condition 2010-12-14 15:14:08 +00:00
libradius Add links for libradius(3) functions. 2010-10-18 12:35:10 +00:00
librpcsec_gss Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
librpcsvc
librt To support stack unwinding for cancellation points, add -fexceptions flag 2010-09-25 01:57:47 +00:00
librtld_db Spelling fixes. 2010-08-03 17:40:09 +00:00
libsbuf Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsdp Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
libsm Enable the use of nanosleep() instead of using pause() and signals. 2010-03-04 05:53:06 +00:00
libsmb Bump the version of all non-symbol-versioned shared libraries in 2009-07-19 17:25:24 +00:00
libsmdb Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libsmutil Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libstand On i386 and amd64, consistently use the following options whenever we 2011-01-05 22:24:33 +00:00
libtacplus mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libtelnet
libthr Fix a typo. 2011-01-11 01:57:02 +00:00
libthread_db Repair some build breakage introduced in r211725 and garbage collect some 2010-08-28 15:03:11 +00:00
libufs Search beyond the first 1/8th of inodes. 2010-05-01 18:56:45 +00:00
libugidfw Quiet clang warnings by using string literal format strings. 2011-01-04 13:02:52 +00:00
libulog Fix reference to nonexistent manpage getuid(3). 2010-10-11 20:30:57 +00:00
libusb Check the return value of malloc(). 2010-12-14 15:11:49 +00:00
libusbhid - Add support for libusbhid in 32-bit compatibility mode. 2010-10-16 11:20:53 +00:00
libutil mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
libvgl Change libvgl's set4pixels() and set2lines() functions from plain 2010-10-04 18:16:38 +00:00
libwrap Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
liby Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libypclnt Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
libz Revert 212517 to restore pristine state of this file 2010-10-13 16:34:08 +00:00
msun Add section .note.GNU-stack for assembly files used by 386 and amd64. 2011-01-07 16:13:12 +00:00
ncurses Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00
Makefile Replace libgcc.a by libcompiler_rt.a. 2010-11-11 15:48:27 +00:00
Makefile.inc Build lib/ with WARNS=6 by default. 2010-01-02 09:58:07 +00:00