mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] fix unresolved symbol issues on ARMv7 due to raise/divmod dependency
@ 2016-02-23 20:21 Dima Krasner
  2016-02-23 20:43 ` Szabolcs Nagy
  0 siblings, 1 reply; 4+ messages in thread
From: Dima Krasner @ 2016-02-23 20:21 UTC (permalink / raw)
  To: musl

Similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31798

Signed-off-by: Dima Krasner <dima@dimakrasner.com>
---
 tools/ld.musl-clang.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/ld.musl-clang.in b/tools/ld.musl-clang.in
index 93763d6..bb6cbaf 100644
--- a/tools/ld.musl-clang.in
+++ b/tools/ld.musl-clang.in
@@ -48,4 +48,5 @@ for x ; do
     esac
 done
 
-exec $($cc -print-prog-name=ld) -nostdlib "$@" -lc -dynamic-linker "$ldso"
+lgcc=$($cc -print-file-name=libgcc.a)
+exec $($cc -print-prog-name=ld) -nostdlib "$@" --as-needed $lgcc --no-as-needed -lc --as-needed $lgcc --no-as-needed -dynamic-linker "$ldso"
-- 
2.1.4

-- 
Dima Krasner <dima@dimakrasner.com>



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

end of thread, other threads:[~2016-02-23 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 20:21 [PATCH] fix unresolved symbol issues on ARMv7 due to raise/divmod dependency Dima Krasner
2016-02-23 20:43 ` Szabolcs Nagy
2016-02-23 20:45   ` Rich Felker
2016-02-23 21:06     ` Shiz

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).