diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-28 22:40:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-28 22:40:31 +0000 |
commit | a114d8a80a591c74681459ebfbc1bf14ee73b819 (patch) | |
tree | 91314f49359332bd73b960864289c8fa513e9767 | |
parent | 611855797c3a70db10aaabf39d96ac292ecb865d (diff) | |
download | master-187ad058-a114d8a80a591c74681459ebfbc1bf14ee73b819.tar.gz master-187ad058-a114d8a80a591c74681459ebfbc1bf14ee73b819.tar.bz2 master-187ad058-a114d8a80a591c74681459ebfbc1bf14ee73b819.zip |
gcc: define USE_PT_GNU_EH_FRAME for musl as well, reduces binary object size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40874 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | toolchain/gcc/patches/4.8-linaro/860-uclibc_use_eh_frame.patch | 4 |
1 files changed, 3 insertions, 1 deletions
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 |