------- Additional Comments From ian at airs dot com 2010-08-19 23:00 -------
The patch is not correct in general, because the paddr_ field of segments is
not
set in general at the point where it is tested. It will be set when a linker
script is used, but not by default. The paddr_ field is set when
Layout::set_segment_offsets calls set_section_addresses, but not before.
Your patch would probably be correct if it tested something like
seg1->are_addresses_set() ? seg1->paddr() : seg1->first_section_load_address()
Want to try that?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=11899
------- 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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils