This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Change in .ld syntax or a bug?
On Fri, Sep 16, 2005 at 11:56:47AM +0930, Alan Modra wrote:
> 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.
I just tried anoncvs trunk and it has the same problem.
Thanks
Andrew