------- Additional Comments From ian at airs dot com 2009-06-23 06:12 ------- The last empty segment is a result of the empty .data section. The GNU linker discards empty sections; gold does not. I think gold's behaviour is reasonable, and that does not seem to be your problem in any case.
The first segment holds the program headers. gold does this to make it more likely that programs built with a linker script can be executed on GNU/Linux. I think that there are some cases that the GNU linker will generated files which can not be executed when using a linker script. Of course you don't care about executing your program on GNU/Linux. You should probably use the -n option when you link to turn off dynamic paging. That will work with both the GNU linker and gold. However, you may need to use the current development version of gold to get the results you need. Let me know if that seems like an acceptable solution for this problem. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=10028 ------- 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