Date: Thu, 4 Sep 2014 12:17:57 -0500 From: Rob Landley <rob@...dley.net> To: musl@...ts.openwall.com Subject: Re: libc.so segfaults on mips On Thu, Sep 4, 2014 at 10:58 AM, Rich Felker <dalias@...c.org> wrote: > On Thu, Sep 04, 2014 at 11:20:32PM +0800, Рысь wrote: >> >> >> 4 сентября 2014 г. 22:57:01 KRAT, Rich Felker <dalias@...c.org> пишет: >> >> >This output looks incomplete. MIPS readelf -a output should end with a >> >large section that starts with: >> > >> >Primary GOT: >> > Canonical gp value: 000b2f90 >> > >> >followed by >> > >> > Local entries: >> > ... >> > >> > Global entries: >> > ... >> > >> >This is where I would be able to tell if something is wrong. Do you >> >perhaps have an ancient version of readelf? If you're using the native >> >one that came with your mips toolchain, try the host readelf instead >> >from a normal system. >> > >> >Rich >> >> Yes, it is. The host one is same and generates same output. Had to >> download file to another machine with binutils 2.21, it is attached. >> (Or if you want to play with it, here is a compiled libc.so: >> http://lynxlynx.tk/lynx/libc.so) > > I can tell you from reading that readelf output that > -Bsymbolic-functions was ignored by the linker (or it was patched out > of your musl build entirely?). For a correctly linked libc.so, the > local entries list should be huge and the global entries list should > be very small, referring only to global data symbols, not functions. I have the same problem in my aboriginal linux toolchain, which is also the last gplv2 releases of gcc and binutils. (It's not exaclty being ignored, but it's not working right either.) Fixing it is on my todo list, but at the moment I'm trying to get a release out with the new wrapper and uClibc (and linux 3.15) to just fix part of the problem and have the release version less behind. (Fixing this shouldn't be all that _hard_, it's just out of scope for this release which is _already_ hugely overdue...) Rob
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.