[Nasm-bugs] [Bug 3392631] nasm generates broken .debug_loc section on ELF32

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Mar 25 04:35:15 PDT 2021


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

Tom de Vries <tdevries at suse.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tdevries at suse.de

--- Comment #6 from Tom de Vries <tdevries at suse.de> ---
(In reply to H. Peter Anvin from comment #4)
> Could you see if this might have anything to do with bug 3392448?
> 

Looks like it, I added a comment there.

> It seems that this happens when there are no labels in the file; it is
> unclear to me if this means the section should be empty like .debug_frame
> (see bug 3392657) or contain stub information.
> 
> I don't have time to dig right now, but is there anything in the actual
> DWARF spec about this?

Well, the issue is simply: if you generate dwarf that contains a pointer to a
location list in the .debug_loc section, then that pointer needs to be valid,
and the .debug_loc section needs to contain a loclist at that offset.

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