From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9166 Path: news.gmane.org!not-for-mail From: Felix Fietkau Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl mips n64 dynamic build Date: Thu, 21 Jan 2016 20:11:27 +0100 Message-ID: <56A12D5F.6070407@openwrt.org> References: <20151019151840.GM8645@brightrain.aerifal.cx> <20151020104019.GC10551@port70.net> <20151027013045.GT8645@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1453403511 25637 80.91.229.3 (21 Jan 2016 19:11:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 19:11:51 +0000 (UTC) Cc: Mahesh Bodapati To: musl@lists.openwall.com Original-X-From: musl-return-9179-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 21 20:11:50 2016 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 1aMKe6-0001k4-Cc for gllmg-musl@m.gmane.org; Thu, 21 Jan 2016 20:11:50 +0100 Original-Received: (qmail 19613 invoked by uid 550); 21 Jan 2016 19:11:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19595 invoked from network); 21 Jan 2016 19:11:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Virus-Scanned: at arrakis.dune.hu User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <20151027013045.GT8645@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:9166 Archived-At: On 2015-10-27 02:30, Rich Felker wrote: > On Tue, Oct 20, 2015 at 12:40:21PM +0200, Szabolcs Nagy wrote: >> * Mahesh Bodapati [2015-10-20 15:14:04 +0530]: >> > Error relocating libc.so: unsupported relocation type 4611 >> > Error relocating libc.so: unsupported relocation type 4611 >> > Error relocating libc.so: unsupported relocation type 4611 >> .... >> > *#define REL_SYM_OR_REL R_MIPS_64 /*I didn't see R_MIPS_REL64 so >> > It is a composition of R_MIPS_64 and R_MIPS_REL relocations but i didn't >> > see R_MIPS_REL in elf.h. * >> > * >> > how can i define REL_SYM_OR_REL for mips n64 abi */* >> >> i don't know what the n64 abi docs says, but this might be a hint: >> >> glibc/sysdeps/mips/dl-machine.h has >> >> #if _MIPS_SIM == _ABI64 >> case (R_MIPS_64 << 8) | R_MIPS_REL32: >> #else >> case R_MIPS_REL32: >> #endif >> >> where R_MIPS_64 << 8 | R_MIPS_REL32 is 4611. > > This seems right. Mahesh, did you get a chance to try this? Does it > help? Manesh, any update on this? I'm really interested in musl MIPS64 support for OpenWrt - I'd like to move away from glibc for that arch. I can also help with testing and bugfixing once this is getting somewhere... Thanks, - Felix