[Bug ld/16044] BFD (GNU Binutils) 2.23.2 assertion fail elf32-cris.c:2732

2017-04-19 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=16044

--- Comment #18 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_28-branch branch has been updated by Hans-Peter Nilsson
:

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

commit f85ae672d555af5543bcda6dce71ff6d7e687b50
Author: Hans-Peter Nilsson 
Date:   Wed Apr 19 15:27:31 2017 +0200

Fix for PR ld/16044: elf32-cris.c h->plt.refcount inconsistency

Backport (cherry-pick) from master.

-- 
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/21401] New: -shared -z now doesn't work with undefined IFUNC

2017-04-19 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21401

Bug ID: 21401
   Summary: -shared -z now doesn't work with undefined IFUNC
   Product: binutils
   Version: 2.29 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-6 foo]$ cat foo.c
extern int library_func2 (void);
int foo (void) { library_func2 (); return 0; }
__asm__(".type library_func2, %gnu_indirect_function");
[hjl@gnu-6 foo]$ make
gcc  -B./ -O2 -fPIC   -c -o foo.o foo.c
./ld -shared -z now -o foo.so  foo.o
./ld: BFD (GNU Binutils) 2.28.51.20170418 internal error, aborting at
/export/gnu/import/git/sources/binutils-gdb-linux/bfd/elf64-x86-64.c:6019 in
elf_x86_64_finish_dynamic_symbol

./ld: Please report this bug.

Makefile:14: recipe for target 'foo.so' failed
make: *** [foo.so] Error 1
[hjl@gnu-6 foo]$

-- 
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/21401] -shared -z now doesn't work with undefined IFUNC

2017-04-19 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21401

--- Comment #1 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=e492d2f8ac653b050019865ba1418fc5b057c00b

commit e492d2f8ac653b050019865ba1418fc5b057c00b
Author: H.J. Lu 
Date:   Wed Apr 19 09:59:14 2017 -0700

x86-64: Handle undefined IFUNC symbol with -z now

Since undefined IFUNC symbol is treated as normal FUNC symbol, don't
abort on undefined IFUNC symbol in the second PLT.

bfd/

PR ld/21401
* elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
on on undefined IFUNC symbol in the second PLT.

ld/

PR ld/21401
* testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
-z now.

-- 
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/21401] -shared -z now doesn't work with undefined IFUNC

2017-04-19 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21401

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.29

--- Comment #2 from H.J. Lu  ---
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 ld/21402] New: i386: indirect5 failures

2017-04-19 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21402

Bug ID: 21402
   Summary: i386: indirect5 failures
   Product: binutils
   Version: 2.29 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
Target: i386

On Linux/i386, I got

FAIL: Run indirect5 3
FAIL: Run indirect5 4
FAIL: indirect5c dynsym
FAIL: indirect5d dynsym

Running: tmpdir/indirect5c > tmpdir/indirect5c.out
child killed: segmentation violation
FAIL: Run indirect5 3
Running: tmpdir/indirect5d > tmpdir/indirect5d.out
child killed: segmentation violation
FAIL: Run indirect5 4
/export/build/gnu/binutils-32bit-misc/build-i686-linux/ld/../binutils/nm-new -D
tmpdir/indirect5c > dump.out
FAIL: indirect5c dynsym
/export/build/gnu/binutils-32bit-misc/build-i686-linux/ld/../binutils/nm-new -D
tmpdir/indirect5d > dump.out
FAIL: indirect5d dynsym

-- 
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/21402] i386: indirect5 failures

2017-04-19 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21402

H.J. Lu  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #1 from H.J. Lu  ---
They are added by

commit c5d37467b152fe98f02ac1ff8188e32ecd0def95
Author: Alan Modra 
Date:   Mon Apr 17 18:33:52 2017 +0930

Undo dynamic symbol state after regular object sym type mismatch

-- 
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/21402] i386: indirect5 failures

2017-04-19 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21402

--- Comment #2 from Alan Modra  ---
The new testcases shows bugs in the x86 backend code. 
elf_i386_allocate_dynrelocs is wrongly making "bar", a bfd_link_hash_defined
symbol, dynamic.  bfd_elf_link_record_dynamic_symbol calls there should only
change undefweak symbols.  The same bug exists for x86_64, but the testcase
does not 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