Question about EXCLUDE FILE in ld script

Alan Modra amodra@bigpond.net.au
Tue Oct 21 22:09:00 GMT 2008


On Tue, Oct 21, 2008 at 10:33:22PM +0800, loody wrote:
> *(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors)
> will cause all .ctors sections from all files except 'crtend.o' and
> 'otherfile.o' to be included. "
> 
> My question is:
> Why we have to use "*crtend.o" and "*otherfile.o" instead of
> "crtend.o" and "otherfile.o".

You don't need a wildcard here.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list