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

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sat Jul 27 09:49:44 PDT 2019


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

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

I wrote a short write-up on my "old" relocation scheme as currently implemented
in my stable binutils-ia16 branch:
https://github.com/tkchia/build-ia16/blob/master/elf16-writeup.md .

> So I looked a bit at the gas code, and I *think* the right way to do it in
> gas is to leverage the already computed fx_subsy. In existing elf_i386 this
> is of course only allowed versus the GOT, but some other targets already
> have, and use, generic subtractions, so I think it should be possible to
> work that out.

This is interesting.  I think one problem is that I want to do a very specific
kind of subtraction and addition.  I am looking at something along the lines of
your slightly earlier proposal
(https://bugzilla.nasm.us/show_bug.cgi?id=3392533#c17), i.e. relocations to
subtract the base of the _output_ section which a symbol (say, "foo") belongs
to.

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