Displaying 1 result from an estimated 1 matches for "directsymbol".
2011 Mar 10
3
[LLVMdev] Detrimental optimization for reducing relocations.
...symbol value seems to
always cause a relocation entry, but a label difference does not. I compiled the
factorial program from the demo page with debug info and dumped the relocation
entries, then I commented out the top block so that EmitLabelDifference was
always called.
Original:
objdump -r directsymbol.o
directsymbol.o: file format elf64-x86-64
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
000000000000005a R_X86_64_PC32 atoi-0x0000000000000004
0000000000000066 R_X86_64_32 .rodata.str1.1
000000000000006f R_X86_64_PC32 printf-0x0000000000000004
RELO...