Change in .ld syntax or a bug?

Andrew Lunn andrew.lunn@ascom.ch
Thu Sep 15 13:43:00 GMT 2005


On Thu, Sep 15, 2005 at 10:50:26PM +0930, Alan Modra wrote:
> On Thu, Sep 15, 2005 at 02:17:08PM +0200, Andrew Lunn wrote:
> > It looks like ld is happy with sections which explicit set there
> > address, eg .vectors and .data, but sections which just follow on from
> > the previous section it is not happy with and seems to put them
> > outside of memory.
> > 
> > Has there recently been a change in syntax? Or is this a bug?
> 
> A bug, I suspect.  Do you have anything in .vectors?

Humm, interesting. No, its empty according to --print-map.

I edited target.ld and removed the .vectors section and gave .text a
fixed start address. It then linked happily. 

So it looks like ld cannot correctly follow on from an empty section.

   Andrew



More information about the Binutils mailing list