[Bug gas/22304] XPASS tests in gas and unknown successes in ld

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

--- Comment #5 from Nick Clifton  ---
Hi Hans-Peter,

> Um, these tests now fail for my -m32 autotester setup.

They do ?  I did test with this option enabled and I did not see any unexpected
failures...  Was this on a 32-bit host ?  I must admit that I did not check
that particular combination.

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

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

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Created attachment 10539
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10539&action=edit
Proposed patch

Hi H.J.

  Adding a check for dlsym to config/plugins.m4 appears to work, but you
  will need to submit this bug report to the gcc project since they control
  the contents of the config/ directory.

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 binutils/15152] readelf and objdump don't print strings from .dwz file

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

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Hi Tom,

  Please could you upload a compressed executable and its corresponding .dwz
file so that I can investigate further ?  (Yes, I am lazy... :-)

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 ld/22319] New: ld -u not working in new versions of binutils

2017-10-19 Thread xavier.orogay at arm dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22319

Bug ID: 22319
   Summary: ld -u not working in new versions of binutils
   Product: binutils
   Version: 2.29
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: xavier.orogay at arm dot com
  Target Milestone: ---

Hello,
we found a bug in 2.27 and 2.29.

>From 'man ld'
-u symbol
Force symbol to be entered in the output file as an undefined symbol

However, this flag stopped working on 2.27 onwards.

Reproducer:
With a "hello world" program

$ gcc -c hello.c -o hello.o
$ ld -lc -u undefined_symbol -o hello.exe hello.o

$ nm hello.exe

'nm hello.exe' should contain "U undefined_symbol" line

WE found this issue on CentOS Linux release 7.4.1708 (AltArch), that uses
binutils 2.27-9. Then I tested binutils 2.29 on Ubuntu 16.04 (x86_64) with the
same result.


Best regards,
Xavier

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

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

H.J. Lu  changed:

   What|Removed |Added

URL||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=82616

--- Comment #2 from H.J. Lu  ---
(In reply to Nick Clifton from comment #1)
> Created attachment 10539 [details]
> Proposed patch
> 
> Hi H.J.
> 
>   Adding a check for dlsym to config/plugins.m4 appears to work, but you
>   will need to submit this bug report to the gcc project since they control
>   the contents of the config/ directory.

Done.

-- 
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 gprof/21968] gprog taking huge time

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

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Hi Sandeep,

  Without more to go on I would say that this is probably expected behaviour.

  I guess that you have tried gprof from 2.29.1 as well, and found that to be
equally slow ?

  If you care to upload the gmon.out file somewhere (compressed if possible), I
will take a look and see if there are any places in the gprof code where we can
speed things up.

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 ld/22263] -fpie -pie generates dynamic relocations in text section

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

--- Comment #8 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=0fb7012e88683b8bd67a4fb8f782359fa0e11724

commit 0fb7012e88683b8bd67a4fb8f782359fa0e11724
Author: H.J. Lu 
Date:   Thu Oct 19 05:18:07 2017 -0700

sparc: Check bfd_link_executable for TLS check

Copied from x86, check bfd_link_executable, instead of bfd_link_pic,
for TLS transition check.  Not sure if it works correctly.  All usages
of bfd_link_pic should be audited.

PR ld/22263
* elfxx-sparc.c (sparc_elf_tls_transition): Replace
bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
bfd_link_executable for TLS check.
(_bfd_sparc_elf_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(_bfd_sparc_elf_relocate_section): 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/22263] -fpie -pie generates dynamic relocations in text section

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

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

commit 1ba1f393faac96f6ad80499d7133df23d6187b8c
Author: H.J. Lu 
Date:   Thu Oct 19 05:20:44 2017 -0700

tilepro: Check bfd_link_executable for TLS check

Copied from x86, check bfd_link_executable, instead of bfd_link_pic,
for TLS transition check.  Not sure if it works correctly.  All usages
of bfd_link_pic should be audited.

PR ld/22263
* elf32-tilepro.c (tilepro_elf_tls_transition): Replace
bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
bfd_link_executable for TLS check.
(tilepro_elf_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(tilepro_elf_relocate_section): 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/22263] -fpie -pie generates dynamic relocations in text section

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

--- Comment #10 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=280958942b74f3164708700f195188c4d3446f58

commit 280958942b74f3164708700f195188c4d3446f58
Author: H.J. Lu 
Date:   Thu Oct 19 05:22:23 2017 -0700

tilegx: Check bfd_link_executable for TLS check

Copied from x86, check bfd_link_executable, instead of bfd_link_pic,
for TLS transition check.  Not sure if it works correctly.  All usages
of bfd_link_pic should be audited.

PR ld/22263
* elfxx-tilegx.c (tilegx_elf_tls_transition): Replace
bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
bfd_link_executable for TLS check.
(tilegx_elf_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(tilegx_elf_relocate_section): 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 gas/21621] [avr] Wrong / missing warning "skipping two-word instruction"

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

--- 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=95e42ad4425f0ab0ebfb90035a891be576f9fca4

commit 95e42ad4425f0ab0ebfb90035a891be576f9fca4
Author: Nick Clifton 
Date:   Thu Oct 19 16:21:51 2017 +0100

Fix the AVR assembler so that it will correctly issue warnings about
skipped instructions even if subsections are used.

PR 21621
* config/tc-avr.h (struct avr_frag_data): Add prev_opcode field.
(TC_FRAG_INIT): Define.
(avr_frag_init): Add prototype.
* config/tc-avr.c (avr_frag_init): New function.
(avr_operands): Replace static local 'prev' variable with
prev_opcode field in current frag.
* testsuite/gas/avr/pr21621.s: New test source file.
* testsuite/gas/avr/pr21621.d: New test driver file.
* testsuite/gas/avr/pr21621.s: New test error output file.

-- 
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/21621] [avr] Wrong / missing warning "skipping two-word instruction"

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

Nick Clifton  changed:

   What|Removed |Added

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

--- Comment #2 from Nick Clifton  ---
Hi Georg-Johann,

  Fixed as you suggested. :-)

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

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

Hans-Peter Nilsson  changed:

   What|Removed |Added

Summary|XPASS tests in gas and  |XPASS tests in gas
   |unknown successes in ld |

--- Comment #6 from Hans-Peter Nilsson  ---
(In reply to Nick Clifton from comment #5)
> Hi Hans-Peter,
> 
> > Um, these tests now fail for my -m32 autotester setup.
> 
> They do ?  I did test with this option enabled and I did not see any
> unexpected failures...  Was this on a 32-bit host ?  I must admit that I did
> not check that particular combination.
> 
> Cheers
>   Nick

They have been consistent since they were added, the difference being whether
the bfd_address (I presume) is 32 (xfailing) or 64 bits (xpassing).
Anyway, repeatable with CC='gcc -O2 -m32' on a x86_64-linux host,
--target=cris-axis-elf alternatively --target=cris-axis-linux-gnu.  I see there
are no failing ld tests, so I guess that that part is fixed thus I'm adjusting
the title.  More later.

-- 
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/22324] New: Negative .rept count causes out-of-memory

2017-10-19 Thread eager at eagercon dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22324

Bug ID: 22324
   Summary: Negative .rept count causes out-of-memory
   Product: binutils
   Version: 2.30 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: eager at eagercon dot com
  Target Milestone: ---

Created attachment 10545
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10545&action=edit
Patch - Force .rept count to zero if negative

A negative count for the .rept pseudo-opt causes an out-of-memory failure.  

To reproduce:
$ cat test.s
.rept -1 
.long 3
.endr
$ as test.s
as: out of memory allocating 18446744073709551607 bytes after a total of 266240
bytes

-- 
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/21294] Binary size regression on PPC embedded (COMMONPAGESIZE 64k)

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

--- Comment #3 from Alan Modra  ---
I should note here for future reference that a common-page-size configure
option has a difficulty:  What exactly would it mean when ld supports multiple
targets?  Should *all* targets use the given page size, or just the default
target?  It's likely that neither of those two possible implementations would
please everybody..

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