From 4a0e0cd7377c45dc21d5c71bcab931b5e5727e74 Mon Sep 17 00:00:00 2001 From: John Marino Date: Mon, 18 Feb 2013 01:15:59 +0100 Subject: [PATCH] csu: Fix .eh_frame_hdr errors seen on i386 The libcsu object files should have been generated with -fno-asynchronous-unwind-tables. The crtbegin*, crtend* objects, specific to a compiler, were generated with this flag on both platforms as seen in the vendor build. This commit builds libcsu with the same cflags on both platforms, and it allows the error frame header to get built successfully. This has been seen on i386 for a while, and later bug #2511 hit upon it outside of the world build. --- lib/csu/i386/Makefile.csu | 2 ++ lib/csu/x86_64/Makefile.csu | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/csu/i386/Makefile.csu b/lib/csu/i386/Makefile.csu index a54a747a60..d47b9a5de7 100644 --- a/lib/csu/i386/Makefile.csu +++ b/lib/csu/i386/Makefile.csu @@ -10,6 +10,8 @@ WARNS?= 2 CFLAGS+= -I${CSUDIR}/../common \ -I${CSUDIR}/../../libc/include +CFLAGS+= -fno-omit-frame-pointer +CFLAGS+= -fno-asynchronous-unwind-tables .PATH: ${CSUDIR} ${CSUDIR}/../common diff --git a/lib/csu/x86_64/Makefile.csu b/lib/csu/x86_64/Makefile.csu index 6540faa885..6d97864c91 100644 --- a/lib/csu/x86_64/Makefile.csu +++ b/lib/csu/x86_64/Makefile.csu @@ -10,6 +10,7 @@ WARNS?= 2 CFLAGS+= -I${CSUDIR}/../common \ -I${CSUDIR}/../../libc/include CFLAGS+= -fno-omit-frame-pointer +CFLAGS+= -fno-asynchronous-unwind-tables .PATH: ${CSUDIR} ${CSUDIR}/../common -- 2.41.0