[Bug lto/48056] lto throws out needed symbols when linking QtScript
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48056 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2011-03-10 10:23:21 UTC --- I think you need to use the attribute used on cti_vm_throw when using LTO as the symbol usage is hidden from the compiler.
[Bug lto/48056] lto throws out needed symbols when linking QtScript
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48056 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID --- Comment #2 from Richard Guenther rguenth at gcc dot gnu.org 2011-03-10 11:10:55 UTC --- Yep. Mark it with attribute((used)).
[Bug lto/48056] lto throws out needed symbols when linking QtScript
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48056 --- Comment #3 from bero at arklinux dot org 2011-03-10 11:48:47 UTC --- Thanks, works. Re-filed as WebKit bug https://bugs.webkit.org/show_bug.cgi?id=56088