[Prism54-devel] New FreeMAC snapshot

Philip Armstrong phil-prism54 at kantaka.co.uk
Wed Oct 5 11:31:30 UTC 2005


On Sun, Oct 02, 2005 at 06:08:54PM +0200, Sebastien wrote:
> > > By the way, it's no use to add "#ifdef UNUSED" around functions
> > > that are never called : the compiler automatically strips them off
> > > the resulting binary, AFAIK.
> >
> > You overestimate cleverness of ld.
> 
> Even Turbo Pascal 7 for DOS does this automatically... ld sucks a bit.
> 
> However, after some searches on the web, I found a hack to strip dead 
> code with GNU ld. I have committed the modified version. Can you check 
> it still works with your PCI card, since I had to modify the linker 
> script ?

Is the option --gc-sections to ld not doing the job properly?

> BTW, has anyone managed to get -mcpu=arm946e (as we should use) to work 
> with GNU toolchain ? Mine complains about an unsupported -mcpu flag, 
> although it should be supported according to the documentation.

Shouldn't that be -mcpu=arm946e-s ? (According to the gcc-4.0 manpage
anyway.)

cheers, Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


More information about the Prism54-devel mailing list