Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] kmod: disable --gc-sections ld option when building for xtensa
@ 2014-03-04 19:10 Max Filippov
  2014-03-04 19:22 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Max Filippov @ 2014-03-04 19:10 UTC (permalink / raw)
  To: buildroot

This is a workaround for the following ld issue exhibited by --gc-sections
option, until a proper fix for binutils is ready:

ld: BFD (GNU Binutils) 2.22 internal error, aborting at elf32-xtensa.c line 3374 in elf_xtensa_finish_dynamic_sections

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 package/kmod/900-disable-gc-sections.patch.xtensa | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 package/kmod/900-disable-gc-sections.patch.xtensa

diff --git a/package/kmod/900-disable-gc-sections.patch.xtensa b/package/kmod/900-disable-gc-sections.patch.xtensa
new file mode 100644
index 0000000..2b7a9cb
--- /dev/null
+++ b/package/kmod/900-disable-gc-sections.patch.xtensa
@@ -0,0 +1,12 @@
+--- kmod-16/configure	2013-12-23 01:31:12.456202872 +0400
++++ kmod-16.mod/configure	2014-03-04 22:53:37.132241845 +0400
+@@ -14511,8 +14511,7 @@
+ 
+ 
+   for flag in  \
+-		       -Wl,--as-needed \
+-		       -Wl,--gc-sections; do
++		       -Wl,--as-needed ; do
+ 
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
+ $as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-04 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 19:10 [Buildroot] [PATCH] kmod: disable --gc-sections ld option when building for xtensa Max Filippov
2014-03-04 19:22 ` Thomas Petazzoni
2014-03-04 20:23   ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox