g77 pic case vs. binutils & readelf

Robert Lipe robertl@sco.com
Wed Jun 30 15:43:00 GMT 1999


Hi, Nick.

> Hmm.  OK that theory was probably a wild goose chase then, especially

That's all we have so far. :-)

> however something had put 'rela' structures into the '.rel.got'
> section then all kinds of bad things would happen.  Readelf and
> friends would be expecting to see a new relocation every 8 bytes but
> in fact the relocations would each be occupying 12 bytes.

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.


> : Is there any way can we find the file that delivered that symbol to us?

[ Added constraint: "on a system where GNU ld isn't available." ] 

> Probably.  How did you create this "bad" file in the first place ?

Using EGCS snapshots:

.//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.     

Thanx for your help,
RJL



More information about the Gcc mailing list