i'm porting my "OS" to x86-64. How i can generate a relocation of type R_X86_64_64 for external symbols?!
for example if i have defined the gdt in another file this instruction:
Code: Select all
extern gdtr
lgdt [gdtr]
I assemble in elf64...
Code: Select all
$> yasm -f elf64 test.asm
$> objdump --reloc test.o
000000000000002b R_X86_64_32 gdtd
Code: Select all
extern gdtr
mov rax, gdtr
lgdt [rax]
Thanks a lot
Dave