summaryrefslogtreecommitdiffstats
path: root/tools/mklibs/patches/007-gc_sections.patch
diff options
context:
space:
mode:
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-09 21:22:37 +0000
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-09 21:22:37 +0000
commit71a8b79240ea9c43573d52dd22ebe12e47d29c3d (patch)
tree6afffc145f45846126e51a65c5710b46b343b573 /tools/mklibs/patches/007-gc_sections.patch
parentdd225c9d80e62871cbf0ec3964468b62b785da5e (diff)
[tools] mklibs: update to 0.1.34
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32145 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mklibs/patches/007-gc_sections.patch')
-rw-r--r--tools/mklibs/patches/007-gc_sections.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/mklibs/patches/007-gc_sections.patch b/tools/mklibs/patches/007-gc_sections.patch
new file mode 100644
index 000000000..2a75b675b
--- /dev/null
+++ b/tools/mklibs/patches/007-gc_sections.patch
@@ -0,0 +1,11 @@
+--- a/src/mklibs
++++ b/src/mklibs
+@@ -609,7 +609,7 @@ while 1:
+ # compile in only used symbols
+ cmd = []
+ cmd.extend(gcc_options)
+- cmd.append("-nostdlib -nostartfiles -shared -Wl,-soname=" + soname)
++ cmd.append("-nostdlib -nostartfiles -shared -Wl,--gc-sections -Wl,-soname=" + soname)
+ cmd.extend(["-u%s" % a.linker_name() for a in symbols])
+ cmd.extend(["-o", dest_path + "/" + so_file_name + "-so"])
+ cmd.extend(extra_pre_obj)