[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-07-27 Thread bug at bszx dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=23460

Bartek Szady  changed:

   What|Removed |Added

 CC||bug at bszx dot eu

-- 
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/14480] PDP11 gas generates invalid code for deferred indirect JSR with 0 index

2018-07-27 Thread cptjustice at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14480

--- Comment #7 from James Patrick Conlon  ---
Created attachment 11156
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11156&action=edit
Fixes implicit index deferred

@(Rn) now changes to @0(Rn) as it should.  @(Rn)+ is explicitly tested for and
remains unchanged.

-- 
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/23451] RISC-V gas aborts with "Error: unknown default architecture `'" in GCC configure tests

2018-07-27 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23451

Jim Wilson  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Jim Wilson  ---
I took a week of vacation, and forgot how to do binutils work.  Specifically, I
forgot to include the bugzilla number in the ChangeLog entry.  The patch is
here
https://sourceware.org/ml/binutils-cvs/2018-07/msg00270.html
it is only on mainline for now.  We probably need to backport.

-- 
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/23451] RISC-V gas aborts with "Error: unknown default architecture `'" in GCC configure tests

2018-07-27 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23451

Jim Wilson  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-07-27
   Assignee|unassigned at sourceware dot org   |wilson at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Jim Wilson  ---
I did a build test, but I see now that it builds but doesn't run.  Annoying,
but this is easy to fix.

I regularly test riscv32-* and riscv64-* as these are the officially supported
targets, but I'm not interested in testing riscv-*.  Use riscv-* at your own
risk.

We got in the current situation because of two main reasons.
1) There is a person (not Sebastian) willing to annoy people until he gets what
he wants, and has spent so much time annoying so many people to get riscv-*
that at least one key person has given up trying to fight him.
2) Both Sebatian and Ben Ellison were on vacation at the same time right before
the last binutils release, limiting my options for late configure related fixes
before the release.

I don't like making non-backward compatible changes.  Also, if we remove it, we
have to start fighting a certain person again.  I'm willing to do that, but it
will be hard now that some people have given up the fight.  So I think we are
stuck with riscv-* for now.  I won't be testing it, but I will fix bugs when
they are reported against 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 gas/14480] PDP11 gas generates invalid code for deferred indirect JSR with 0 index

2018-07-27 Thread cptjustice at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14480

James Patrick Conlon  changed:

   What|Removed |Added

  Attachment #11147|0   |1
is obsolete||

-- 
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/23463] New: FAIL: PR ld/12982

2018-07-27 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23463

Bug ID: 23463
   Summary: FAIL: PR ld/12982
   Product: binutils
   Version: 2.32 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
  Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
 Build: hppa-unknown-linux-gnu

gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/sr
c/ld/testsuite/ld-plugin -g -O2   -c -g -O2 -O2 -flto -c
/home/dave/gnu/binutils
/src/ld/testsuite/ld-plugin/pr12982.c -o tmpdir/pr12982.o
Executing on host: sh -c {gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I
/home/dave/gnu/binutils/src/ld/testsuite/ld-plugin -g -O2   -c -g -O2 -O2 -flto
-c /home/dave/gnu/binutils/src/ld/testsuite/ld-plugin/pr12982.c -o
tmpdir/pr1298
2.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/  
-L=/home/dave/opt/gnu/hppa-
unknown-linux-gnu/lib -L=/home/dave/opt/gnu/lib -L=/usr/local/lib -L=/lib
-L=/us
r/lib  -o tmpdir/pr12982.exe 
-L/home/dave/gnu/binutils/src/ld/testsuite/ld-plug
in -O2 -flto -fuse-linker-plugin tmpdir/pr12982.o
Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/  
-
L=/home/dave/opt/gnu/hppa-unknown-linux-gnu/lib -L=/home/dave/opt/gnu/lib
-L=/us
r/local/lib -L=/lib -L=/usr/lib  -o tmpdir/pr12982.exe 
-L/home/dave/gnu/binutil
s/src/ld/testsuite/ld-plugin -O2 -flto -fuse-linker-plugin tmpdir/pr12982.o
2>&1
}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/home/dave/gnu/binutils/objdir/ld/../binutils/readelf -l --wide
tmpdir/pr12982.e
xe > dump.out
fail if no difference
FAIL: PR ld/12982

dave@mx3210:~/gnu/binutils/objdir/ld/tmpdir$ readelf -l pr12982.exe

Elf file type is EXEC (Executable file)
Entry point 0x10338
There are 7 program headers, starting at offset 52

Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR   0x34 0x00010034 0x00010034 0x000e0 0x000e0 R   0x4
  INTERP 0x000114 0x00010114 0x00010114 0xd 0xd R   0x1
  [Requesting program interpreter: /lib/ld.so.1]
  LOAD   0x00 0x0001 0x0001 0x00958 0x00958 R E 0x1000
  LOAD   0x001000 0x00011000 0x00011000 0x00168 0x00178 RWE 0x1000
  DYNAMIC0x001020 0x00011020 0x00011020 0x000c8 0x000c8 RW  0x4
  NOTE   0x000124 0x00010124 0x00010124 0x00044 0x00044 R   0x4
  GNU_STACK  0x00 0x 0x 0x0 0x0 RWE 0x10

The test should be xfailed on hppa as it still needs an executable stack
for syscall restarts and signal returns.

The test probably started to fail when I disabled generation of GNU stack
notes in gcc.  These notes caused problems with glibc (libc/23174).

MIPS probably has same problem.

-- 
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/23453] segmentation fault in config/tc-i386.c, line 3989

2018-07-27 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23453

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.32

--- Comment #2 from H.J. Lu  ---
Fixed for 2.32.

-- 
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/23453] segmentation fault in config/tc-i386.c, line 3989

2018-07-27 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23453

--- 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=1286ab788188bb8f0b0da2a3def4641fb3817f10

commit 1286ab788188bb8f0b0da2a3def4641fb3817f10
Author: H.J. Lu 
Date:   Fri Jul 27 06:35:09 2018 -0700

x86: Check for more than 2 memory references

For

movsd (%esi), %ss:(%edi), %ss:(%eax)

we got

[hjl@gnu-tools-1 tmp]$ as -o x.o x.s
x.s: Assembler messages:
x.s:1: Error: too many memory references for `movsd'
munmap_chunk(): invalid pointer
x.s:1: Internal error (Aborted).
Please report this bug.
[hjl@gnu-tools-1 tmp]$

struct _i386_insn has

const seg_entry *seg[2];

3 memory references will overflow the seg array.  We should issue an
error if there are more than 2 memory references.

PR gas/23453
* config/tc-i386.c (parse_operands): Check for more than 2
memory references.
* testsuite/gas/i386/inval.s: Add a movsd test with 3 memory
references.
* testsuite/gas/i386/x86-64-inval.s: Likewise.
* testsuite/gas/i386/inval.l: Updated.
* testsuite/gas/i386/x86-64-inval.l: 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 binutils/23460] New: regression: ar can not create archive containing many (>1024) lto object files

2018-07-27 Thread bug at bszx dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=23460

Bug ID: 23460
   Summary: regression:  ar can not create archive containing many
(>1024) lto object files
   Product: binutils
   Version: 2.31
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: bug at bszx dot eu
  Target Milestone: ---

Created attachment 11155
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11155&action=edit
strace output recorded during invocation  of version 2.31 of ar

Version 2.31 of ar invoked with 2113 object files ( ar  cqs libQtWebKit.a
.obj/release-static/YarrInterpreter.o .obj/release-static/YarrPattern.o ... )
complains about plugin for some of them. Eg.:

ar: .obj/release-static/qrc_WebCore.o: plugin needed to handle lto object

According to strace, ar opens every object file twice but closes once and
reaches the limit on the number of open files.

Version 2.30 of ar works.

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