This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]