[lldb-dev] Inconsistencies in CIE pointer in FDEs in .debug_frame

Martin Storsjö via lldb-dev lldb-dev at lists.llvm.org
Mon Nov 25 02:13:19 PST 2019

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

More information about the lldb-dev mailing list