Commit: Fix indexed string handling in dwarf.c

Nick Clifton nickc@redhat.com
Mon Jun 27 10:48:16 GMT 2022


Hi Guys,

  I am applying the attached patch to fix the fetch_indexed_string()
  function in binutils/dwarf.c so that it does not use the length
  of the first string table in the .debug_str section as the length
  for every string table in the section.  Doing so removes bogus
  warnings about string indexes being too big.

Cheers
  Nick

binutils/ChangeLog
2022-06-27  Nick Clifton  <nickc@redhat.com>

	* dwarf.c (fetch_indexed_string): Do not use length of first table
	in string section as the length of every table in the section.
	* testsuite/binutils-all/pr26112.r: Update expected output.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf.c.patch
Type: text/x-patch
Size: 5365 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20220627/e629ed07/attachment.bin>


More information about the Binutils mailing list