From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen To: jason@cygnus.com (Jason Merrill) Cc: egcs@cygnus.com Subject: Re: Large code size? Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: References: <199903242353.PAA02719.cygnus.egcs@atrus.synopsys.com> X-SW-Source: 1999-03n/msg00818.html Message-ID: <19990331234600.esYlTCOBdhksJpnsufZmUShEMCgX9q3Wj0qz1Ls-B20@z> jason@cygnus.com (Jason Merrill) writes: > >>>>> Joe Buck 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.