Change in .ld syntax or a bug?
Alan Modra
amodra@bigpond.net.au
Fri Sep 16 05:36:00 GMT 2005
On Thu, Sep 15, 2005 at 03:33:22PM +0200, Andrew Lunn wrote:
> 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.
Would you mind checking whether mainline CVS has this bug? If you find
it does, I'll see about fixing the problem.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list