[Nasm-bugs] [Bug 3392533] Considerations for segment support in ELF
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Sat Jul 27 22:02:51 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392533
--- Comment #52 from H. Peter Anvin <hpa at zytor.com> ---
I have updated the ABI document:
https://git.zytor.com/users/hpa/segelf/abi.git
... and added some sample code including hopefully-correct linker scripts at
...
https://git.zytor.com/users/hpa/segelf/samples.git
This requires the latest binutils tree I have at:
https://git.zytor.com/users/hpa/segelf/binutils.git hpa/seg16
... because I had to change the overflow behavior of R_386_SEG16 in order for
the PSP to be handled correctly.
I haven't written up an elf2exe program just yet, but at this point I'm pretty
sure it is trivial to do; with the linker doing PIE linking the rest of the
work is just mangling the relocations and filling in the EXE header.
Obviously, native EXE relocations cannot handle linear-address relocations
(R_386_RELATIVE).
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list