diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-05-11 19:36:38 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-05-11 19:36:38 +0000 |
commit | 28845ae1ababf3ce0fc695d45e0213a7911603b5 (patch) | |
tree | 0d608fe3a24f0cf9ce8cf7bc60b69adcf23b2c23 | |
parent | 6043ac201ab3ce0df2342c8453a7375157b0f860 (diff) | |
download | src-28845ae1ababf3ce0fc695d45e0213a7911603b5.tar.gz src-28845ae1ababf3ce0fc695d45e0213a7911603b5.zip |
Use -fno-asynchronous-unwind-tables to compile lib/csu
Summary:
In r209294 kib added -fno-asynchronous-unwind-tables to the compile
flags for the GNU C startup components. This was done to work around a
BFD ld assertion, "no .eh_frame_hdr table will be created", which is
produced because of the layout of the startup objects.
Add the same flag to lib/csu too, for the same reason. And similarly to
r209294, also add -fno-omit-frame-pointer.
This is primarily meant to quickly MFC to stable/11, so it can end up in
the 11.4 release, as a fix for https://bugs.freebsd.org/246322.
PR: 246322
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D24797
Notes
Notes:
svn path=/head/; revision=360915
-rw-r--r-- | lib/csu/Makefile.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc index d6f5ca78fbe1..c27d44f2a8d9 100644 --- a/lib/csu/Makefile.inc +++ b/lib/csu/Makefile.inc @@ -13,6 +13,9 @@ NO_WMISSING_VARIABLE_DECLARATIONS= OBJS+= crtbegin.o crtbeginS.o crtbeginT.o OBJS+= crtend.o crtendS.o +CFLAGS+= -fno-asynchronous-unwind-tables +CFLAGS+= -fno-omit-frame-pointer + CFLAGS_CRTS= -DSHARED ${PICFLAG} crtbegin.o: crtbegin.c |