NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-mips/49806: binaries linked with -static-libgcc crash on MIPS
The following reply was made to PR port-mips/49806; it has been noted by GNATS.
From: Michael <macallan%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-mips/49806: binaries linked with -static-libgcc crash on
MIPS
Date: Wed, 1 Apr 2015 07:50:24 -0400
this appears to be the root cause:
Disassembly of section .init:
00400609 <_init>:
400609: 0002 addiu s0,sp,8
40060b: 3c1c ld s0,224(a0)
40060d: 86a7 lb a1,7(a2)
40060f: 279c beqz a3,400549 <_DYNAMIC+0x399>
400611: e021 addu s0,s1
...
without -static-libgcc _init looks like this:
Disassembly of section .init:
00400698 <_init>:
400698: 3c1c0002 lui gp,0x2
40069c: 279c8828 addiu gp,gp,-30680
4006a0: 0399e021 addu gp,gp,t9
4006a4: 27bdffe8 addiu sp,sp,-24
4006a8: afbf0014 sw ra,20(sp)
4006ac: afb00000 sw s0,0(sp)
( thanks skrll@ )
Home |
Main Index |
Thread Index |
Old Index