mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 21:34:42 +08:00
* dwarf.c (display_debug_loc): Issue a warning if there are bytes at the end
of the .debug_loc section which are not referenced by any attribute in the .debug_info section.
This commit is contained in:
@ -2624,6 +2624,10 @@ display_debug_loc (struct dwarf_section *section, void *file)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (start < section_end)
|
||||
warn (_("There are %ld unused bytes at the end of section %s\n"),
|
||||
section_end - start, section->name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user