[Bug binutils/28144] [2.37 regression] binutils build compile zero-sized mans (probably due to extra --no-split option)

2021-07-26 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28144 --- Comment #1 from Sergei Trofimovich --- Sent https://sourceware.org/pipermail/binutils/2021-July/117503.html for review. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/28144] New: [2.37 regression] binutils build compile zero-sized mans (probably due to extra --no-split option)

2021-07-26 Thread slyfox at inbox dot ru
: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: vapier at gentoo dot org Target Milestone: --- It's a forward of downstream

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-26 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #10 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #9) > A patch is posted at > > https://sourceware.org/pipermail/binutils/2021-July/117502.html The patch works for nodejs. Thank you! -- You are receiving this m

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-26 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #8 from Sergei Trofimovich --- Here is the full reproducer: 1200 interdependent files required for a thin archive. gcc-11.1.0 + binutils-2.36.1: $ ./mk.bash thin archive for 1200 176 gcc-11.1.0 + binutils-2.37: $ ./mk.bas

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-26 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #7 from Sergei Trofimovich --- I think I got closer to the problem: it's a bad error handling related to -EMFILE (too many open files). nodejs is probably just very close to open file limit (default 1023): $ strace -f -olog -e

[Bug gold/28139] ld.gold fails while ld.bfd succeeds: error: relocation refers to local symbol "" [2], which is defined in a discarded section

2021-07-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28139 --- Comment #2 from Sergei Trofimovich --- Created attachment 13568 --> https://sourceware.org/bugzilla/attachment.cgi?id=13568&action=edit preprocessed.c Attached preprocessed file extracted as: $ x86_64-pc-linux-gnu-gcc -O2 -fno-PIE -

[Bug gold/28139] ld.gold fails while ld.bfd succeeds: error: relocation refers to local symbol "" [2], which is defined in a discarded section

2021-07-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28139 --- Comment #1 from Sergei Trofimovich --- Created attachment 13567 --> https://sourceware.org/bugzilla/attachment.cgi?id=13567&action=edit b.o b.o is a binary generated on my system. -- You are receiving this mail because: You are on the

[Bug gold/28139] New: ld.gold fails while ld.bfd succeeds: error: relocation refers to local symbol "" [2], which is defined in a discarded section

2021-07-25 Thread slyfox at inbox dot ru
: binutils Version: 2.37 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: slyfox at inbox dot ru CC: ian at airs dot com Target Milestone: ---

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #4 from Sergei Trofimovich --- Yes, the same failure happens on gcc-11.1.0 + binutils-2.37. I hoped that the failure is immediately obvious. I'll spend some time in attempt to extract minimal example from nodejs for easier explora

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #2 from Sergei Trofimovich --- I used the following reproducer linker script for bisection. Fun fact: If I comment out all the -plugin/-plugin-opt= flags the link will succeed. $ cat repro.bash #!/bin/bash cmd=( # bisect /home/

[Bug ld/28138] [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=28138 --- Comment #1 from Sergei Trofimovich --- Created attachment 13566 --> https://sourceware.org/bugzilla/attachment.cgi?id=13566&action=edit net-libs:nodejs-16.5.0:20210725-155525.log.xz -- You are receiving this mail because: You are on th

[Bug ld/28138] New: [2.37 Regression][bisected] Linker plugin complains about "malformed archive" on thin archines

2021-07-25 Thread slyfox at inbox dot ru
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: hjl.tools at gmail dot com Target Milestone: --- Initially noticed as a nodejs-14.17.3 li

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-18 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27967 --- Comment #2 from Sergei Trofimovich --- (In reply to Nick Clifton from comment #1) > (In reply to Sergei Trofimovich from comment #0) > Hi Sergei, > > I am not exactly sure what the error is here. The linker's message seems > pretty exp

[Bug binutils/27967] New: Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-08 Thread slyfox at inbox dot ru
Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Host: sparcv9-sun-solaris2.11

[Bug ld/27837] Consider allowing mix of -r / --relax by ignoring --relax.

2021-05-20 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27837 --- Comment #2 from Sergei Trofimovich --- (In reply to Nick Clifton from comment #1) > Created attachment 13462 [details] > Proposed patch > > Hi Sergei > > How about this patch ? It allows the link to complete, but it still > issues a

[Bug ld/27837] New: Consider allowing mix of -r / --relax by ignoring --relax.

2021-05-09 Thread slyfox at inbox dot ru
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- This is a forward of https://bugs.gentoo.org/788901 bug by Petr Šabata. Petr uses LDFLAGS+=-Wl,--relax system-wide. glibc (and ghc

[Bug binutils/27397] CET autodetection fails configure on i486 and i586 targets

2021-02-14 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27397 --- Comment #11 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #10) > Created attachment 13222 [details] > A patch with run-time check for multi-byte NOPs > > Try this. User reported that it works as well: https://bugs.gentoo.

[Bug gas/27412] Suspicious "setting incorrect section attributes for .note.Linux" warnings on linux kernel

2021-02-13 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27412 --- Comment #4 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #3) > A patch is posted at > > https://sourceware.org/pipermail/binutils/2021-February/115343.html Works for me. Thank you! -- You are receiving this mail because

[Bug gas/27412] Suspicious "setting incorrect section attributes for .note.Linux" warnings on linux kernel

2021-02-13 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27412 --- Comment #2 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #1) > (In reply to Sergei Trofimovich from comment #0) > > When building current linux-5.10 (or master) with gcc-11/binutins-2.36 gas > > complains about incorrect (u

[Bug gas/27412] New: Suspicious "setting incorrect section attributes for .note.Linux" warnings on linux kernel

2021-02-13 Thread slyfox at inbox dot ru
Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: amodra at gmail dot com, hjl.tools at gmail dot com Target Milestone: --- When buildi

[Bug binutils/27397] CET autodetection fails configure on i486 and i586 targets

2021-02-12 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27397 --- Comment #8 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #7) > (In reply to Sergei Trofimovich from comment #6) > > (In reply to H.J. Lu from comment #5) > > > Created attachment 13220 [details] > > > An updated patch > > >

[Bug binutils/27397] CET autodetection fails configure on i486 and i586 targets

2021-02-12 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27397 --- Comment #6 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #5) > Created attachment 13220 [details] > An updated patch > > Try this. The user reports it's building fine for them on i486: https://bugs.gentoo.org/770061#c26

[Bug binutils/27397] CET autodetection fails configure on i486 and i586 targets

2021-02-12 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27397 --- Comment #3 from Sergei Trofimovich --- Created attachment 13219 --> https://sourceware.org/bugzilla/attachment.cgi?id=13219&action=edit binutils-gdb-fix-cet.patch We debugged it in https://bugs.gentoo.org/attachment.cgi?id=686394 a bit

[Bug binutils/27397] CET autodetection fails configure on i486 and i586 targets

2021-02-11 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27397 --- Comment #2 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #1) > Created attachment 13218 [details] > A patch > > Please try this. Asked user to try in https://bugs.gentoo.org/770061#c16, failed in a simialr way. I'll debug

[Bug binutils/27397] New: CET autodetection fails configure on i486 and i586 targets

2021-02-11 Thread slyfox at inbox dot ru
: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: hjl.tools at gmail dot com Target Milestone: --- This is a forward of downstream bugs: https://bugs.gentoo.org/760926

[Bug gold/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-02-03 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 --- Comment #8 from Sergei Trofimovich --- (In reply to Cary Coutant from comment #4) > Works for me with GCC 11 (1/31/21 snapshot). > > Please also throw in a -v option on your gcc command and attach the verbose > output. I'd like to see wha

[Bug gold/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-02-03 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 --- Comment #7 from Sergei Trofimovich --- Created attachment 13201 --> https://sourceware.org/bugzilla/attachment.cgi?id=13201&action=edit initpri3a.readelf -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-02-03 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 --- Comment #6 from Sergei Trofimovich --- Created attachment 13200 --> https://sourceware.org/bugzilla/attachment.cgi?id=13200&action=edit initpri3.o.readelf initpri3.o.readelf -- You are receiving this mail because: You are on the CC li

[Bug gold/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-02-03 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 --- Comment #5 from Sergei Trofimovich --- (In reply to Cary Coutant from comment #2) > I haven't yet managed to get a clean build of GCC 11 to try to reproduce, > but I do have a suspicion. Gold reverses the .ctors entries in .init_array, > a

[Bug gold/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-02-01 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 Sergei Trofimovich changed: What|Removed |Added CC||ian at airs dot com Com

[Bug admin/27303] gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-01-31 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=27303 Sergei Trofimovich changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug admin/27303] New: gold/testsuite/initpri3. test fails on gold and lld, passes on bfd. Which one is correct?

2021-01-31 Thread slyfox at inbox dot ru
Severity: normal Priority: P2 Component: admin Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- The test fails as is on gold: $ gcc-11.0.0 initpri3.c -o bug -fuse-ld=lld && ./bug bug: initp

[Bug gold/22755] gold test suite failures (gentoo, 2.31)

2021-01-31 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22755 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/27122] New: ld -r does not complain about LTO/non-LTO mix and silently produces invalid object files.

2020-12-28 Thread slyfox at inbox dot ru
: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: hjl.tools at gmail dot com Target Milestone: --- Re-discovered in https://github.com/gentoo-haskell

[Bug gold/23607] gold linker --threads --thread-count,2 causes ld segmentation fault

2020-11-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23607 Sergei Trofimovich changed: What|Removed |Added CC||hjl.tools at gmail dot com --- C

[Bug gold/23607] gold linker --threads --thread-count,2 causes ld segmentation fault

2020-11-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23607 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/26882] New: --enable-textrel-check=warning exposes a few test failures on powerpc and others

2020-11-14 Thread slyfox at inbox dot ru
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- It's a forward of test failures observed downstream https://bugs.gentoo.org/754246 by ernsteiswuerfel. Here

[Bug ld/26762] -Wl,--as-needed removes strong symbols in favour of weak symbols

2020-10-21 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=26762 --- Comment #2 from Sergei Trofimovich --- Aha, we'll try to find another workaround downstream then. Thank you! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/26762] New: -Wl, --as-needed removes strong symbols in favour of weak symbols

2020-10-20 Thread slyfox at inbox dot ru
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru CC: ccoutant at gmail dot com Target Milestone: --- Original bug was a failed attempt to build llvm-11 with LDFLAGS="-flto -Wl,--as-n

[Bug ld/26236] ld on sparc produces R_SPARC_NONE relocations

2020-07-13 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=26236 --- Comment #2 from Sergei Trofimovich --- File gcc-specific bug at mixing crtbeginS.o / srtend.o as: https://gcc.gnu.org/PR96190. But after it's fixed I think ld should not generate R_SPARC_NONE relocations for such inputs. -- You are rece

[Bug ld/26236] ld on sparc produces R_SPARC_NONE relocations

2020-07-13 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=26236 --- Comment #1 from Sergei Trofimovich --- Created attachment 12695 --> https://sourceware.org/bugzilla/attachment.cgi?id=12695&action=edit binutils-R_SPARC_NONE-reloc.tar.gz -- You are receiving this mail because: You are on the CC list f

[Bug ld/26236] New: ld on sparc produces R_SPARC_NONE relocations

2020-07-13 Thread slyfox at inbox dot ru
Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Target: sparc-unknown-linux-gnu Initially the problem was observed by Rolf Eike Beer on elfutils as https://bugs.gentoo.org/619706. There elutils test suite

[Bug ld/25745] New: powerpc64-unknown-linux-gnu-ld overflows string buffer in --stats mode

2020-03-29 Thread slyfox at inbox dot ru
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Initially observed the crash when building ncurses-6.2 on powerpc64 using ru_RU.UTF-8 locale. $ locale LANG=ru_RU.UTF-8

[Bug ld/25745] powerpc64-unknown-linux-gnu-ld overflows string buffer in --stats mode

2020-03-29 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25745 Sergei Trofimovich changed: What|Removed |Added Target||powerpc64-unknown-linux-gnu --

[Bug ld/25694] R_RISCV_TPREL_HI20 relocations cause riscv64 to add TEXTREL bit on executables

2020-03-19 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25694 --- Comment #2 from Sergei Trofimovich --- (In reply to Jim Wilson from comment #1) > I believe this is the same as bug 22263, which added a testcase, so we > already have a ld testsuite failure for it. The problem also shows up in > openembe

[Bug ld/22909] Expand --warn-shared-textrel support to all executables, not only PIC objects

2020-03-19 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22909 --- Comment #3 from Sergei Trofimovich --- Gentoo still has that check enabled. A few days ago it found the problem in riscv64 as bug #25694 (a case of bug #22263). -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/22263] -fpie -pie generates dynamic relocations in text section

2020-03-19 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22263 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/25694] R_RISCV_TPREL_HI20 relocations cause riscv64 to add TEXTREL bit on executables

2020-03-18 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25694 Sergei Trofimovich changed: What|Removed |Added CC||andrew at sifive dot com -- You

[Bug ld/25694] R_RISCV_TPREL_HI20 relocations cause riscv64 to add TEXTREL bit on executables

2020-03-18 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25694 Sergei Trofimovich changed: What|Removed |Added CC||palmer at dabbelt dot com -- Yo

[Bug ld/25694] New: R_RISCV_TPREL_HI20 relocations cause riscv64 to add TEXTREL bit on executables

2020-03-18 Thread slyfox at inbox dot ru
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Host: x86_64-pc-linux-gnu Target: riscv64-unknown-linux-gnu Build: x86_64-pc

[Bug binutils/25355] nm reports data variable as "T" with -flto

2020-02-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25355 --- Comment #13 from Sergei Trofimovich --- (In reply to H.J. Lu from comment #12) > It is independent of -fno-common: > > > [hjl@gnu-cfl-2 pr25355]$ cat x.c > int nm_test_var = 30; > > extern int foo (void); > > int > main () > { > retu

[Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common

2020-02-06 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25355 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/25316] ia64 ld fails to convert binary into elf: "failed to merge target specific data"

2020-01-04 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25316 --- Comment #4 from Sergei Trofimovich --- Was pushed as https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=b26a3d5827edcb942b3af5b921bf317bbc0c8e83 -- You are receiving this mail because: You are on the CC list for the

[Bug gas/25331] mmix-gas fals to assemble newlib-3.1.0 (-fstack-protector-strong -ffunction-sections): internal error: fixup not contained within frag

2020-01-01 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25331 Sergei Trofimovich changed: What|Removed |Added Target||mmix-* CC|

[Bug gas/25331] New: mmix-gas fals to assemble newlib-3.1.0 (-fstack-protector-strong -ffunction-sections): internal error: fixup not contained within frag

2020-01-01 Thread slyfox at inbox dot ru
: binutils Version: 2.33 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 12160 --> ht

[Bug gas/25331] mmix-gas fals to assemble newlib-3.1.0 (-fstack-protector-strong -ffunction-sections): internal error: fixup not contained within frag

2020-01-01 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25331 --- Comment #1 from Sergei Trofimovich --- Created attachment 12161 --> https://sourceware.org/bugzilla/attachment.cgi?id=12161&action=edit min-bug.s min-bug.s was generated by -save-temps. -- You are receiving this mail because: You are

[Bug ld/25316] ia64 ld fails to convert binary into elf: "failed to merge target specific data"

2019-12-26 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25316 --- Comment #3 from Sergei Trofimovich --- Sent for review as https://sourceware.org/ml/binutils/2019-12/msg00340.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25316] ia64 ld fails to convert binary into elf: "failed to merge target specific data"

2019-12-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25316 --- Comment #2 from Sergei Trofimovich --- Created attachment 12147 --> https://sourceware.org/bugzilla/attachment.cgi?id=12147&action=edit binutils-2.32-ia64-allow-binary-merge.patch It looks like other targets (like mips and riscv64) just

[Bug ld/25316] ia64 ld fails to convert binary into elf: "failed to merge target specific data"

2019-12-25 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25316 --- Comment #1 from Sergei Trofimovich --- AFAIU eary failure happens at input checking against ELF: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/elfnn-ia64.c;h=459d986c0350f5e5982c7738ea69273f2ae97f7a;hb=HEAD#l4744

[Bug ld/25316] New: ia64 ld fails to convert binary into elf: "failed to merge target specific data"

2019-12-25 Thread slyfox at inbox dot ru
NCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Bug originally reported at https://bugs.gentoo.org/699180 by Émeric Maschino. Small reproducer: $ echo

[Bug ld/24225] nios2 overflows stack with error message: *** buffer overflow detected ***: /usr/libexec/gcc/nios2-unknown-linux-gnu/ld terminated

2019-02-16 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=24225 Sergei Trofimovich changed: What|Removed |Added Target||nios2-* -- You are receiving th

[Bug ld/24225] nios2 overflows stack with error message: *** buffer overflow detected ***: /usr/libexec/gcc/nios2-unknown-linux-gnu/ld terminated

2019-02-16 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=24225 --- Comment #1 from Sergei Trofimovich --- I think the problem here happens at bfd/elf32-nios2.c:3846: static bfd_boolean nios2_elf32_relocate_section (bfd *output_bfd, ...) { ... char msgbuf[256]; ... /* xgettext:c-format

[Bug ld/24225] New: nios2 overflows stack with error message: *** buffer overflow detected ***: /usr/libexec/gcc/nios2-unknown-linux-gnu/ld terminated

2019-02-16 Thread slyfox at inbox dot ru
: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- When linking a huge program (GHC) ld attempted

[Bug gas/23968] GOTPCREL(%rip) references against .local symbols generate invalid code in -mrelax-relocations=no mode (chromium build crashes)

2018-12-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23968 Sergei Trofimovich changed: What|Removed |Added CC||toolchain at gentoo dot org --

[Bug gas/23968] GOTPCREL(%rip) references against .local symbols generate invalid code in -mrelax-relocations=no mode (chromium build crashes)

2018-12-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23968 Sergei Trofimovich changed: What|Removed |Added CC||hjl.tools at gmail dot com -- Y

[Bug gas/23968] New: GOTPCREL(%rip) references against .local symbols generate invalid code in -mrelax-relocations=no mode (chromium build crashes)

2018-12-09 Thread slyfox at inbox dot ru
Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- sultan on freenode/#gentoo-toolchain reported a

[Bug ld/23958] New: -flto -Wl,--whole-archive causes "multiple definition" errors in elfutils (only for bfd, not gold)

2018-12-06 Thread slyfox at inbox dot ru
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 11435 --> https://sourceware.org/bugzilla/attachment.cgi?id=1143

[Bug gold/21518] ld.gold should ignore -pie flag for --oformat=binary mode (ld.bfd does)

2018-11-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21518 Sergei Trofimovich changed: What|Removed |Added Summary|ld.gold should ignmore -pie |ld.gold should ignore -pie

[Bug gold/23892] ld.gold fails partial linking on sparc64 for global registers: only registers %g[2367] can be declared using STT_REGISTER

2018-11-17 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23892 --- Comment #2 from Sergei Trofimovich --- Diffing 'objdump -x bug1-bfd.o' and 'objdump -x bug1-gold.o' shows that register number is changed: bfd: REG_G6 g R *UND* a gold: REG_G4 g R *UND*

[Bug gold/23892] ld.gold fails partial linking on sparc64 for global registers: only registers %g[2367] can be declared using STT_REGISTER

2018-11-17 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23892 --- Comment #1 from Sergei Trofimovich --- Created attachment 11400 --> https://sourceware.org/bugzilla/attachment.cgi?id=11400&action=edit bug.tar.gz -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/23892] New: ld.gold fails partial linking on sparc64 for global registers: only registers %g[2367] can be declared using STT_REGISTER

2018-11-17 Thread slyfox at inbox dot ru
Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: slyfox at inbox dot ru CC: ian at airs dot com Target Milestone: --- Initially observed

[Bug binutils/23817] New: strip corrupts SHT_LLVM_ADDRSIG section (files built with clang-7)

2018-10-24 Thread slyfox at inbox dot ru
: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 11364 --> https://sourceware.org/bugzilla/attachment.cgi?id=11364&action=edit t.tar.gz

[Bug ld/23653] ld SIGSEGVs when attempts to link sparc object with x86_64 library (--enable-targets=all): assertion fail ../../binutils-gdb/bfd/elfxx-sparc.c:1218

2018-09-13 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23653 Sergei Trofimovich changed: What|Removed |Added Target||sparc-* Host|

[Bug ld/23653] New: ld SIGSEGVs when attempts to link sparc object with x86_64 library (--enable-targets=all): assertion fail ../../binutils-gdb/bfd/elfxx-sparc.c:1218

2018-09-13 Thread slyfox at inbox dot ru
Product: binutils Version: 2.32 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment

[Bug ld/23271] internal error ../../ld/ldlang.c 6643

2018-09-10 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23271 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/23534] ld.bfd: internal error from ldlang.c:6635

2018-09-10 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23534 --- Comment #9 from Sergei Trofimovich --- (In reply to Alan Modra from comment #8) > > Gentoo has two libbfd-2.30.0.so libraries with incompatible ABIs: > > One of them is built --enable-64-bit-bfd, then other is not > > Ouch, that would exp

[Bug ld/23534] ld.bfd: internal error from ldlang.c:6635

2018-09-10 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23534 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru

[Bug ld/23527] regression (ld-2.30 worked): relocation R_X86_64_PC32 against protected symbol `a' can not be used when making a shared object

2018-08-15 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23527 --- Comment #5 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #4) > I'll try to find exact llvm commit that fixed it. Found it: commit 930bcc9bdfb9542a292c3de874d7e6ba1464cfe0 Author: George Rimar Date: Tue Feb 2

[Bug ld/23527] regression (ld-2.30 worked): relocation R_X86_64_PC32 against protected symbol `a' can not be used when making a shared object

2018-08-15 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23527 Sergei Trofimovich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/23527] regression (ld-2.30 worked): relocation R_X86_64_PC32 against protected symbol `a' can not be used when making a shared object

2018-08-15 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23527 Sergei Trofimovich changed: What|Removed |Added CC||hjl.tools at gmail dot com --- C

[Bug ld/23527] regression (ld-2.30 worked): relocation R_X86_64_PC32 against protected symbol `a' can not be used when making a shared object

2018-08-14 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23527 --- Comment #1 from Sergei Trofimovich --- Binutils target is x86_64-pc-linux-gnu -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binut

[Bug ld/23527] New: regression (ld-2.30 worked): relocation R_X86_64_PC32 against protected symbol `a' can not be used when making a shared object

2018-08-14 Thread slyfox at inbox dot ru
utils Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 11183 --&g

[Bug ld/22706] bfd/elf32-sh.c fails asserts without additional information: sh4-unknown-linux-gnu-ld: BFD assertion fail bfd/elf32-sh.c:5171

2018-07-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22706 --- Comment #5 from Sergei Trofimovich --- Managed to craft an object file to trigger needed asserts. As a bonus the test also causes out-of-bounds read access in ld and causes SIGSEGV: # cat bug.S # trying to trigger BFD_ASSERTs to

[Bug ld/22706] bfd/elf32-sh.c fails asserts without additional information: sh4-unknown-linux-gnu-ld: BFD assertion fail bfd/elf32-sh.c:5171

2018-07-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22706 --- Comment #4 from Sergei Trofimovich --- Created attachment 11151 --> https://sourceware.org/bugzilla/attachment.cgi?id=11151&action=edit bug.S -- You are receiving this mail because: You are on the CC list for the bug. _

[Bug ld/22706] bfd/elf32-sh.c fails asserts without additional information: sh4-unknown-linux-gnu-ld: BFD assertion fail bfd/elf32-sh.c:5171

2018-07-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22706 --- Comment #3 from Sergei Trofimovich --- Created attachment 11150 --> https://sourceware.org/bugzilla/attachment.cgi?id=11150&action=edit binutils-gdb-sh4-better-errors.patch -- You are receiving this mail because: You are on the CC list

[Bug ld/22706] bfd/elf32-sh.c fails asserts without additional information: sh4-unknown-linux-gnu-ld: BFD assertion fail bfd/elf32-sh.c:5171

2018-07-23 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22706 --- Comment #2 from Sergei Trofimovich --- I'm afraid I can't reproduce it on current toolchain versions as is (something was fixed): gcc-8.1.0, binutils-2.30, glibc-2.27 I'll try to craft relocations to point to invalid instructions to trigg

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-22 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 --- Comment #6 from Sergei Trofimovich --- Created attachment 11034 --> https://sourceware.org/bugzilla/attachment.cgi?id=11034&action=edit bug-orig.o bug-orig.o is an object file produced by gcc on libressl-2.6.4 -- You are receiving thi

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-21 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 --- Comment #5 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #4) > Created attachment 11033 [details] > bug-2.o crash backtrace for it: $ gdb --args ~/dev/git/binutils-gdb-hppa2.0/ld/ld-new -shared -o libbug.so bug

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-21 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 --- Comment #3 from Sergei Trofimovich --- (In reply to cvs-com...@gcc.gnu.org from comment #2) > The master branch has been updated by Alan Modra : > > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git; > h=7455c018e45766ab7193cbd45f9

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-21 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 --- Comment #4 from Sergei Trofimovich --- Created attachment 11033 --> https://sourceware.org/bugzilla/attachment.cgi?id=11033&action=edit bug-2.o -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-19 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 --- Comment #1 from Sergei Trofimovich --- Minimal reproducer does not require any external objects: $ hppa2.0-unknown-linux-gnu-ld -shared -o libbug.so bug.o -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/23207] hppa ld SIGSEGVs on invalid object files: bfd/elf32-hppa.c:468 : hppa_get_stub_entry()

2018-05-19 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23207 Sergei Trofimovich changed: What|Removed |Added Summary|hppa ld SIGSEGVs on invalid |hppa ld SIGSEGVs on invalid

[Bug ld/23207] New: hppa ld SIGSEGVs on invalid object files:

2018-05-19 Thread slyfox at inbox dot ru
: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 11031 --> https://sourceware.org/bugzilla/attachment.cgi?id=11031&action=edit bug.o Original bug found on libressl: https://bugs.gentoo.org

[Bug ld/22909] Expand --warn-shared-textrel support to all executables, not only PIC objects

2018-05-08 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22909 --- Comment #2 from Sergei Trofimovich --- I was not able to force x86 targets to generate TEXTREL executables. Best I could do is to emit pseudo textrel but it does not cause TEXTREL section creation: // a.c #include int _start() {

[Bug ld/22909] New: Expand --warn-shared-textrel support to all executables, not only PIC objects

2018-03-01 Thread slyfox at inbox dot ru
Severity: enhancement Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Gentoo enables --warn-shared-textrel by default for and extends warning to all dynamic executables (PIE or not

[Bug ld/22828] [patch] incorrect format string in ru.po causes SIGSEGVs on warnings

2018-02-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22828 Sergei Trofimovich changed: What|Removed |Added CC||nickc at sourceware dot org ---

[Bug ld/22828] New: [patch] incorrect format string in ru.po causes SIGSEGVs on warnings

2018-02-09 Thread slyfox at inbox dot ru
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 10800 --> https://sourceware.org/bugzilla/attachment.cgi?id=10800&action=edit 0001-ru.po-fix-format

[Bug ld/15891] ia64, ld segfault on --as-needed

2018-01-18 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=15891 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru -- You

[Bug ld/22706] New: bfd/elf32-sh.c fails asserts without additional information: sh4-unknown-linux-gnu-ld: BFD assertion fail bfd/elf32-sh.c:5171

2018-01-13 Thread slyfox at inbox dot ru
Version: 2.30 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Attempted to build glibc for sh4-unknown

[Bug ld/22626] [bisected] ld -pie produces invalid relocations on powerpc-unknown-linux-gnu-gcc

2017-12-18 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22626 --- Comment #7 from Sergei Trofimovich --- (In reply to Alan Modra from comment #5) > If you cannot reproduce the problem with a --disable-default-pie compiler by > using the appropriate combination of options (-pie -fPIE), then the problem >

  1   2   >