Dependencies when using gcc-generated object files in another compiler

Tom Tromey tromey@redhat.com
Tue Dec 19 19:15:00 GMT 2006


>>>>> "Michael" == Lehner, Michael <michaellehner@siemens.com> writes:

Michael> I read something about an option for gcc to use Greenhills ABI, but I
Michael> didn't figure out how to use it and if it's really supported, does
Michael> anybody know?
I don't see anything in the documentation about this.
Michael> And our intention was even to use java for our
Michael> operating-system-development. That means we must be able to
Michael> compile it for MIPS itself and not for an specific operating
Michael> system.
This can be done -- we've done it before -- but it will require you to
do some porting work on the GC and libgcj itself.
I looked briefly at your original note...
>> > __gcj_personality_v0 from Main.o
>> > _Unwind_Resume from gnulib.a(Class.o)
>> > _Jv_Throw from gnulib.a(Class.o)

Missing libgcj's exception code somehow?
>> > __fixdfdi from gnulib.a(lt15-lang.o)
>> > __fixsfdi from gnulib.a(lt15-lang.o)

Missing libgcc?
>> > _ZN4java4util5regex7Pattern7compileEPNS_4lang6StringE from
>> gnulib.a(lt15-lang.o)

Did you remove parts of libgcj but not update the callers?
Anyway, to make this stuff work you'll have to dive into the guts a
bit. And, things could be especially problematic if your OS is
written in C++ and throws exceptions that the caller must catch. A
lot depends on the details of the GH compiler, about which I know
nothing.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /