Re: ld: spurious empty .plt/.rela.plt sections generated

2011-05-01 Thread H.J. Lu
On Sat, Apr 30, 2011 at 6:13 PM, H.J. Lu wrote: > On Sat, Apr 30, 2011 at 4:57 PM, Alan Modra wrote: >> On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: >>> I am seeing a strange thing.  The (BFD) linker spuriously generates .plt >>> and .rela.plt sections (both empty) for a link t

Re: ld: spurious empty .plt/.rela.plt sections generated

2011-04-30 Thread H.J. Lu
On Sat, Apr 30, 2011 at 4:57 PM, Alan Modra wrote: > On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: >> I am seeing a strange thing.  The (BFD) linker spuriously generates .plt >> and .rela.plt sections (both empty) for a link that has no need for them. >> It's reproduced with a tr

Re: ld: spurious empty .plt/.rela.plt sections generated

2011-04-30 Thread Alan Modra
On Fri, Apr 29, 2011 at 05:07:33PM -0700, Roland McGrath wrote: > I am seeing a strange thing. The (BFD) linker spuriously generates .plt > and .rela.plt sections (both empty) for a link that has no need for them. > It's reproduced with a trivial example, and seen on today's binutils trunk. > Gold

ld: spurious empty .plt/.rela.plt sections generated

2011-04-29 Thread Roland McGrath
I am seeing a strange thing. The (BFD) linker spuriously generates .plt and .rela.plt sections (both empty) for a link that has no need for them. It's reproduced with a trivial example, and seen on today's binutils trunk. Gold does not produce the empty sections. Empty sections are normally harml