[Bug ld/20796] New: m68k binutils produce R_68K_NONE relocations in .rela.plt. Causes glibc to fail to load binaries.

2016-11-08 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 Target Milestone: --- How to reproduce. We will need to build a shared library and an executable. //Executable

[Bug ld/20796] m68k binutils produce R_68K_NONE relocations in .rela.plt. Causes glibc to fail to load binaries.

2016-11-08 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=20796 Sergei Trofimovich changed: What|Removed |Added CC||sch...@linux-m68k.org -- You ar

[Bug ld/20797] New: m68k binutils produce R_68K_NONE relocations

2016-11-08 Thread slyfox at inbox dot ru
Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- It's a long known bug without real known impact. I have not found bugzilla entry for it thus documenting it here. Maybe it will get fix one day. binutils

[Bug ld/20797] m68k binutils produce R_68K_NONE relocations

2016-11-08 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=20797 Sergei Trofimovich changed: What|Removed |Added CC||sch...@linux-m68k.org -- You ar

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

2017-05-24 Thread slyfox at inbox dot ru
: 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: --- It came up as a build failure of dosemu on gcc-7 with --enable-default-pie: https

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

2017-06-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 igmore -pie |ld.gold should ignmore -pie

[Bug binutils/21669] New: strip from binutils-2.28 SIGSEGVs when strips ia64 files

2017-06-24 Thread slyfox at inbox dot ru
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Noticed when built gcc-6.3.0 and gcc-5.4.0 with bintils-2.28 (original report https://bugs.gentoo.org/show_bug.cgi?id=622500

[Bug binutils/21669] strip from binutils-2.28 SIGSEGVs when strips ia64 files

2017-06-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21669 Sergei Trofimovich changed: What|Removed |Added Target||ia64-unknown-linux-gnu -- You a

[Bug binutils/21669] strip from binutils-2.28 SIGSEGVs when strips ia64 files

2017-06-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21669 --- Comment #1 from Sergei Trofimovich --- Created attachment 10219 --> https://sourceware.org/bugzilla/attachment.cgi?id=10219&action=edit binutils-2.28-bfd-elf.c-fix-out-of-bounds-access-in-find_link.patch binutils-2.28-bfd-elf.c-fix-out-

[Bug binutils/21669] strip from binutils-2.28 SIGSEGVs when strips ia64 files

2017-06-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21669 Sergei Trofimovich changed: What|Removed |Added CC||nickc at redhat dot com --- Comm

[Bug binutils/21669] strip from binutils-2.28 SIGSEGVs when strips ia64 files

2017-06-24 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21669 Sergei Trofimovich changed: What|Removed |Added URL||https://sourceware.org/ml/b

[Bug ld/21677] ld 2.27 has unexplained 10x performance improvement in some cases

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

[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section

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

[Bug ld/22067] New: ld SIGSEGVs when links memtest86+: gldelf_x86_64_place_orphan

2017-09-02 Thread slyfox at inbox dot ru
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Created attachment 10388 --> https://sourceware.org/bugzilla/attachment.cgi?id=10388&action=edit memtest-repro.tar.gz The

[Bug ld/22067] ld SIGSEGVs when links memtest86+: gldelf_x86_64_place_orphan

2017-09-02 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22067 --- Comment #1 from Sergei Trofimovich --- Running ld from master under valgrind suggests the out-of-bounds access is still there: $ valgrind --quiet /home/slyfox/dev/git/binutils-gdb-x86_64/ld/ld-new -T memtest.bin.lds bootsect.o setup.o -b

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

2017-12-17 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: --- Original bug: https://bugs.gentoo.org/641474#c4 The issue manifests as non-working binary when gcc is

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

2017-12-17 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22626 Sergei Trofimovich changed: What|Removed |Added Target||powerpc-unknown-linux-gnu

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

2017-12-17 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22626 --- Comment #2 from Sergei Trofimovich --- Same for master from commit 390c91cfcffe1a0d75b6100d1542cda2544993b3 (HEAD -> master, origin/master, origin/HEAD) Author: H.J. Lu Date: Sun Dec 17 09:40:54 2017 -0800 x86: Check pseudo

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

2017-12-17 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22626 --- Comment #3 from Sergei Trofimovich --- Original program is: int main(){} -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binuti

[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 #6 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 >

[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 >

[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/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/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/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/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/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/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/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] 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-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-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 #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-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/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/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-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/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/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] 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-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 --- 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/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/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/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/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/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 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 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 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] 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/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 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 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 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] 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 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 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] 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/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/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] 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-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 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 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 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 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 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 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 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] 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/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/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/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/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/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/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/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] 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/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/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/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 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 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 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/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 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 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 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 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-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 #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 #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 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 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] 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-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 #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 > > >

  1   2   >