This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
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.