[Bug ld/25022] Make /DISCARD/ discard SHF_LINK_ORDER sections

2020-02-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25022

Nick Clifton  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
   Last reconfirmed||2020-02-07
 CC||nickc at redhat dot com
 Resolution|FIXED   |---
 Ever confirmed|0   |1

--- Comment #3 from Nick Clifton  ---
(In reply to H.J. Lu from comment #2)
> Fixed for 2.35.

Not quite:

Checking Binutils in: dlx-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: frv-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: d30v-elf ... LD REGRESSION: ld-elf/pr25022
Checking Binutils in: mn10200-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: ms1-elf ... LD REGRESSION: ld-elf/pr25022
Checking Binutils in: mt-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: xgate-elf ... LD REGRESSION: ld-elf/pr25022
Checking Binutils in: fr30-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: ft32-elf ... LD REGRESSION: ld-elf/pr25022
Checking Binutils in: iq2000-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: pj-elf ...  LD REGRESSION: ld-elf/pr25022
Checking Binutils in: s12z-elf ... LD REGRESSION: ld-elf/pr25022

Could you have a look please ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] New: gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread andy at omniosce dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

Bug ID: 25516
   Summary: gas no longer accepts sysenter/sysexit with no -m
flag.
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: andy at omniosce dot org
  Target Milestone: ---

Since upgrading to binutils 2.34, gas will no longer assemble a file in 64-bit
mode which contains sysenter/sysexit instructions. I understand that these are
not available in 64-bit mode on AMD, but the documentation says that it will
accept both ISAs unless specifically told otherwise via a flag:

   -mamd64
   -mintel64
   This option specifies that the assembler should accept only AMD64
   or Intel64 ISA in 64-bit mode.  The default is to accept both.


% cat l.s
.text
sysenter


% gas -v l.s
GNU assembler version 2.34 (x86_64-pc-solaris2.11) using BFD version (GNU
Binutils) 2.34
l.s: Assembler messages:
l.s:2: Error: unsupported instruction `sysenter'

% gas -mintel64 l.s
%

% gas -mamd64 l.s
l.s: Assembler messages:
l.s:2: Error: unsupported instruction `sysenter'


Expected results:

gas should produce the error only with -mamd64 and not with -mintel64 and not
without a specific target ISA parameter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread levon at movementarian dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

John Levon  changed:

   What|Removed |Added

 CC||levon at movementarian dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread levon at movementarian dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

--- Comment #1 from John Levon  ---
Just a little bit of context: this is a kernel asm file, and is correct as the
sysexit is never executed under AMD in 64-bit

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/23932] integer overflow causes an endless loop

2020-02-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23932

--- Comment #7 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=9984857cfd9a85a5d1b99162f9838aba099d20a0

commit 9984857cfd9a85a5d1b99162f9838aba099d20a0
Author: Nick Clifton 
Date:   Fri Feb 7 12:55:05 2020 +

Stop the BFD library from complaining if a segment has no sections attached
to it.

PR 23932
* elf.c (rewrite_elf_program_header): Do not complain if no
sections are mapped to a segment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/23932] integer overflow causes an endless loop

2020-02-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23932

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Nick Clifton  ---
Patch applied.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25022] Make /DISCARD/ discard SHF_LINK_ORDER sections

2020-02-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25022

--- Comment #4 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=adb8754e48d53b219ddaa9e8368e4b1acb9db53a

commit adb8754e48d53b219ddaa9e8368e4b1acb9db53a
Author: H.J. Lu 
Date:   Fri Feb 7 05:08:16 2020 -0800

pr25022.d: Xfail more targets without ldelf_before_place_orphans

PR ld/25022
* testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
ldelf_before_place_orphans.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25022] Make /DISCARD/ discard SHF_LINK_ORDER sections

2020-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25022

H.J. Lu  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from H.J. Lu  ---
(In reply to Nick Clifton from comment #3)
> (In reply to H.J. Lu from comment #2)
> > Fixed for 2.35.
> 
> Not quite:
> 
> Checking Binutils in: dlx-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: frv-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: d30v-elf ... LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: mn10200-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: ms1-elf ... LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: mt-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: xgate-elf ... LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: fr30-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: ft32-elf ... LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: iq2000-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: pj-elf ...  LD REGRESSION: ld-elf/pr25022
> Checking Binutils in: s12z-elf ... LD REGRESSION: ld-elf/pr25022
> 
> Could you have a look please ?
> 

Should be fixed now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

H.J. Lu  changed:

   What|Removed |Added

 CC||jbeulich at suse dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2020-02-07
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-07 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #13 from Nick Clifton  ---
Thanks Sergey.  I have now applied your patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GBZ80, Z80N CPUs and DWARF

2020-02-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

--- Comment #12 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=9fc0b501af78bc4a92f53ec712e1aaa123e0224c

commit 9fc0b501af78bc4a92f53ec712e1aaa123e0224c
Author: Sergey Belyashov 
Date:   Fri Feb 7 14:53:46 2020 +

Add support for the GBZ80 and Z80N variants of the Z80 architecture, and
add DWARF debug info support to the Z80 assembler.

PR 25469
bfd * archures.c: Add GBZ80 and Z80N machine values.
* reloc.c: Add BFD_RELOC_Z80_16_BE.
* coff-z80.c: Add support for new reloc.
* coffcode.h: Add support for new machine values.
* cpu-z80.c: Add support for new machine names.
* elf32-z80.c: Add support for new reloc.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

binutils* readelf.c (get_machine_flags): Add support for Z80N machine
number.

gas * config/tc-z80.c: Add -gbz80 command line option to generate code
for the GameBoy Z80.  Add support for generating DWARF.
* config/tc-z80.h: Add support for DWARF debug information
generation.
* doc/c-z80.texi: Document new command line option.
* testsuite/gas/z80/gbz80_all.d: New file.
* testsuite/gas/z80/gbz80_all.s: New file.
* testsuite/gas/z80/z80.exp: Run the new tests.
* testsuite/gas/z80/z80n_all.d: New file.
* testsuite/gas/z80/z80n_all.s: New file.
* testsuite/gas/z80/z80n_reloc.d: New file.

include * coff/internal.h (R_IMM16BE): Define.
* elf/z80.h (EF_Z80_MACH_Z80N): Define.
(R_Z80_16_BE): New reloc.

ld  * emulparams/elf32z80.sh: Use z80 emulation.
* emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
* emultempl/z80elf.em: Delete.
* testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
* testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
* testsuite/ld-unique/pr21529.s: Avoid register name conflict.
* testsuite/ld-unique/unique.s: Likewise.
* testsuite/ld-unique/unique_empty.s: Likewise.
* testsuite/ld-unique/unique_shared.s: Likewise.
* testsuite/ld-unique/unique.d: Updated expected output.
* testsuite/ld-z80/arch_z80n.d: New file.
* testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
* testsuite/ld-z80/labels.s: Add more labels.
* testsuite/ld-z80/relocs.s: Add more reloc tests.
* testsuite/ld-z80/relocs_f_z80n.d: New file

opcodes * z80-dis.c: Add support for GBZ80 opcodes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] New: [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Bug ID: 25517
   Summary: [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot
of options of GAS
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sergey.belyashov at gmail dot com
  Target Milestone: ---

Created attachment 12272
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12272&action=edit
Add -march option to GAS

Historically Z80 GAS port uses options -z80, -r800 and similar to select ISA,
and much of -Fins, -Wnud and similar to enable/disable undocumented
instructions. This patch replaces all of them by generic option
-march=CPU[-EXT...][+EXT...]. Where CPU is one of currently supported by Z80
GAS port CPUs (z80, z180, ez80...) and EXT is one or more of extentions and
undocumented instruction mnemonics. For example option -march=Z80-full+sli
selects Z80 CPU, removes support for all undocumented instructions, and adds
support for instruction SLI. It is not same as in i386 port (idea is taken from
there), but little shorter.

Also I remove recently added options -gbz80 and -z80n, which are not in any
release.

All old options are removed from manual and build-in help. But support for them
is kept for backward compatibility. I think, it may be removed after several
years.

All test are updated too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12272|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12273
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12273&action=edit
Add -march option to GAS

More strict default CPU selection. Polished help and manual.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25517] [Z80][PATCH] Use -march=CPU[-EXT][+EXT] instead of lot of options of GAS

2020-02-07 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25517

Sergey Belyashov  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Issue 19783 in oss-fuzz: binutils:fuzz_disassemble: Stack-overflow in suffix

2020-02-07 Thread sheriff… via monorail
Updates:
Labels: -restrict-view-commit

Comment #3 on issue 19783 by 
sheriff...@sheriffbot-1182.iam.gserviceaccount.com: binutils:fuzz_disassemble: 
Stack-overflow in suffix
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19783#c3

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

[Bug gas/25516] gas no longer accepts sysenter/sysexit with no -m flag.

2020-02-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25516

H.J. Lu  changed:

   What|Removed |Added

URL||https://sourceware.org/ml/b
   ||inutils/2020-02/msg00118.ht
   ||ml

--- Comment #2 from H.J. Lu  ---
A patch is posted at

https://sourceware.org/ml/binutils/2020-02/msg00118.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.