bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23931] New: objdump -r often fails on pdp11 files


From: pkoning at equallogic dot com
Subject: [Bug binutils/23931] New: objdump -r often fails on pdp11 files
Date: Wed, 28 Nov 2018 13:55:01 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23931

            Bug ID: 23931
           Summary: objdump -r often fails on pdp11 files
           Product: binutils
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: pkoning at equallogic dot com
  Target Milestone: ---

Created attachment 11417
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11417&action=edit
crt0.o for pdp11

Function dump_relocs_in_section in objdump.c checks that the relic count is
valid by comparing the size of the reloc data against the file size.  That
check is incorrect because "relsize" is the decoded (canonical) reloc data
size, not the size of the reloc data encoded in the file.  In the case of
pdp11, sizeof (arelent) is 8, while the size in the file is 2 bytes per entry,
so the check can easily fail.
The attached file shows the issue.  If I comment out the check at
objdump.c:3465, it works.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]