[OpenIndiana-discuss] GCC 5.4 added to the repository
Thomas Wagner
tom-oi-discuss at tom.bn-ulm.de
Tue Sep 6 13:57:37 UTC 2016
Hi Aurelien,
it would be very cool if someone could send me / the list the output
of "elfdump -d" on a compiled binary with C++ code. If that is not
available, then regular C-code is okay too. e.g. gcc -o hello hello.c
I have no test system at hand (have only older hipster on disk).
What I would appreciated to see would be a configuration that has
"[ LAZY ]"-load removed (only) for gcc runtime libs.
Excample "good":
...
[2] somelib.so
[3] libgcc_s.so
...
[5] someotherlib.so
[6] libstdc++.so
Excample "bad":
...
[2] somelib.so
[3] [ LAZY ] <- delayed load/binding, libc.so can bind funcs earlier then libgcc_s.so
[4] libgcc_s.so
...
[5] someotherlib.so
[6] [ LAZY ] <- delayed load/binding, libc.so can bind funcs earlier then libstdc++.so
[7] libstdc++.so
This removed "LAZY"-load avoids situation where uncatched C++ exceptions
are falling through into into library /usr/lib/libc.so which normally can't
handle them, so binary core dumps.
Prominent example is "filezilla".
In SFEgcc we set "-zinterpose" to have the resulting binaries link (only) the
gcc runtime without the LAZY flag.
Thanks much!
Thomas
On Tue, Sep 06, 2016 at 03:34:21PM +0200, Aur??lien Larcher wrote:
> Hello,
> I wrote a short post about it:
>
> https://www.openindiana.org/2016/09/06/gcc-5-4-now-available-as-testing-compiler/
>
> Thanks go to Rich Lowe for his fixes to the linker and to Alexander
> for patches and thorough testing.
>
> Please comment if you think about additional information which should
> be provided.
> Best regards,
>
> Aurelien
>
> --
> ---
> Praise the Caffeine embeddings
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
--
--
Thomas Wagner
------------------------------------------------------------------------
Service rund um UNIX(TM), Wagner Network Services, Thomas Wagner
Solaris(TM), Linux(TM) Eschenweg 21, 89174 Altheim, Germany
Novell(TM), Windows(TM) TEL: +49-731-9807799, FAX: +49-731-9807711
Telekommunikation, LAN, MOBILE/CELL: +49-171-6135989
Internet-Service, Elektronik EMAIL: wagner at wagner-net.com
More information about the openindiana-discuss
mailing list