]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove more remnants of old Mach-O workaround
authoroltolm <oleg.tolmatcev@gmail.com>
Fri, 29 Nov 2024 21:02:07 +0000 (22:02 +0100)
committerAlan Modra <amodra@gmail.com>
Sun, 1 Dec 2024 06:11:11 +0000 (16:41 +1030)
Remove another adjustment for section address, this time for the
offset into .debug_str{,.dwo} read from .debug_str_offsets{,.dwo} by
fetch_indexed_string.

Signed-off-by: oltolm <oleg.tolmatcev@gmail.com>
binutils/dwarf.c

index 4b46100c7535892c53f4206ded2f309c5d85b01c..79a18e39ccd3cc23ab7deb6be51181739232e1f3 100644 (file)
@@ -677,7 +677,6 @@ fetch_indexed_string (uint64_t idx,
 
   str_offset = byte_get (index_section->start + index_offset, offset_size);
 
-  str_offset -= str_section->address;
   if (str_offset >= str_section->size)
     {
       warn (_("indirect offset too big: %#" PRIx64 "\n"), str_offset);