aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-05-14 19:32:41 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-05-14 19:32:41 +0000
commit889a09254b78702d7811a4d4aa6b2ef47f4f2cfe (patch)
tree82651106b32a94f3bda1a42dfc043bec92b1fdf7
parented7d82c44d00dd9d5b148e1ad9f903fd9ec7636a (diff)
downloadsrc-889a09254b78702d7811a4d4aa6b2ef47f4f2cfe.tar.gz
src-889a09254b78702d7811a4d4aa6b2ef47f4f2cfe.zip
MF11 r361047:
MFC r360915: 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. Approved by: re (gjb) PR: 246322 Differential Revision: https://reviews.freebsd.org/D24797
Notes
Notes: svn path=/releng/11.4/; revision=361050
-rw-r--r--lib/csu/Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 95d5c5e5f355..b2c3186b7182 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -6,4 +6,7 @@ SED_FIX_NOTE = -i "" -e '/\.note\.tag/s/progbits/note/'
NO_WMISSING_VARIABLE_DECLARATIONS=
+CFLAGS+= -fno-asynchronous-unwind-tables
+CFLAGS+= -fno-omit-frame-pointer
+
.include "../Makefile.inc"