------- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils