Good lord, riscv64 effectively still is 32-bit address space. Because there are literally no 64-bit relocation types. What the fuck guys.
This claim seems false. I'm looking at the WIP rv64 port of musl libc and it has R_RISCV_64 for dynamic linker.
-
-
I would hope it's false, but I can't come up with any other reason for .dword my_symbol_at_0x100000000 to fail linking with reloc truncated
-
It's probably related to PIC - you normally can't put absolute addresses in code except in a non-PIC main program (not library).
-
it's normally in a section, and that section is placed there. I've tried fpic fpie and neither and it's never worked in my experience
-
(section placed with a linker script memory region, if that makes any difference)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.