bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/13671] gld creates i386 relocations not supported by Solaris ld.


From: hjl.tools at gmail dot com
Subject: [Bug ld/13671] gld creates i386 relocations not supported by Solaris ld.so.1
Date: Thu, 08 Feb 2018 22:24:22 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=13671

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
Does it look like a testcase?

address@hidden solaris-1]$ cat x.c
extern __thread int __gmpfr_flags;

int
_start (void)
{
  return __gmpfr_flags;
}
address@hidden solaris-1]$ cat y.c
__thread int __gmpfr_flags;
address@hidden solaris-1]$ make
gcc -m32 -fPIC   -c -o x.o x.c
gcc -m32 -fPIC   -c -o y.o y.c
./ld -m elf_i386_sol2 -shared -o y.so y.o
./ld -m elf_i386_sol2 -o x x.o y.so
readelf -r x

Relocation section '.rel.dyn' at offset 0x224 contains 1 entry:
 Offset     Info    Type            Sym.Value  Sym. Name
08049338  00000225 R_386_TLS_TPOFF32 00000000   __gmpfr_flags
address@hidden solaris-1]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]