ld issues

Andrew Haley aph@redhat.com
Wed Jul 9 17:38:00 GMT 2003


Steve Pribyl writes:
 > Yes no glory there.
 > 
 > collect2 is called with some optimization options.
 > I ran the gcj -c and the the collect by hand and that works.
 > 
 > But collect2 is not ld.
Now try "-Wl,-v" to see what collect2 does...
 > 
 > Andrew Haley wrote:
 > > Steve Pribyl writes:
 > > > What s the difference between
 > > > 
 > > > $ gcj Hello.java -o Hello.o -g -fPIC -c
 > > > $ ld -shared -o libHello.so Hello.o
 > > > 
 > > > and
 > > > 
 > > > $ gcj ${GCJFLAGS} v1/Hello.java -o v1/libHello.so -shared -g -fPIC
 > > > 
 > > > The first one appears to not load the classes correctly when loaded by gcj.
 > > 
 > > Did you try using "gcj -v" to see what command was passed to ld?
 > > 
 > > Andrew.
 > > 
 > 
 > -- 
 > Steve Pribyl
 > Steve AT NetFuel dot com
 > Computer Infrastructure Practitioner
 > 


More information about the Java mailing list

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