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

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Mon Aug 5 10:03:05 PDT 2019


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

--- Comment #91 from H. Peter Anvin <hpa at zytor.com> ---
[continued]

    R_386_SEL16      word16    Selector(S)

When this relocation is used in a dynamic section it would still have to have a
symbol (in the .dynsym section) pointing to the ELF VMA of that segment.  The
st_size member of that symbol could then be used to indicate the size of the
segment, although I have to admit I don't know offhand to make the linker do
that; it probably would involve creating a new section (say "section~" or
"~group") that would sort at the *end* of the relevant segment, but the linker
probably would need some hacks in order to set the size of the symbol (not
necessarily super hard, just a bit messy), or it would have to be done using
some suitable convention during postprocessing.

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