bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11219] LMA in link map versus object file disagrees


From: amodra at gmail dot com
Subject: [Bug ld/11219] LMA in link map versus object file disagrees
Date: 27 Jan 2010 02:48:34 -0000

------- Additional Comments From amodra at gmail dot com  2010-01-27 02:48 
-------
That last comment isn't true.  You can have section VMAs such that the VMA
doesn't correspond to phdr p_vaddr plus the section offset within the phdr, for
example, when the phdr segment is packed with overlays.  So section lma - vma
can differ within a segment but this is a most unusual case.  Perhaps the script
is valid after all.

The problem really is that ld places secB within aphdr based on its VMA rather
than LMA.  If secB was placed with sh_offset of 0x1001 rather than 0x1002, you
would have the right LMAs in the final object file.  You'd also have an
executable that most program loaders would fail to load correctly, so I'm very
reluctant to change ld to get this testcase right.  We'd probably break some app
that carelessly specified LMAs in a linker script.


-- 


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

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