Skip to content
Snippets Groups Projects
Commit 62ca8ae7 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

gcc: define USE_PT_GNU_EH_FRAME for musl as well, reduces binary object size


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 40874
parent dfabb768
No related branches found
No related tags found
No related merge requests found
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment