memory - Post-linker assembly code in GCC -
i compiling c-programs elf32-bigmips assembly code, , have managed assembly output using following commands (for example program using o1).
mips-elf-gcc -o1 -c -g fib.c
mips-elf-objdump -d -s -m no-aliases -j .rodata -j .text -j .bss -j .data fib.o > fib-o1.asm
however, gives me assembly code linking part missing. using constant arrays data in code, , these arrays references in assembly code if starting @ memory location 0, i.e. no memory address offsets! suspect because linker information missing?
- how can post-linker assembly code correct memory referencing?
thanks
the -c
option means compile , assemble, not link
. remove if want link object code executable, , run objdump
.
Comments
Post a Comment