https://bugzilla.novell.com/show_bug.cgi?id=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c21 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rguenther@novell.com | --- Comment #21 from Richard Guenther <rguenther@novell.com> 2011-07-20 08:55:18 UTC --- (In reply to comment #19)
Tried following:
echo >cxx.c <EOF void __gxx_personality_v0(){} EOF gcc -c cxx.c -o cxx.o
And then change link command from g++ -nostdlib to gcc and add cxx.o as an argument.
It seems to work, but I don't know whether it is a safe approach.
It will work as long as no exceptions are thrown. __gxx_personality_v0 is provided by libsupc++ (which is a static library). You can do -nostdlib -lsupc++, but -nostdlib also prevents adding of the crt* and libgcc stuff, so I'd do g++ -o partially-linked.o your-object-files.o ... -r -nostdlib -lsupc++ gcc -o final-executable partially-linked.o that should get you a working executable (hopefully). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.