summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-06-18 11:09:51 +0000
committerkib <kib@FreeBSD.org>2010-06-18 11:09:51 +0000
commit056723449a64f6bd8fd42529e077378e2b34733c (patch)
tree63dba31ae18cc387ba7b5be99483adfdc85e1081 /gnu/lib
parentde5b3a7add84950b23cc40c7ae54c2a8f2b5a424 (diff)
downloadFreeBSD-src-056723449a64f6bd8fd42529e077378e2b34733c.zip
FreeBSD-src-056723449a64f6bd8fd42529e077378e2b34733c.tar.gz
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. While there, disable omitting the frame pointer [1]. Requested by: kan [1] Reviewed by: kan MFC after: 2 weeks
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/csu/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/lib/csu/Makefile b/gnu/lib/csu/Makefile
index 382a1ff..306ced5 100644
--- a/gnu/lib/csu/Makefile
+++ b/gnu/lib/csu/Makefile
@@ -17,7 +17,8 @@ CSTD?= gnu89
CFLAGS+= -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3
CFLAGS+= -finhibit-size-directive -fno-inline-functions \
-fno-exceptions -fno-zero-initialized-in-bss \
- -fno-zero-initialized-in-bss -fno-toplevel-reorder
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder \
+ -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
CFLAGS+= -I${GCCLIB}/include -I${GCCDIR}/config -I${GCCDIR} -I. \
-I${CCDIR}/cc_tools
CRTS_CFLAGS= -DCRTSTUFFS_O -DSHARED ${PICFLAG}
OpenPOWER on IntegriCloud