[Bug ld/21498] New: ld test failuires

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21498

Bug ID: 21498
   Summary: ld test failuires
   Product: binutils
   Version: 2.28
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
Target: cris-elf

I got

FAIL: ld-cris/dso-pltdis1
FAIL: ld-cris/dso-pltdis2
FAIL: ld-cris/libdso-10
FAIL: ld-cris/libdso-11
FAIL: ld-cris/libdso-12
FAIL: ld-cris/libdso-12b
FAIL: ld-cris/libdso-12c
FAIL: ld-cris/libdso-13
FAIL: ld-cris/libdso-13b
FAIL: ld-cris/libdso-14
FAIL: ld-cris/libdso-15
FAIL: ld-cris/libdso-15b
FAIL: ld-cris/libdso-1c
FAIL: ld-cris/libdso-1d
FAIL: ld-cris/libdso-2
FAIL: ld-cris/tls-dso-dtpoffd2
FAIL: ld-cris/tls-dso-dtpoffd4
FAIL: ld-cris/tls-dso-tpoffgotcomm1
FAIL: ld-cris/dso12-pltdis
FAIL: ld-cris/expdyn1
FAIL: ld-cris/expdyn5
FAIL: ld-cris/expdyn6
FAIL: ld-cris/expdyn7
FAIL: ld-cris/gotplt1
FAIL: ld-cris/gotplt2
FAIL: ld-cris/gotplt3
FAIL: ld-cris/pic-gc-72
FAIL: ld-cris/pic-gc-73
FAIL: ld-cris/pv32-1
FAIL: ld-cris/tls-e-20
FAIL: ld-cris/tls-e-20a
FAIL: ld-cris/tls-e-21
FAIL: ld-cris/tls-e-22
FAIL: ld-cris/tls-e-23
FAIL: ld-cris/tls-e-66
FAIL: ld-cris/tls-e-80
FAIL: ld-cris/tls-e-dtpoffd1
FAIL: ld-cris/tls-e-dtpoffd3
FAIL: ld-cris/tls-gc-71
FAIL: ld-cris/tls-gd-1
FAIL: ld-cris/tls-gd-1h
FAIL: ld-cris/tls-gd-2
FAIL: ld-cris/tls-gd-2h
FAIL: ld-cris/tls-gd-3
FAIL: ld-cris/tls-gd-3h
FAIL: ld-cris/tls-global-74
FAIL: ld-cris/tls-ie-10
FAIL: ld-cris/tls-ie-11
FAIL: ld-cris/tls-ie-78
FAIL: ld-cris/tls-ie-8
FAIL: ld-cris/tls-ie-8e1
FAIL: ld-cris/tls-ie-9
FAIL: ld-cris/tls-js1
FAIL: ld-cris/tls-ld-4
FAIL: ld-cris/tls-ld-5
FAIL: ld-cris/tls-ld-6
FAIL: ld-cris/tls-ld-7
FAIL: ld-cris/tls-ldgd-14
FAIL: ld-cris/tls-ldgd-15
FAIL: ld-cris/tls-ldgde-14
FAIL: ld-cris/tls-ldgde-15
FAIL: ld-cris/tls-ldgdex-14
FAIL: ld-cris/tls-ldgdex-15
FAIL: ld-cris/tls-ldgdx-14
FAIL: ld-cris/tls-ldgdx-15
FAIL: ld-cris/tls-le-12
FAIL: ld-cris/tls-le-12s
FAIL: ld-cris/tls-le-13
FAIL: ld-cris/tls-le-13s
FAIL: ld-cris/tls-legd-16
FAIL: ld-cris/tls-legd-17
FAIL: ld-cris/tls-legdx-16
FAIL: ld-cris/tls-legdx-17
FAIL: ld-cris/tls-leie-18
FAIL: ld-cris/tls-leie-19
FAIL: ld-cris/tls-local-54
FAIL: ld-cris/tls-local-57
FAIL: ld-cris/tls-local-58
FAIL: ld-cris/tls-local-59
FAIL: ld-cris/tls-local-60
FAIL: ld-cris/tls-local-61
FAIL: ld-cris/tls-local-63
FAIL: ld-cris/tls-local-64
FAIL: ld-cris/tls-ok-30
FAIL: ld-cris/tls-ok-32
FAIL: ld-cris/tls-ok-34
FAIL: ld-cris/tls-ok-36
FAIL: ld-cris/tls-und-38
FAIL: ld-cris/tls-und-42
FAIL: ld-cris/tls-und-46
FAIL: ld-cris/tls-und-50
FAIL: ld-cris/weakhiddso
FAIL: ld-cris/weakref2
FAIL: ld-cris/weakref3
FAIL: ld-cris/weakref4

for cris-elf target.

-- 
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/21498] ld test failuires

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21498

--- Comment #1 from H.J. Lu  ---
It is caused by

commit 647e4d46495f2bfb0950fd1066c8a660173cca40
Author: H.J. Lu 
Date:   Wed Jun 22 05:37:24 2016 -0700

ld: Add a linker configure option --enable-relro

Add a configure option --enable-relro to decide whether -z relro should
be enabled in ELF linker by default.  Default to yes for all Linux
targets, except FRV, HPPA, IA64 and MIPS, since many relro tests fail
on these targets.

Since those cris tests check for addresses, enable -z relro changes addresses.

-- 
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/21498] ld test failuires

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21498

--- Comment #2 from H.J. Lu  ---
I can't reproduce it on a different machine.

-- 
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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20882

--- Comment #7 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=b7c871edcd83ccdc5fcd8148a7f433efd6b52255

commit b7c871edcd83ccdc5fcd8148a7f433efd6b52255
Author: H.J. Lu 
Date:   Wed May 17 07:57:15 2017 -0700

Mark debug sections referenced by kept debug sections

If a debug section is referenced by a kept debug section, it should
also be kept.

Some targets, like mips, keep input files when there are some special
sections, like .gnu.attributes, even if input file is unused otherwise.
In this case, all debug sections are kept.  The new test will fail on
such targets.  We can either fix those targets or XFAIL the test.

bfd/

PR ld/20882
* elflink.c (elf_gc_mark_debug_section): New function.
(_bfd_elf_gc_mark_extra_sections): Mark any debug sections
referenced by kept debug sections.

ld/

PR ld/20882
* testsuite/ld-gc/gc.exp: Run pr20882.
* testsuite/ld-gc/pr20882.d: New file.
* testsuite/ld-gc/pr20882a.s: Likewise.
* testsuite/ld-gc/pr20882b.s: Likewise.
* testsuite/ld-gc/pr20882c.s: Likewise.

-- 
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/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20882

H.J. Lu  changed:

   What|Removed |Added

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

--- Comment #8 from H.J. Lu  ---
Fixed for 2.29.

-- 
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/21498] ld test failuires

2017-05-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21498

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from H.J. Lu  ---
It is caused by configuring ld with --enable-relro.

-- 
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/21034] binutils/stabs.c:2705: if (**pp == ';' || *pp == '\0')

2017-05-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21034

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_28-branch branch has been updated by Alan Modra
:

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

commit 1663acb165d6f3f17a21750e1b1140005d5a25f0
Author: Alan Modra 
Date:   Thu May 18 09:07:26 2017 +0930

Fix compile time warning about pointer comparison.

PR 21034
* stabs.c (parse_stab_members): Fix thinko checking for g++
version 1 stabs information.

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