Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I agree that this version is better to ensure addr(.preinit_array) = __preinit_array_start.
The R_X86_64_REX_GOTPCRELX issue is related to a limitation of our current framework.
https://maskray.me/blog/2020-12-19-lld-and-gnu-linker-incompatibilities
GNU ld seems to suppress optimization in the case.
lld/test/ELF/linkerscript/preinit-array-empty.test | ||
---|---|---|
8 | Optional: -T is probably more common and conciser. |
Optional: -T is probably more common and conciser.