g77 pic case vs. binutils & readelf
Nick Clifton
nickc@cygnus.com
Fri Jun 4 13:17:00 GMT 1999
Hi Robert,
: Doesn't seem to be the case. The count is reported as 4 and according
: to objdump:
:
: Contents of section .rel.got:
: 80487b4 2c580508 06220000 6c580508 062b0000 ,X..."..lX...+..
: 80487c4 00000000 00000000 00000000 94294500 .............)E.
Well that looks plain suspicious. The second line looks like it has
been walked over by something that is not a reloc.
: .//g77 $* -v -B./
: /play/egcs/gcc/testsuite/g77.f-torture/execute/970816-3.f -w -O1 -L
: ../i686-pc-sco3.2v5.0.5/pic/libf2c -lm -fPIC -o xxx
:
: If I whack the "pic" from the -L argument, this case works.
Can you post the output when '-v' is added to that command line.
Basically it would be interesting to know which object files &
libraries are being linked together. Also I would suggest that you
use readelf or objdump to examine each of the object file/libraries in
turn (especially any in ...pic/libf2c). You want to know two things -
do they contain any suspicious looking relocs and what is the layout
of their sections.
I am about to go offline until Monday, so you are on your own now.
Good luck!
Cheers
Nick
More information about the Gcc
mailing list