From 347072a2cbe5c007c0cd86b1f80667f22fc93ea9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 28 May 2014 22:40:31 +0000 Subject: [PATCH] gcc: define USE_PT_GNU_EH_FRAME for musl as well, reduces binary object size Signed-off-by: Felix Fietkau SVN-Revision: 40874 --- .../gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolchain/gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch b/toolchain/gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch index 0464bd7d26..637803ec3b 100644 --- a/toolchain/gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch +++ b/toolchain/gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch @@ -1,6 +1,6 @@ --- a/libgcc/crtstuff.c +++ b/libgcc/crtstuff.c -@@ -100,15 +100,20 @@ call_ ## FUNC (void) \ +@@ -100,15 +100,22 @@ call_ ## FUNC (void) \ #if defined(OBJECT_FORMAT_ELF) \ && !defined(OBJECT_FORMAT_FLAT) \ && defined(HAVE_LD_EH_FRAME_HDR) \ @@ -24,6 +24,8 @@ + || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) +# define USE_PT_GNU_EH_FRAME +# endif ++# else ++# define USE_PT_GNU_EH_FRAME # endif #endif -- 2.30.2