gnu/lib/csu: Add -fno-asynchronous-unwind-tables to the CFLAGS.
authorSascha Wildner <saw@online.de>
Sun, 27 Feb 2011 18:25:38 +0000 (19:25 +0100)
committerSascha Wildner <saw@online.de>
Sun, 27 Feb 2011 18:26:17 +0000 (19:26 +0100)
commit969901d936647c285e2fee56e6b01464e4c0726f
tree154817e04145b7b2b71772e951d1d1e1b9657bfd
parentda4f706e0f74596494bad85297eb01e6f10ca61c
gnu/lib/csu: Add -fno-asynchronous-unwind-tables to the CFLAGS.

Quoth FreeBSD's commit msg:

Often reported issue with newer ld is:
error in /usr/lib/crtendS.o(.eh_frame); no .eh_frame_hdr table will
be created.

The issue is that crtend is compiled with unwind table, and also it
places the special CIE into the .eh_frame indicating the end of
section, that is located before generated unwind table. New ld has
assertion that verifies that closing CIE is indeed the last CIE,
causing the crypting message to be issued, and refusing to generate
dwarf unwind.

Add -fno-asynchronous-unwind-tables to disable unwind table generation
for crtbegin/crtend.

Taken-from: FreeBSD
gnu/lib/csu/Makefile.csu