Author: kib
Date: Fri Jun 18 11:09:51 2010
New Revision: 209294
URL: http://svn.freebsd.org/changeset/base/209294

Log:
  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

Modified:
  head/gnu/lib/csu/Makefile

Modified: head/gnu/lib/csu/Makefile
==============================================================================
--- head/gnu/lib/csu/Makefile   Fri Jun 18 09:40:01 2010        (r209293)
+++ head/gnu/lib/csu/Makefile   Fri Jun 18 11:09:51 2010        (r209294)
@@ -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}
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to