On Mon, 25 Nov 2019, Pavel Labath wrote:

So, what elf linkers do is that they link non-loadable (SHF_ALLOC) sections as if they were loaded at address zero. I think it's possible to change that via a linker script, but I think doing that would cause pretty much everything to blow up.

This means that the whole absolute vs. section-relative inconsistency is irrelevant there (and I would expect the elf folks would not even consider that a inconsistency/bug).

Ah, thanks - that does explain it.

Yeah, in COFF, all sections, even non-loaded ones (IMAGE_SCN_MEM_DISCARDABLE) are assigned virtual addresses as if they actually were loaded.

// Martin

_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to