Re: Multiple GCC versions and libstdc++.so

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Richard Sewards" <richard.sewards@xxxxxxxx> writes:

> Is it not possible to make libstdc++ and libgcc_s static, somewhat
> equivalent to the crtX.o objects linked prior to main, and still support
> the exception stuff across libraries?

On GNU/Linux, it is.  You can link with the -static-libgcc and
-static-libstdc++ options (the latter is new in gcc 4.5) and everything
should work.  I'm not aware of any non-GNU/Linux systems for which this
will work reliably.  It requires a linker which support --eh-frame-hdr
and a libc which supports dl_iterate_phdr.  A few more notes at
http://www.airs.com/blog/archives/166 .

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux