Displaying 1 result from an estimated 1 matches for "4000b0".
Did you mean:
40000
2019 Apr 04
3
question about --emit-relocs with lld
...id _start(void)
{
struct minimal instance = {
.value = 1,
};
}
$ llvm-build/x86/bin/clang -c minimal.c
$ /usr/bin/ld.bfd --emit-relocs minimal.o -o minimal.bfd
$ llvm-build/x86/bin/ld.lld --emit-relocs minimal.o -o minimal.lld
$ objdump -Sdr minimal.bfd
...
00000000004000b0 <_start>:
4000b0: 55 push %rbp
4000b1: 48 89 e5 mov %rsp,%rbp
4000b4: 48 8b 04 25 d0 00 40 mov 0x4000d0,%rax
4000bb: 00
4000b8: R_X86_64_32S .rodata
4000bc: 48 89 45 f0...