Date: Thu, 4 Sep 2014 11:58:57 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: libc.so segfaults on mips 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. In any case, that's your problem. You need a linker that respects -Bsymbolic-functions to build musl. The configure script tests for accepting the option, but I don't have a way to test whether it's broken at this time. Rich
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.