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

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Wed Nov 13 22:46:40 PST 2019


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

            Bug ID: 3392631
           Summary: nasm generates broken .debug_loc section on ELF32
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: mh+anfz at glandium.org
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

Created attachment 411745
  --> https://bugzilla.nasm.us/attachment.cgi?id=411745&action=edit
Possible patch.

Example output from llvm-dwarfdump on a file build in Firefox:
```
llvm-dwarfdump --debug-loc cdef_sse.o
cdef_sse.o:     file format ELF32-i386

.debug_loc contents:
error: location list overflows the debug_loc section.
0x00000000: 
```

The problem is that a buffer is allocated for the section, but the buffer is
not entirely filled, so uninitialized data ends up copied in the final object.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list