[Nasm-bugs] [Bug 3392533] Considerations for segment support in ELF

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Mon Jul 29 19:58:46 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392533

--- Comment #65 from H. Peter Anvin <hpa at zytor.com> ---
I just added support for generating SEG16 relocations using the syntax @SEG. I
think I can do the SUB relocations next.

In the macros I used a symbol .L.SEG to point to the segment base section for
the current section. It doesn't handle pushsection/popsection/previous yet, but
that shouldn't be too hard to do.

It would be nice if this could be done by a canned macro preamble plus some
hopefully limited textual changes in the gcc backed (like adding the "s" macro
prefix; not really too different from than the stuff already there to support
different assembly syntax.

I totally grok that requiring nonlocal knowledge in gcc is not going to work,
and I fully intend to have a setup where purely local textual substitutions are
necessary.

You can pull my git tree for the necessary patches; they are based on hjl's
just with further development.

-- 
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