[Bug gold/23971] New: gold: Seg-fault when running a plugin with no inputs

2018-12-10 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23971

Bug ID: 23971
   Summary: gold: Seg-fault when running a plugin with no inputs
   Product: binutils
   Version: 2.32 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: nickc at redhat dot com
CC: ian at airs dot com
  Target Milestone: ---

Created attachment 11447
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11447&action=edit
Proposed patch

Running gold with a plugin but no input files results in a segmentation fault:

 % ld.gold -plugin /usr/lib64/LLVMgold.so  does-not-exist.o
 ld.gold: error: cannot open does-not-exist.o: No such file or directory
 Segmentation fault (core dumped)

 % ld.gold -plugin
/usr/libexec/gcc/x86_64-redhat-linux/8/liblto_plugin.so.0.0.0  does-not-exist.o
  ld.gold: error: cannot open does-not-exist.o: No such file or directory
  Segmentation fault (core dumped)

It appears that plugin.cc:Plugin_hook assumes that the entry parameter will
always be set.  The uploaded patch is a suggestion for how this might be fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


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

2018-12-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23968

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_30-branch branch has been updated by H.J. Lu
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c6af0afb3616c2ce5ba2950d17532c6744617c2a

commit c6af0afb3616c2ce5ba2950d17532c6744617c2a
Author: H.J. Lu 
Date:   Mon Dec 10 04:08:52 2018 -0800

Correct gas/ChangeLog entry for PR gas/23968

(cherry picked from commit e771f7a770b07c676958247464962614266da755)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


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

2018-12-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23968

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_31-branch branch has been updated by H.J. Lu
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0c362c8126bf3bc54430ce9e8d4b0a19da23bc0b

commit 0c362c8126bf3bc54430ce9e8d4b0a19da23bc0b
Author: H.J. Lu 
Date:   Mon Dec 10 04:08:52 2018 -0800

Correct gas/ChangeLog entry for PR gas/23968

(cherry picked from commit e771f7a770b07c676958247464962614266da755)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


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

2018-12-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23968

--- Comment #2 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=e771f7a770b07c676958247464962614266da755

commit e771f7a770b07c676958247464962614266da755
Author: H.J. Lu 
Date:   Mon Dec 10 04:08:52 2018 -0800

Correct gas/ChangeLog entry for PR gas/23968

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23935] [Regression] ld.bfd does not rescan fat LTO archives to resolve plugin-added references

2018-12-10 Thread vlad at ispras dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=23935

--- Comment #11 from Vladislav Ivanishin  ---
(In reply to H.J. Lu from comment #10)
> Please try:
> 
> https://sourceware.org/ml/binutils/2018-12/msg00112.html

Works for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23906] LD Bug : Undocumented exit status 253

2018-12-10 Thread tnfchris at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23906

Tamar Christina  changed:

   What|Removed |Added

 CC||tnfchris at sourceware dot org

--- Comment #10 from Tamar Christina  ---
Hi David,

I have tried to reproduce this today using the files you provided and it seems
to work fine.

C:\Users\tamar\Desktop\binutils\Release>arm-none-eabi-g++ -mcpu=cortex-m0
-march=armv6-m -mthumb -Os -fmessage-length=0 -ffunction-sections
-fdata-sections -ffreestanding -Wall -Wextra  -g -T "../ldscripts/mem.ld" -T
"../ldscripts/sections.ld" -T "../ldscripts/libs.ld" -nostartfiles -Xlinker
--gc-sections -L"../ldscripts" 

GNU ld (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 2.30.0.20180329
PS C:\Users\tamar\Desktop\binutils\Release> echo $LASTEXITCODE
0
PS C:\Users\tamar\Desktop\binutils\Release> dir *.elf


Directory: C:\Users\tamar\Desktop\binutils\Release


ModeLastWriteTime Length Name
- -- 
-a   12/10/2018   1:05 PM6117116 uSupply Firmware V1_0.elf

Since gdb doesn't support coredumps on Windows, can you instead get a windbg
dump using procdump?
https://docs.microsoft.com/en-us/sysinternals/downloads/procdump

using

procdump.exe -t -ma -e 1 -x . 

which will dump the entire process memory.

Unfortunately procdump can't dump child processes so you'll have to isolate the
linker command from g++,

you can do this by running g++ with -Wl,-debug -save-temps as Nick mentioned
before.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/23728] binutils fail on macOS 10.14 (Mojave) due to unimplemented LC_BUILD_VERSION Mach-O load command

2018-12-10 Thread tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23728

Tom Tromey  changed:

   What|Removed |Added

 CC||lilrom13 at gmail dot com

--- Comment #10 from Tom Tromey  ---
*** Bug 23746 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/23746] Debugging under x86_64-apple-darwin18.0.0 getting "not in executable format"

2018-12-10 Thread tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23746

Tom Tromey  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #10 from Tom Tromey  ---
Dup.

*** This bug has been marked as a duplicate of bug 23728 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/23954] Use of unknown relocation function causes segfault

2018-12-10 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23954

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Jim Wilson :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8970c0224e3c36c565672089e38de42765e87f47

commit 8970c0224e3c36c565672089e38de42765e87f47
Author: Jim Wilson 
Date:   Mon Dec 10 16:40:46 2018 -0800

RISC-V: Don't segfault for two regs in auipc or lui.

gas/
PR gas/23954
* config/tc-riscv.c (my_getSmallExpression): Expand comment for
register support.  Set expr_end if parse a register.
(riscv_ip) <'u'>: Break if imm_expr is not a symbol or constant.
* testsuite/gas/riscv/auipc-parsing.d: New.
* testsuite/gas/riscv/auipc-parsing.l: New.
* testsuite/gas/riscv/auipc-parsing.s: New.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/23954] Use of unknown relocation function causes segfault

2018-12-10 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23954

Jim Wilson  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jim Wilson  ---
Fixed on mainline.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils