This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linker Bug or Design Intent (Absolute symbols in zero sized sections)
On Thu, Sep 28, 2006 at 05:42:29PM +0100, Paul Brook wrote:
> If we remove the section shouldn't we also remove the symbol?
The idea was to support a script like the following. When .data is
empty and removed, you might still want __data_start defined. The
user has defined __data_start in .data because he wants the start
sym adjusted for any alignment that might occur due to input .data
section alignment.
.data :
{
__data_start = .;
*(.data)
}
.data2 :
{
*(.data2)
}
__data_end = .;
--
Alan Modra
IBM OzLabs - Linux Technology Centre