This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: RFC: cxxsupp test linkage on synth linux
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: eCos Patches List <ecos-patches at sources dot redhat dot com>,Bart Veer <bartv at ecoscentric dot com>
- Date: 27 Jun 2003 08:41:55 -0600
- Subject: Re: RFC: cxxsupp test linkage on synth linux
- Organization: MLB Associates
- References: <3EFC56AC.7090700@eCosCentric.com>
On Fri, 2003-06-27 at 08:37, Jonathan Larmour wrote:
> Using a linux native GCC 3.2.1 built from the FSF sources, I get the
> following problem when linking cxxsupp:
>
> gcc -g -nostdlib -Wl,-static -Wl,--fatal-warnings
> -L/home/jlarmour/sourceware/ecos/ecos/obj/i386/linux/install/lib
> -Ttarget.ld -o
> /home/jlarmour/sourceware/ecos/ecos/obj/i386/linux/install/tests/infra/current/tests/cxxsupp
> tests/cxxsupp.o
> /home/jlarmour/sourceware/tc/native/install/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libsupc++.a(new_op.o):
> In function `comparison_fn_t':
> /home/jlarmour/sourceware/gcc/gcc-3_2_1-release/libstdc++-v3/libsupc++/new_op.cc:54:
> undefined reference to `_Unwind_Resume'
> [and snip many more _Unwind_* undefined references]
>
> The problem is that these missing functions come from a new separate
> library, libgcc_eh.a in gcc-lib.I can't seem to correctly specify that
> library's inclusion on the command line. Instead the only way to get it
> included is to edit synth.ld so that's probably what's required.
>
> But why haven't people noticed this before? Versions of GCC 3.x before GCC
> 3.2.1 wouldn't work unless people were going back as far as gcc 2.9x.
Which was the case, at least to RH7.3
>
> So I'd like some feedback that this patch is okay before I check it in.
>
What happens if that library isn't present?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates