From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8334 Path: news.gmane.org!not-for-mail From: Christian Lamparter Newsgroups: gmane.linux.lib.musl.general Subject: SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Date: Thu, 20 Aug 2015 02:44:11 +0200 Message-ID: <5769061.FLTLqujSyv@debian64> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1440031502 16806 80.91.229.3 (20 Aug 2015 00:45:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2015 00:45:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8346-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 20 02:44:56 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZSDyN-0003Tu-7W for gllmg-musl@m.gmane.org; Thu, 20 Aug 2015 02:44:51 +0200 Original-Received: (qmail 30027 invoked by uid 550); 20 Aug 2015 00:44:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29844 invoked from network); 20 Aug 2015 00:44:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type; bh=LP7FSlZVay4sxHcVWPMQBWmYCwP8u8SzcK4REjBJw5g=; b=v2nASbZClNZllHPTLMomyFA4U+rqchxA28+RjqwptK2fKJ6UW1Go+X8Fhzo5L+UHgo 13Eu/+gRoVLH/ylMs3nnclogU8y0NSQ1sELjrBUUUJzu3gj4FfMQPHaHyOp+kueq8QpH s91yZJkOFtO1RX66Gf2pOLWZmUlGMniCKqTxxpCT/8voncQQAv8Aq56lZhRh1UD4acFv sdtqvRi4CXRmS/9uyjowu7W2HypLbMz0NzD8ovIcLq7c0G0OPKnCF3cJonlnkAUBvPww fXeVfPzHmR5CS2H3iInJicEz94NJDWure0KdbOrE9KbvoAjtyy+MRDm0dFdZJ2X7++1k 6BNQ== X-Received: by 10.180.86.73 with SMTP id n9mr57825597wiz.78.1440031454513; Wed, 19 Aug 2015 17:44:14 -0700 (PDT) User-Agent: KMail/4.14.2 (Linux/4.2.0-rc6-wl+; KDE/4.14.10; x86_64; ; ) Xref: news.gmane.org gmane.linux.lib.musl.general:8334 Archived-At: 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] [1]