|
Message-ID: <CADQAGROiymbJ=9R1u7hVKxAFgX94qu58QeR3mWNJC1TmLGQeqA@mail.gmail.com> Date: Tue, 17 Feb 2015 15:50:54 +0000 From: David Guillen <david@...idgf.net> To: Rich Felker <dalias@...c.org> Cc: musl@...ts.openwall.com Subject: Re: Executable crashes at __libc_start_main Uhm good idea, let me try this later. I'm compiling everything statically. As you say that means no ld.so is used, therefore I don't understand who could be causing the problem. Thanks, David 2015-02-17 15:46 GMT+00:00 Rich Felker <dalias@...c.org>: > On Tue, Feb 17, 2015 at 09:20:38AM +0000, David Guillen wrote: >> Hi, >> >> The toolchain is a "buildroot" one, so it _should_ be OK. The funny >> think as I said is that it works well on some ARM boxes and qemu, so >> it might be something related to the ld-linux.so. > > That code is not supposed to be compiled at all in shared libc, only > static, and for static there is no "ld-linux". Also the dynamic linker > should be ld-musl-arm.so.1; if it's using ld-linux that's a foreign > dynamic linker that's not going to work. > >> Rich: R5 is OK, it points to the following 4 bytes (due to >> postincrement), so I guess it must be OK before the load. And BTW I'm >> not using thumb code, all instructions are ARM 32 bit wide >> instructions. > > Sorry, I misread the address column as the instruction encoding when I > saw just 4 hex digits. :-) So that's not the issue. > > Can you dump the address range for __init_array_start at runtime in > gdb using the x command? > > 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.