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

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Wed Feb 5 17:49:06 PST 2020


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

--- Comment #2 from Chang S. Bae <chang.seok.bae at intel.com> ---
> Another observation is
> 
>   Previously, before the commit, NASM generated an image with .debug_loc:
> 
>     .debug_loc contents:
>     0x00000000: 
> 
>     0x00000008: 
> 
>   With the proposed change, it produces this:
> 
>     .debug_loc contents:
>     0x00000000: 
> 
> Since the cdef_sse.asm is huge, I'm not sure which one is correct. Anyone
> can confirm this?

Okay, I checked the DWARF spec. A location list entry consists of a beginning
address offset and an ending address offset. So, in 32-bit, the .debug_loc size
should be 8. The current and old NASM seem to be wrong. Probably, the patch
needs such a description.

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