mailing list of musl libc
 help / color / mirror / code / Atom feed
* SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area
@ 2015-08-20  0:44 Christian Lamparter
  2015-08-20  1:03 ` curious file access problem Sebastian Gottschall
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Christian Lamparter @ 2015-08-20  0:44 UTC (permalink / raw)
  To: musl

Hello,

I'm trying to add a port for a SH4-like ARCH to OpenWRT, which uses the latest
musl-1.1.10 as the default libc. I'm having the following problem when building
the toolchain:

During the final linker-step, the symbol "__set_thread_area"  declared twice.
This is because the SH architecture provides a separate __set_thread_area [0],
(other archs use the standard syscall wrapper from [1]).

Obviously, I want this issue fixed. However I'm new to SuperH and musl, that's
why I need advise :-D. For now, I defined the src/thread/__set_thread_area as
a weak symbol. Now, that's just a crude hack, what would be better solution?
(I can make and post the patch if necessary - But sadly, I can't test it on the
hardware yet)?

Regards,
Christian  

[0] <http://git.musl-libc.org/cgit/musl/tree/arch/sh/src/__set_thread_area.c>
[1] <http://git.musl-libc.org/cgit/musl/tree/src/thread/__set_thread_area.c>


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

end of thread, other threads:[~2015-08-25  7:48 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20  0:44 SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Christian Lamparter
2015-08-20  1:03 ` curious file access problem Sebastian Gottschall
2015-08-20  2:56   ` Rich Felker
2015-08-20  6:48   ` Bastian Bittorf
2015-08-20 10:55     ` Sebastian Gottschall
2015-08-20 13:25       ` Bastian Bittorf
2015-08-20 13:48         ` Rich Felker
2015-08-20 14:26           ` Bastian Bittorf
2015-08-20 14:32             ` Rich Felker
2015-08-20 14:51           ` Sebastian Gottschall
2015-08-20 15:00             ` Rich Felker
2015-08-20 18:30               ` Timo Teras
2015-08-20 21:03                 ` Sebastian Gottschall
2015-08-20 21:46                 ` Sebastian Gottschall
2015-08-20 14:14   ` Bastian Bittorf
2015-08-20  1:34 ` SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Bobby Bingham
2015-08-20  3:04 ` Rich Felker
2015-08-20 10:21   ` Christian Lamparter
2015-08-21 14:07     ` Christian Lamparter
2015-08-21 14:23       ` Rich Felker
2015-08-25  7:48         ` Felix Fietkau

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).