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

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sat Jul 27 21:12:50 PDT 2019


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

--- Comment #50 from TK Chia <u1049321969 at caramail.com> ---
Hello hpa,

> Sorry, it doesn't work.  Neither input nor output sections are correct for
> segment base. It breaks even something as trivial as DGROUP in DOS, which
> inherently contains at least _DATA, _BSS, and _STACK. It really isn't
> acceptable to just ignore that and force them all into a single section with
> identical attributes.

I have thought about that a bit.  How about this then: instead of using the
base of a symbol "foo"'s output section, use a base of some other section that
the output section is somehow linked to (sh_link/sh_info)?  This allows us to
decouple the IA-16 base of ".bss", from the start of its allocated area.

My current idea is to define another special section type to mark section
bases, as I have done with SHT_IA16_PROG_ORG.

Thank you!

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