This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld failure introduced with pr797 patch
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H.J. Lu" <hongjiu dot lu at intel dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 2 Jun 2005 21:37:20 +0930
- Subject: ld failure introduced with pr797 patch
Hi HJ,
I believe your fix for PR797 is to blame for a ld problem which can be
demonstrated by building binutils for tic30-unknown-coff and running the
ld testsuite. I see "+FAIL: check sections 1". The linker script has
.const :
{
*(.const)
__etext = . ;
} > rom
.mdata : AT( ADDR(.const) + SIZEOF(.const) )
{
__data = . ;
*(.data);
__edata = . ;
} > ram
.const is empty, so fails to have its output_section_statement fully
initialized. This results in "nonconstant expression for load base".
--
Alan Modra
IBM OzLabs - Linux Technology Centre