[Bug ld/22471] New: libraries using version scripts can cause undefined reference to symbol '__bss_start'

2017-11-21 Thread james410 at cowgill dot org.uk
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- Created attachment 10625 --> https://sourceware.org/bugzilla/attachment.cgi?id

[Bug gas/22127] New: as segfaults assembling invalid .reloc

2017-09-12 Thread james410 at cowgill dot org.uk
Component: gas Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- I just noticed that a source file containing an invalid .reloc involving local symbols causes as to segfault. This affects at least x86_64 and mips (but probably

[Bug ld/21900] New: [MIPS] linking shared library with -z defs --warn-unresolved-symbols emits null relocation

2017-08-03 Thread james410 at cowgill dot org.uk
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- Hi, On MIPS, using "-z defs" and "--warn-unresolved-symbols" while building a

[Bug gas/21762] Use of STABS directives on MIPS causes label to be incorrectly marked as MIPS16

2017-07-12 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21762 --- Comment #1 from James Cowgill --- > Breakpoint 1, mips_compressed_mark_label (label=0x55a599e0) at > ../../binutils-gdb/gas/config/tc-mips.c:4389 > 4389gas_assert (HAVE_CODE_COMPRESSION); > (gdb) bt > #0 mips_compressed_mark_labe

[Bug gas/21762] New: Use of STABS directives on MIPS causes label to be incorrectly marked as MIPS16

2017-07-12 Thread james410 at cowgill dot org.uk
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- On MIPS, attempting to use a STABS directive (.stabs, .stabn or .stabd) before a .set directive has occured

[Bug ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-04-10 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334 --- Comment #7 from James Cowgill --- (In reply to Maciej W. Rozycki from comment #6) > In fact, based on the observation previously made that this function is > already inconsistently called in the `--gc-sections' case even in the > static ca

[Bug ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-04-06 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334 --- Comment #5 from James Cowgill --- Maciej, your fix does fix my testcase, but doesn't seem to fix supermin. I now get this error repeatedly when I try to build supermin or build anything statically: ./ld: BFD (GNU Binutils) 2.28.51.2017040

[Bug ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334 James Cowgill changed: What|Removed |Added CC||ma...@linux-mips.org -- You are rece

[Bug ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334 James Cowgill changed: What|Removed |Added CC||hobbitalastair at yandex dot com --

[Bug ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334 James Cowgill changed: What|Removed |Added Target||mips*-*-* -- You are receiving this

[Bug ld/21334] New: [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- Originally from the Debian supermin package: https://buildd.debian.org/status/fetch.php?pkg=supermin&

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-20 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 --- Comment #7 from James Cowgill --- I think I see the problem, you need to pass -fPIE when building main.o to trigger the bug. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-20 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 --- Comment #6 from James Cowgill --- I've attached the built objects. They were built with Debian's mips cross compiler: $ mipsel-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=mipsel-linux-gnu-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-20 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 --- Comment #5 from James Cowgill --- Created attachment 9923 --> https://sourceware.org/bugzilla/attachment.cgi?id=9923&action=edit alpha-lib.so built with GCC 6 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-20 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 --- Comment #4 from James Cowgill --- Created attachment 9922 --> https://sourceware.org/bugzilla/attachment.cgi?id=9922&action=edit main.o built with GCC 6 -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-13 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 --- Comment #2 from James Cowgill --- This appears to be strongly related to PR/20828. I managed to reduce it down to this: $ cat alpha-lib.c void alpha(void) {} $ cat main.c void alpha(void); void beta(void) { alpha(); } $ gcc -shared alp

[Bug binutils/21233] Internal error, /usr/bin/ld: BFD (GNU Binutils for Debian) 2.28 assertion fail ../../bfd/elfxx-mips.c:3861

2017-03-08 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21233 James Cowgill changed: What|Removed |Added CC||james410 at cowgill dot org.uk

[Bug ld/20828] GC-ed DSO symbols make corresponding symbols defined by a linker script local

2017-01-28 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 James Cowgill changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug gold/21054] [MIPS] Forced local symbol rearranging messes up GOT

2017-01-17 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21054 James Cowgill changed: What|Removed |Added Attachment #9754|0 |1 is obsolete|

[Bug gold/21054] New: [MIPS] Forced local symbol rearranging messes up GOT

2017-01-16 Thread james410 at cowgill dot org.uk
Component: gold Assignee: ccoutant at gmail dot com Reporter: james410 at cowgill dot org.uk CC: ian at airs dot com Target Milestone: --- Created attachment 9754 --> https://sourceware.org/bugzilla/attachment.cgi?id=9754&action=edit gold-mips

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2017-01-12 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 --- Comment #16 from James Cowgill --- (In reply to Maciej W. Rozycki from comment #15) > NB while I'll implement the missing dynsym ordering case for the MIPS > backend so that it follows the ELF gABI even if weird output is somehow > produce

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2016-11-25 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 --- Comment #10 from James Cowgill --- (In reply to Maciej W. Rozycki from comment #8) > By the MIPS psABI's definition you shall not have external GGA_NONE > symbols as any GGA_NONE symbols will be assigned to the local GOT part, > whose entr

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2016-11-25 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 --- Comment #9 from James Cowgill --- I added some debug code ontop of my patch and it seems that at the time the dynamic symbol table indexes are allocated, all the symbols are GGA_NONE. debug: _fdata, LOCAL, GGA_NONE debug: _ftext, LOCAL, G

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2016-11-24 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 --- Comment #7 from James Cowgill --- (In reply to Maciej W. Rozycki from comment #6) > Do we need to have these hidden symbols in the dynsym table at all in > the first place? It looks like unnecessary clutter to me, they won't > ever be use

[Bug ld/20828] [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2016-11-18 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20828 --- Comment #2 from James Cowgill --- Created attachment 9649 --> https://sourceware.org/bugzilla/attachment.cgi?id=9649&action=edit patch attempt 1 So I had a go at fixing this. The patch basically does an extra pass to assign indexes to a

[Bug ld/20828] New: [MIPS] produces invalid dynamic symbol table when --gc-sections is used since PR ld/13177 fix

2016-11-16 Thread james410 at cowgill dot org.uk
: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- Originally from Debian: https://bugs.debian.org/844357 Related: https://bugs.debian.org/844227

[Bug gas/20649] [MIPS] Can't find matching LO16 reloc

2016-10-06 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20649 --- Comment #4 from James Cowgill --- Maciej, is it OK for me to ask for your patch to be applied to the Debian binutils package? -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/17560] mips: assertion failure with --as-needed + weak + hidden main function

2016-10-03 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=17560 James Cowgill changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug gas/20649] [MIPS] Can't find matching LO16 reloc

2016-09-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20649 --- Comment #3 from James Cowgill --- Thanks for the patch, it seems to work. I ran a full build of blender where the bug originally came from and it builds fine now. James -- You are receiving this mail because: You are on the CC list for

[Bug gas/20649] [MIPS] Can't find matching LO16 reloc

2016-09-29 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=20649 --- Comment #1 from James Cowgill --- Created attachment 9541 --> https://sourceware.org/bugzilla/attachment.cgi?id=9541&action=edit src.s Assembly output from compiling the testcase with: mipsel-linux-gnu-g++-6 -O2 -fPIC -S src.cpp -- Y

[Bug gas/20649] New: [MIPS] Can't find matching LO16 reloc

2016-09-29 Thread james410 at cowgill dot org.uk
: gas Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Target Milestone: --- Created attachment 9540 --> https://sourceware.org/bugzilla/attachment.cgi?id=9540&action=edit src.cpp Debian bug: https://bugs.debian.org/834147 Moved fro

[Bug ld/18076] mips: segfault in _bfd_elf_gc_mark_rsec

2015-03-03 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=18076 --- Comment #1 from James Cowgill --- Created attachment 8163 --> https://sourceware.org/bugzilla/attachment.cgi?id=8163&action=edit backtrace -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/18076] New: mips: segfault in _bfd_elf_gc_mark_rsec

2015-03-03 Thread james410 at cowgill dot org.uk
Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk Created attachment 8162 --> https://sourceware.org/bugzilla/attachment.cgi?id=8162&action=edit lj_vm.s In Debian, compiling trafficserver 5.2.0 causes ld to segfault in _bfd_elf_gc_ma

[Bug ld/17560] New: mips: assertion failure with --as-needed + weak + hidden main function

2014-11-06 Thread james410 at cowgill dot org.uk
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: james410 at cowgill dot org.uk With the combination of: - MIPS - Linking with --as-needed - The main() function being declared hidden - Linking with a shared library which

[Bug ld/15428] Linker crash on R_MIPS_GOT_PAGE relocations referring to absolute symbols

2014-10-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=15428 --- Comment #3 from James Cowgill --- There might already be an (at least related) test for this. If I revert the commit I mentioned I get: ... Running /home/jcowgill/binutils-gdb/ld/testsuite/ld-mips-elf/mips-elf.exp ... FAIL: MIPS magic __eh

[Bug ld/15428] Linker crash on R_MIPS_GOT_PAGE relocations referring to absolute symbols

2014-10-29 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=15428 James Cowgill changed: What|Removed |Added CC||james410 at cowgill dot org.uk