mailing list of musl libc
 help / color / mirror / code / Atom feed
* debugging problem with musl ld and qemu-ppc
@ 2014-10-16  6:09 Felix Janda
  2014-10-16 15:34 ` Rich Felker
  0 siblings, 1 reply; 13+ messages in thread
From: Felix Janda @ 2014-10-16  6:09 UTC (permalink / raw)
  To: musl

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_@local
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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-04 18:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16  6:09 debugging problem with musl ld and qemu-ppc Felix Janda
2014-10-16 15:34 ` Rich Felker
2014-10-16 16:58   ` Felix Janda
2014-10-19 20:29     ` Felix Janda
2014-10-19 21:13       ` Rich Felker
2014-11-01 21:41         ` Felix Janda
2014-11-01 21:47           ` Rich Felker
2014-11-01 22:01             ` Felix Janda
2014-11-03 23:11               ` stephen Turner
2014-11-04 18:34                 ` Felix Janda
2014-10-17 19:30   ` Felix Janda
2014-10-17 20:17     ` Rich Felker
2014-10-17 21:15       ` Felix Janda

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).