[Top][All Lists]

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

[Bug gold/10028] unnamed section in program headers

From: ian at airs dot com
Subject: [Bug gold/10028] unnamed section in program headers
Date: 23 Jun 2009 06:12:17 -0000

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


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