[Bug gold/22291] GOLD silently produces an nonworking dynamic executable

2017-10-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22291

--- Comment #3 from Nick Clifton  ---
Hi H.J.

> Try this

The patch works for me. :-)

It will need a gold maintainer to approve it however...

Cheers
  Nick

-- 
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/22309] New: incremental_test_2 failure with GCC 7

2017-10-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22309

Bug ID: 22309
   Summary: incremental_test_2 failure with GCC 7
   Product: binutils
   Version: 2.30 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: hjl.tools at gmail dot com
CC: ian at airs dot com
  Target Milestone: ---

On Fedora 26/x86-64, I got

echo g++ -W -Wall-Wstack-usage=262144 -Werror -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin   -o
incremental_test_3 | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'`
-Wl,--incremental-update -Wl,-z,norelro -Bgcctestdir/ two_file_test_1.o
two_file_test_tmp_3.o two_file_test_2.o two_file_test_main.o
gcctestdir/ld: fatal error: out of patch space in section .eh_frame; relink
with --incremental-full
collect2: error: ld returned 2 exit status
make[7]: *** [Makefile:7302: incremental_test_2] Error 1

-- 
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/22304] XPASS tests in gas and unknown successes in ld

2017-10-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22304

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit 8ef027f00ba0252e22ce548c3d270db978184b5a
Author: Nick Clifton 
Date:   Wed Oct 18 15:07:36 2017 +0100

Update Cris assembler tests for checks that now pass where they used to
fail.

PR gas/22304
* testsuite/gas/cris/range-err-1.s: Remove spurious xfails.
* testsuite/gas/cris/cris.exp: Expect the shexpr-1 test to pass.

-- 
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/22304] XPASS tests in gas and unknown successes in ld

2017-10-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22304

Nick Clifton  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #2 from Nick Clifton  ---
Hi H.J.

  Agreed - these tests should be expected to pass.  I have updated the
  testsuite accordingly.

Cheers
  Nick

-- 
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/22304] XPASS tests in gas and unknown successes in ld

2017-10-18 Thread hp at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22304

Hans-Peter Nilsson  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||hp at sourceware dot org
 Resolution|FIXED   |---
   Assignee|unassigned at sourceware dot org   |hp at sourceware dot org

--- Comment #3 from Hans-Peter Nilsson  ---
(In reply to Nick Clifton from comment #2)
> Hi H.J.
> 
>   Agreed - these tests should be expected to pass.  I have updated the
>   testsuite accordingly.
> 
> Cheers
>   Nick

Um, these tests now fail for my -m32 autotester setup.  I'm reopening this and
assigning it to me for the purpose of adding or using a 32-bit-host xfail
mechanism, which did not exist at the time of addition of these tests.  Please
be patient and wait a few days, ok?  Thanks.

-- 
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/22304] XPASS tests in gas and unknown successes in ld

2017-10-18 Thread hp at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22304

--- Comment #4 from Hans-Peter Nilsson  ---
(In reply to Hans-Peter Nilsson from comment #3)
> (In reply to Nick Clifton from comment #2)
> Um, these tests now fail for my -m32 autotester setup.

FAOD, referring to the gas tests, I haven't looked into the ld tests yet.

-- 
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/22304] XPASS tests in gas and unknown successes in ld

2017-10-18 Thread hp at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22304

Hans-Peter Nilsson  changed:

   What|Removed |Added

 CC|hp at bitrange dot com |

-- 
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/22318] New: ../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol 'dlsym@@GLIBC_2.16'

2017-10-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22318

Bug ID: 22318
   Summary: ../bfd/.libs/libbfd.a(plugin.o): undefined reference
to symbol 'dlsym@@GLIBC_2.16'
   Product: binutils
   Version: 2.30 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

When -fsanitize=address is used in CFLAGS to build binutils, I got

../bfd/.libs/libbfd.a(plugin.o): undefined reference to symbol
'dlsym@@GLIBC_2.16'

config/plugins.m4 has

 if test "$plugins" = "yes"; then
AC_SEARCH_LIBS([dlopen], [dl])
  fi

plugins use dlsym, but libasan.so only intercepts dlopen, not dlsym:

[hjl@gnu-tools-1 binutils-x32-text]$ nm -D /lib64/libasan.so.4| grep " dl"
00038580 W dlclose
 U dl_iterate_phdr
0004dc50 W dlopen
 U dlsym
 U dlvsym
[hjl@gnu-tools-1 binutils-x32-text]$ 

Testing dlopen for libdl leads to false negative when -fsanitize=address
is used.

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