bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4666] Generates wrong offset for h8 target


From: amodra at bigpond dot net dot au
Subject: [Bug binutils/4666] Generates wrong offset for h8 target
Date: 17 Jan 2008 04:02:28 -0000

------- Additional Comments From amodra at bigpond dot net dot au  2008-01-17 
04:02 -------
Not a bug.  The LMA and VMA addresses are correct, as you can see from objdump
-h.  You seem to be worried about the PT_LOAD header p_vaddr and p_paddr,
although that isn't clear from your report.  When vects.o is linked at zero, of
course the ELF file header and ELF program headers cannot occupy the same
location, so the linker assumes the headers will not be loaded.  When vects.o is
not present, your .text section starts at 0x400, so the headers can be loaded as
usual.  They will occupy addresses immediately before .text.  The linker could
create two PT_LOAD headers, one for the file header and program headers, and one
for your .text section, but that is inefficient.  Instead you get one PT_LOAD
header for both.  You might like to experiment with ld -N or ld -n, which should
tell ld that headers are not needed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=4666

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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