Large code size?
Andi Kleen
ak@muc.de
Wed Mar 31 23:46:00 GMT 1999
jason@cygnus.com (Jason Merrill) writes:
> >>>>> Joe Buck <jbuck@Synopsys.COM> writes:
>
> >> We built robotcom.so with the compiler flags:
> >> g++ -O2 -funroll-loops -fno-exceptions -DLINUX_BETA -D_REENTRANT
> >> and the linker flags:
> >> cc -shared -nostartfiles -s -o robotcom.so ...
>
> > Hmm. Does the gnu.linkonce trick work for shared libraries?
>
> I would think so, but it certainly doesn't work if you don't use the GNU
> linker, and 'cc' isn't likely to.
On Linux cc is a link to gcc, and the gnu linker is the only linker.
Of course it is possible that he uses an outdated binutils version
that doesn't support it yet.
-Andi
--
This is like TV. I don't like TV.
More information about the Gcc
mailing list