[Nasm-bugs] [Bug 3392533] Considerations for segment support in ELF
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Sat Jul 27 23:35:41 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392533
--- Comment #54 from TK Chia <u1049321969 at caramail.com> ---
Hello hpa,
> The use of another section doesn't solve the general problem, though. At the
> end of the day you need a *symbol* to have a severe and an offset component.
> ELF doesn't really have a way to represent symbols as tuples, but using two
> symbols ends up being very natural in the format.
I did try to implement that scheme, but it turned out to be very hard to do it
automatically.
As in, it is straightforward to define "foo" in ".text$" and "foo!" in ".text!"
by hand --- as you have done. But if I want to modify the toolchain to do this
_automatically_, it gets hairy, really really fast.
(The closest I got to this was to patch the gcc-ia16 back assembly output
back-end (!) to produce these symbols:
https://gist.github.com/tkchia/746ba8c5ea601e1c5c3ad18ade5f8638 , and even that
patch was incomplete in some ways.)
Thank you!
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list