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

2023-01-20 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 Rainer Orth changed: What|Removed |Added Target Milestone|--- |2.41 Resolution|---

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

2023-01-19 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #33 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1bb82b89ae9d884016e55f2ade99c74fcc92a581 commit 1bb82b89ae9d884016e55f2ade99c74

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

2023-01-17 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 Rainer Orth changed: What|Removed |Added URL||https://sourceware.org/pipe

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

2023-01-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #31 from H.J. Lu --- (In reply to Rainer Orth from comment #29) > Created attachment 14590 [details] > Augmented^2 patch LGTM. Please send it to the binutils mailing list. Thanks. -- You are receiving this mail because: You ar

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

2023-01-13 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #30 from Rainer Orth --- (In reply to H.J. Lu from comment #28) > (In reply to Rainer Orth from comment #27) > > Created attachment 14577 [details] > > Augmented patch, incorporating review comments > > expected_tls_le should be u

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

2023-01-13 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #29 from Rainer Orth --- Created attachment 14590 --> https://sourceware.org/bugzilla/attachment.cgi?id=14590&action=edit Augmented^2 patch -- You are receiving this mail because: You are on the CC list for the bug.

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

2023-01-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #28 from H.J. Lu --- (In reply to Rainer Orth from comment #27) > Created attachment 14577 [details] > Augmented patch, incorporating review comments expected_tls_le should be unsigned int. The check will be if (r_type_tls == e

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

2023-01-11 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 Rainer Orth changed: What|Removed |Added Attachment #14568|0 |1 is obsolete|

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

2023-01-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #26 from H.J. Lu --- (In reply to Rainer Orth from comment #25) > Created attachment 14568 [details] > Augmented patch @@ -2853,9 +2866,18 @@ elf_i386_relocate_section (bfd *output_b relend

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

2023-01-10 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #25 from Rainer Orth --- Created attachment 14568 --> https://sourceware.org/bugzilla/attachment.cgi?id=14568&action=edit Augmented patch -- You are receiving this mail because: You are on the CC list for the bug.

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

2023-01-10 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 Rainer Orth changed: What|Removed |Added Status|WAITING |NEW --- Comment #24 from Rainer Orth -

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

2018-02-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #23 from H.J. Lu --- I updated users/hjl/solaris branch. But I have no idea if elf_i386_tpoff is correct for Solaris. -- You are receiving this mail because: You are on the CC list for the bug. __

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

2018-02-15 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #22 from Rainer Orth --- > --- Comment #21 from H.J. Lu --- [...] > I didn't see R_386_TLS_TPOFF. What happened to > > 0030 0b12 R_386_TLS_GD 0004 > __gcov_indirect_call_callee > > in input file? This:

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

2018-02-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #21 from H.J. Lu --- (In reply to Rainer Orth from comment #20) > The full executable is at > > > https://www.cebitec.uni-bielefeld.de/~ro/files/crossmodule-indircall-1-ld. > tar.bz2 I didn't see R_386_TLS_TPOFF. What ha

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

2018-02-14 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #20 from Rainer Orth --- > --- Comment #19 from H.J. Lu --- [...] > What doe Solaris ld generate? Here are the initial sections of with either linker: * gas-gld: 08048ff0 <__gcov_indirect_call_profiler_v2>: 8048ff0: 55

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

2018-02-14 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #19 from H.J. Lu --- (In reply to Rainer Orth from comment #18) > > --- Comment #17 from H.J. Lu --- > > Please try users/hjl/solaris branch at > > > > https://github.com/hjl-tools/binutils-gdb > > Any reason not to keep that bra

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

2018-02-14 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #18 from Rainer Orth --- > --- Comment #17 from H.J. Lu --- > Please try users/hjl/solaris branch at > > https://github.com/hjl-tools/binutils-gdb Any reason not to keep that branch in the binutils-git repo on sourceware? That's

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

2018-02-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #17 from H.J. Lu --- P

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

2018-02-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 H.J. Lu changed: What|Removed |Added Status|WAITING |NEW --- Comment #16 from H.J. Lu --- [hjl@

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

2018-02-12 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #15 from Rainer Orth --- > --- Comment #14 from H.J. Lu --- [...] > Please provide all linker inputs so that I > can reproduce i it on Linux. Now available at https://www.cebitec.uni-bielefeld.de/~ro/files/pr13671.tar.bz

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

2018-02-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #14 from H.J. Lu --- (In reply to Rainer Orth from comment #12) > While it fixes the two failing ld testcases, during a gcc mainline > bootstrap I get man errors: > > FAIL: gcc.dg/pr47793.c (test for excess errors) > Excess errors

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

2018-02-11 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #13 from Rainer Orth --- Created attachment 10807 --> https://sourceware.org/bugzilla/attachment.cgi?id=10807&action=edit assembler output -- You are receiving this mail because: You are on the CC list for the bug.

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

2018-02-11 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #12 from Rainer Orth --- While it fixes the two failing ld testcases, during a gcc mainline bootstrap I get man errors: FAIL: gcc.dg/pr47793.c (test for excess errors) Excess errors: /vol/gcc/bin/gld-2.30.51-tls: BFD (GNU Binutils

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

2018-02-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #11 from H.J. Lu --- Created attachment 10801 --> https://sourceware.org/bugzilla/attachment.cgi?id=10801&action=edit A patch Please try this. -- You are receiving this mail because: You are on the CC list for the bug. ___

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

2018-02-09 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #10 from Rainer Orth --- As a first step, I've enabled ld-i386/tls.exp and ld-x86_64/tls.exp on Solaris/x86 and ran the respective tests. The x86_64 tests all PASS, while for i386 I see the known failure case: FAIL: TLS GD/LD ->

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

2018-02-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #9 from H.J. Lu --- There are many Linux TLS tests under ld/testsuite/ld-i386. But they run only for Linux targets. Please figure out: 1. Which TLS code sequences are also generated by Solaris GCC. 2. Among them, which TLS trans

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

2018-02-08 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #8 from H.J. Lu --- Does it look like a testcase? [hjl@gnu-bdx-1 solaris-1]$ cat x.c extern __thread int __gmpfr_flags; int _start (void) { return __gmpfr_flags; } [hjl@gnu-bdx-1 solaris-1]$ cat y.c __thread int __gmpfr_flags;

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

2018-02-08 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #7 from Rainer Orth --- > --- Comment #6 from H.J. Lu --- [...] > Please provide one separate testcase in assembly code for each instance > where ld creates dynamic relocs Solaris ld.so.1 cannot handle. I'm trying, but I have a h

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

2018-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #6 from H.J. Lu --- (In reply to Rainer Orth from comment #5) > I don't think it needs to: gcc is careful only to emit those tls relocs > that the whole toolchain (assembler + linker) can handle. See > TARGET_SUN_TLS, HAVE_AS_IX86

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

2018-02-07 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #5 from Rainer Orth --- I don't think it needs to: gcc is careful only to emit those tls relocs that the whole toolchain (assembler + linker) can handle. See TARGET_SUN_TLS, HAVE_AS_IX86_TLSLDMPLT, and HAVE_AS_IX86_TLSGDPLT. So f

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

2018-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #4 from H.J. Lu --- I don't think ld supports Solaris/x86 TLS. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu

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

2018-02-07 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 --- Comment #3 from Rainer Orth --- > --- Comment #2 from H.J. Lu --- > These TLS transitions should be disabled for Solaris. > Does Solaris support Linux TLS relocations without > TLS transitions? The full docs on what Solaris does support

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

2018-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #2 from H.J. Lu --- Th

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

2018-02-07 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13671 Rainer Orth changed: What|Removed |Added CC||hjl.tools at gmail dot com V