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


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to