[Bug binutils/26667] Add powerpc64le-*-freebsd* support (elf64-powerpcle-freebsd)

2020-10-06 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26667

Alan Modra  changed:

   What|Removed |Added

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

--- Comment #2 from Alan Modra  ---
Patch applied.

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


[Bug gas/26692] [Z80][PATCH] Small GAS code improvements

2020-10-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26692

--- 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=0ae9445d52b99182a541a6da7177665252f37af8

commit 0ae9445d52b99182a541a6da7177665252f37af8
Author: Sergey Belyashav 
Date:   Tue Oct 6 11:58:57 2020 +0100

A small set of code improvements for the Z80 assembler.

PR 26692
* config/tc-z80.c (md_begin): Ensure that xpressions are empty
before using them.
(unify_indexed): Likewise.
(z80_start_line_hook): Improve hash sign handling when SDCC
compatibility mode enabled.
(md_parse_exp_not_indexed): Improve indirect addressing
detection.
(md_pseudo_table): Accept hd64 as an alias of z810.

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


[Bug gas/26692] [Z80][PATCH] Small GAS code improvements

2020-10-06 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26692

Nick Clifton  changed:

   What|Removed |Added

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

--- Comment #2 from Nick Clifton  ---
Hi Sergey,

  Thanks for the fixes.  I have now applied your patch.

Cheers
  Nick

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


[Bug gas/26699] Failure to assemble aarch64 "isb sy" in LP64 Big Endian host environment

2020-10-06 Thread acoplan at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26699

Alex Coplan  changed:

   What|Removed |Added

   Last reconfirmed||2020-10-06
 CC||acoplan at gcc dot gnu.org
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at sourceware dot org   |acoplan at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Alex Coplan  ---
Confirmed, I'll take a look.

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


[Bug gas/26699] Failure to assemble aarch64 "isb sy" in LP64 Big Endian host environment

2020-10-06 Thread acoplan at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26699

--- Comment #2 from Alex Coplan  ---
Fixed on master:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=05cfb0d8cc9b7f8676f5ae55a93642f091d5405f

Will backport to 2.35 after testing.

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


[Bug gas/26699] Failure to assemble aarch64 "isb sy" in LP64 Big Endian host environment

2020-10-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26699

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_35-branch branch has been updated by Alex Coplan
:

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

commit def9db5cb2a3e87ceada962a3269367b08dc4846
Author: Alex Coplan 
Date:   Tue Oct 6 15:56:44 2020 +0100

aarch64: Fix bogus type punning in parse_barrier() [PR26699]

This patch fixes a bogus use of type punning in parse_barrier() which
was causing an assembly failure on big endian LP64 hosts when attempting
to assemble "isb sy" for AArch64.

The type of the entries in aarch64_barrier_opt_hsh is
aarch64_name_value_pair. We were incorrectly casting this to the
locally-defined asm_barrier_opt which has a wider type (on LP64) for the
second member. This happened to work on little-endian hosts but fails on
LP64 big endian.

The fix is to use the correct type in parse_barrier(). This makes the
locally-defined asm_barrier_opt redundant, so remove it.

gas/ChangeLog:

PR 26699
* config/tc-aarch64.c (asm_barrier_opt): Delete.
(parse_barrier): Fix bogus type punning.
* testsuite/gas/aarch64/system.d: Update disassembly.
* testsuite/gas/aarch64/system.s: Add isb sy test.

(cherry picked from commit 05cfb0d8cc9b7f8676f5ae55a93642f091d5405f)

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


[Bug gas/26699] Failure to assemble aarch64 "isb sy" in LP64 Big Endian host environment

2020-10-06 Thread acoplan at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26699

Alex Coplan  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Alex Coplan  ---
Fixed on master and binutils 2.35.

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


[Bug ld/26711] New: -z ibt and -z shstk are mishandled

2020-10-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26711

Bug ID: 26711
   Summary: -z ibt and -z shstk are mishandled
   Product: binutils
   Version: 2.36 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 12891
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12891&action=edit
A testcase

[hjl@gnu-cfl-2 cet-1]$ make LD=./ld.master
as --64 -defsym __64_bit__=1 -o foo.o foo.s
as --64 -defsym __64_bit__=1 -o bar.o bar.s
as --64 -defsym __64_bit__=1 -o start.o start.s
./ld.master -o x foo.o bar.o start.o -z shstk
./ld.master -o y foo.o start.o -z shstk
./readelf -n x

Displaying notes found in: .note.gnu.property
  OwnerData sizeDescription
  GNU  0x0040   NT_GNU_PROPERTY_TYPE_0
  Properties: x86 feature: SHSTK

x86 feature used: x86

./readelf -n y

Displaying notes found in: .note.gnu.property
  OwnerData sizeDescription
  GNU  0x0040   NT_GNU_PROPERTY_TYPE_0
  Properties: x86 feature: SHSTK

x86 feature used: x86

[hjl@gnu-cfl-2 cet-1]$ 

There should be no



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


[Bug ld/26711] -z ibt and -z shstk are mishandled

2020-10-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26711

--- 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=574df58f5295ef2728526e6a73b5f429b05f2a8c

commit 574df58f5295ef2728526e6a73b5f429b05f2a8c
Author: H.J. Lu 
Date:   Tue Oct 6 15:38:23 2020 -0700

x86: Properly merge -z ibt and -z shstk

Merge -z ibt and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND, not
any GNU_PROPERTY_X86_UINT32_AND_XXX properties.

bfd/

PR ld/26711
* elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Merge -z ibt
and -z shstk only with GNU_PROPERTY_X86_FEATURE_1_AND.

ld/

PR ld/26711
* testsuite/ld-i386/i386.exp: Run ld/26711 tests.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr26711-1.d: Likewise.
* testsuite/ld-i386/pr26711-2.d: Likewise.
* testsuite/ld-i386/pr26711-3.d: Likewise.
* testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-1.d: Likewise.
* testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-2.d: Likewise.
* testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
* testsuite/ld-x86-64/pr26711-3.d: Likewise.
* testsuite/ld-x86-64/pr26711.s: Likewise.

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