[Top][All Lists]

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

[Bug binutils/15474] Octet/byte confusion in srec backend

From: gamma at dreesen dot net
Subject: [Bug binutils/15474] Octet/byte confusion in srec backend
Date: Thu, 16 May 2013 08:27:03 +0000


--- Comment #2 from Ralf Dreesen <gamma at dreesen dot net> 2013-05-16 08:27:03 
UTC ---
I think that I might have located a bug in the srecord backend, which shows up,
if multiple object files are linked for a 2 octets-per-byte architecture with
the output format srecord. In my case, the address offset of the second text
section was 2*n instead of n.

I hunted problem down to "srec_set_section_contents" at bfd/srec.c:905

   entry->where = section->lma + offset;

The unit of "entry->where" is assumed to be BYTES (see "srec_write_section").
I guess the unit of "section->lma" should be BYTES too.
The unit of "offset" appears to be OCTETS (see "default_indirect_link_order").

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]