bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/19716] New: bfd/elflink.c does not handle octets_per_byte


From: dgisselq at ieee dot org
Subject: [Bug binutils/19716] New: bfd/elflink.c does not handle octets_per_byte properly, line 10021
Date: Tue, 23 Feb 2016 21:06:53 +0000

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

            Bug ID: 19716
           Summary: bfd/elflink.c does not handle octets_per_byte
                    properly, line 10021
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: dgisselq at ieee dot org
  Target Milestone: ---

There are several "FIXME" lines within bfd/elflink.c outlining how bfd does not
properly support ELF files where octets per byte is not 1.  I'm currently
working on a port that relies on octets per byte being 4, not 1.  Each of these
fixme's therefore notes a problem with bfd/elflink.c.

In this case, the bfd_set_section_contents lines that follow reference the
output_offset, which is given in target byte values, and yet use this to change
information within the file, for which units are octets.  Therefore, the
output_offset should be multiplied by octets_per_byte before the call to
bfd_set_section_contents.

-- 
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]