ver_test_8_2.so

Ian Lance Taylor iant@google.com
Tue May 20 13:52:00 GMT 2008


David Miller <davem@davemloft.net> writes:

> g++ -m32 -W -Wall   -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2   -o ver_test_8_2.so -Bgcctestdir/ -shared -Wl,--version-script,../../../src/gold/testsuite/ver_test_8.script two_file_test_2_pic.o
> gcctestdir/ld: /usr/lib/gcc/sparc-linux-gnu/4.1.3/../../../../lib/crti.o: requires unsupported dynamic reloc 17; recompile with -fPIC

Can you set a breakpoint on line 1940 of sparc.cc, which looks like
this:
	    if (target->may_need_copy_reloc(gsym))
for the case where r_type == R_SPARC_PC22, and see why the immediately
preceding call to gsym->needs_dynamic_reloc(flags) returned true?

Ian



More information about the Binutils mailing list