[Bug gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0

2018-04-14 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

Cary Coutant  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2018-04-14
 Ever confirmed|0   |1

--- Comment #4 from Cary Coutant  ---
I can't reproduce the problem with the object file and command line that you
provided. Even though your command line doesn't use --gc-sections, the
backtrace you showed suggested that it was in use, but adding that option still
doesn't trigger a crash.

Please provide more details if you're still seeing this problem with the latest
version of gold.

-- 
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 gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0

2018-04-14 Thread bero at lindev dot ch
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

--- Comment #5 from Bernhard Rosenkränzer  ---
Forgot that I had a patch in there that enables some options by default...

With all flags adjusted for, the command I'm running is

armv7hl-openmandriva-linux-gnueabihf-ld -z relro -X --hash-style=gnu --build-id
--enable-new-dtags --eh-frame-hdr -m armelf_linux_eabi --as-needed --icf=safe
-O1 --warn-common --warn-execstack --warn-shared-textrel  -shared -o test.so.0
shmarea.o

And --icf=safe seems to be needed to trigger it.

-- 
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 gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0 when using --icf=safe

2018-04-14 Thread bero at lindev dot ch
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

Bernhard Rosenkränzer  changed:

   What|Removed |Added

Summary|gold crashes while linking  |gold crashes while linking
   |armv7hl binaries built with |armv7hl binaries built with
   |clang 6.0   |clang 6.0 when using
   ||--icf=safe

-- 
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 gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0 when using --icf=safe

2018-04-14 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

Cary Coutant  changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED

--- Comment #6 from Cary Coutant  ---
Thanks, I see the problem now. Fix on the way...

-- 
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 gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0 when using --icf=safe

2018-04-14 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

Cary Coutant  changed:

   What|Removed |Added

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

--- Comment #7 from Cary Coutant  ---
Fixed on trunk.

-- 
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 gold/23046] gold crashes while linking armv7hl binaries built with clang 6.0 when using --icf=safe

2018-04-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23046

Cary Coutant  changed:

   What|Removed |Added

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

--- Comment #7 from Cary Coutant  ---
Fixed on trunk.

--- Comment #8 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Cary Coutant :

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

commit aae8280935aab812c3666d1c5c0ea099e96927cc
Author: Cary Coutant 
Date:   Sat Apr 14 15:58:07 2018 -0700

Fix bug where --icf=safe triggers segfault when linking ARM.

When checking a R_ARM_TARGET[12] relocation, we need a valid target
pointer, but the garbage collection code was passing a NULL instead.

gold/
PR gold/23046
* gc.h (gc_process_relocs): Pass target to
scan.global_reloc_may_be_function_pointer.

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