[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
objcopy/ld ELF->a.out incorrect instruction address call - (stack trace
From: |
Leon Dang |
Subject: |
objcopy/ld ELF->a.out incorrect instruction address call - (stack trace oops) |
Date: |
Tue, 28 Aug 2001 13:21:19 +1000 |
oops, somehow the trace for line simple+6 got deleted...
> Stack Trace in GDB:
> -------------------
>
> 1. $ gdb simple
> 2. break main
> 3. run
> 4. x/10i simple
>
0x8048528 <simple>: push %ebp
0x8048529 <simple+1>: mov %esp,%ebp
0x804852b <simple+3>: sub $0x18,%esp
0x804852e <simple+6>: call 0x80484e5 <init_dummy+1>
0x8048533 <simple+11>: mov %eax,%eax
0x8048535 <simple+13>: mov %eax,0xfffffffc(%ebp)
0x8048538 <simple+16>: mov 0xfffffffc(%ebp),%edx
0x804853b <simple+19>: mov %edx,%eax
0x804853d <simple+21>: jmp 0x8048540 <simple+24>
0x804853f <simple+23>: nop
> >>> instruction 0x804852e <simple+6> should have been "call return_func"