|
Date: Thu, 16 Oct 2014 08:09:01 +0200 From: Felix Janda <felix.janda@...teo.de> To: musl@...ts.openwall.com Subject: debugging problem with musl ld and qemu-ppc Hello list, can you maybe help me debugging the following problem with qemu-ppc? It gives an invalid instruction error after doing: tar -xf crossx86-powerpc-linux-musl-0.9.9.tar.xz # (I get something similar for other versions of musl or gcc) cat > a.s <<EOF b _GLOBAL_OFFSET_TABLE_@...al EOF cat > b.c <<EOF int main(void) { return 0; } EOF ./powerpc-linux-musl/bin/powerpc-linux-musl-gcc -o good b.c ./powerpc-linux-musl/bin/powerpc-linux-musl-gcc -o bad a.s b.c # set up symlinks to make 'qemu-ppc good' work qemu-ppc bad After musl ld has done its work it jumps to libgcc's _init and very soon tries to execute some data. When executing in some chroot the 'qemu-ppc -d in_asm' for good and bad is exactly the same up to two instructions in libgcc until it diverges (and bad crashes). Do you have any ideas what could be the problem? Thanks, Felix
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.