This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
HP-UX 11.00 linkage questions
- To: gcc-help at gcc dot gnu dot org
- Subject: HP-UX 11.00 linkage questions
- From: Richard Davies <richy dot boy at clara dot co dot uk>
- Date: Mon, 02 Jul 2001 11:15:46 +0100
- Reply-To: richy dot boy at clara dot co dot uk
Hi,
To start with..
I've built gcc 3.0 for vanilla HP-UX 11.00 (btw ltconfig breaks in the
section starting line 779 when finding maximum length of command line
arguments when configuring libstdc++-v3).
Everything works fine and I am more than pleased at only having to add
one line direct to the config cache files to fix this, compared to some
previous gcc versions.
My question(s) are related to linkage though and this may not be
possible at all.. but anyway, here we go.
I want to use gcc to compile all my source files, but use native aCC (
ld) to link them as there are several 3rd party ISV libraries that I
want to link to but alas have been built with aCC.
I notice a couple of interesting switches, -fno-gnu-linker and -funwind-
table. I don't pretend to know a lot about collect2 and the way gcc
creates global code for object construction, but after using those
switches, and linking (I assume gcc collect2 uses the native ld anyway
hence the general compatability of symbols) I am still left with
_Unwind_SjLj_Register
_Unwind_SjLj_Resume
_Unwind_SjLj_Unregister
Linking against libgcc will naturally fix this, but also naturally it
breaks the executable. This is with a dead simple dummy class and an
equally trivial main in a different translation unit. I was rather
hoping the -funwind-tables and -fno-gnu-linker would do away with this
particular hardship.
Advise would be appreciated, particulary the 'can this be done'
question. If it can't be done easily, what do I need to know to build
that collection of (presumably sjlj exception style) handlers ?
--
--
RichyBoy