[Bug general/27367] New: readelf: invalid loclists data with -ffat-lto-objects

mliska at suse dot cz sourceware-bugzilla@sourceware.org
Mon Feb 8 10:45:34 GMT 2021


            Bug ID: 27367
           Summary: readelf: invalid loclists data with -ffat-lto-objects
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: mliska at suse dot cz
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Using the GCC 11 (master) I see the following issue:

$ cat size.i
int main_argc_remaining;

int main_argc() {
  int result = 0;
  if (main_argc_remaining)
    result = 0;

  return 0;

$ gcc -c -flto -O size.i -g -ffat-lto-objects &&
/home/marxin/Programming/elfutils/src/readelf -aw size.o
DWARF section [27] '.debug_loclists' at offset 0x747:
Table at Offset 0x0:

 Length:               24
 DWARF version:         5
 Address size:          8
 Segment size:          0
 Offset entries:        0
 Not associated with a CU.

  Offset: c, Index: 0
    startx_endx 3, 8

  Offset: 18, Index: c
    startx_endx 30, 1f
/home/marxin/Programming/elfutils/src/readelf: invalid loclists data

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list