[PATCH] Improve and consolidate sparc PIC assembler.

Torbjorn Granlund tg at gmplib.org
Tue Apr 16 12:15:10 CEST 2013


David Miller <davem at davemloft.net> writes:

  I see your response to my experiment request in the list
  archived, but I never received a copy myself, even though
  I received all the list postings that happened afterwards.

  Maybe it's because of the scrubbed attachment?

I think your mailbox is 99.98% full.  You need to send your password to
some yahoo account, allowing them to update your account.  :-)
  
  Anyways, it appears that gcc on Solaris doesn't pre-define __PIC__
  until very recently.
  
  Please re-try the "gmake -k" using this new Makefile, thanks:
  
swift> gmake -k
gcc -m64 -D__PIC__ -fPIC -c -o test1_shared.o test1.S
gcc -m64 -c -o test1_static.o test1.S
gcc -m64 -shared -fPIC -o test1_lib.so test1_shared.o
ld: fatal: relocation error: R_SPARC_GOTDATA_OP_LOX10: file test1_shared.o: symbol test_rodata: relocation illegal for TLS symbol
ld: fatal: relocation error: R_SPARC_GOTDATA_OP: file test1_shared.o: symbol test_rodata: relocation illegal for TLS symbol
collect2: ld returned 1 exit status
gmake: *** [test1_lib.so] Error 1
gcc -m64 -D__PIC__ -fPIC -c -o test2_shared.o test2.S
gcc -m64 -c -o test2_static.o test2.S
gcc -m64 -shared -fPIC -o test2_lib.so test2_shared.o
ld: fatal: relocation error: R_SPARC_GOTDATA_OP_LOX10: file test2_shared.o: symbol test_rodata: relocation illegal for TLS symbol
ld: fatal: relocation error: R_SPARC_GOTDATA_OP: file test2_shared.o: symbol test_rodata: relocation illegal for TLS symbol
collect2: ld returned 1 exit status
gmake: *** [test2_lib.so] Error 1
gcc -m64 -D__PIC__ -fPIC -c -o test3_shared.o test3.S
gcc -m64 -c -o test3_static.o test3.S
gcc -m64 -shared -fPIC -o test3_lib.so test3_shared.o
gmake: Target `all' not remade because of errors.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2_test.tar.bz2
Type: application/octet-stream
Size: 3891 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-devel/attachments/20130416/141e89cb/attachment.obj>
-------------- next part --------------

Torbj?rn
Sr Solaris Operator


More information about the gmp-devel mailing list