]> git.ipfire.org Git - thirdparty/binutils-gdb.git/log
thirdparty/binutils-gdb.git
6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 22 May 2018 00:02:25 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agox86: Don't set eh->local_ref to 1 for versioned symbol
H.J. Lu [Fri, 18 May 2018 21:23:41 +0000 (14:23 -0700)] 
x86: Don't set eh->local_ref to 1 for versioned symbol

bfd_hide_sym_by_version can't be used to check if a versioned symbol is
hidden.  It has to be synced with _bfd_elf_link_assign_sym_version to
get the correct answer.

bfd/

PR ld/23194
* elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
set eh->local_ref to 1 if a symbol is versioned and there is a
version script.

ld/

PR ld/23194
* testsuite/ld-i386/i386.exp: Run pr23194.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr23194.d: New file.
* testsuite/ld-i386/pr23194.map: Likewise.
* testsuite/ld-i386/pr23194.s: Likewise.
* testsuite/ld-x86-64/pr23194.d: Likewise.
* testsuite/ld-x86-64/pr23194.map: Likewise.
* testsuite/ld-x86-64/pr23194.s: Likewise.

(cherry picked from commit 97373b2eba6077d5059370a95931b93a8b118813)

6 years agox86: Don't set eh->local_ref to 1 for linker defined symbols
H.J. Lu [Fri, 18 May 2018 13:43:19 +0000 (06:43 -0700)] 
x86: Don't set eh->local_ref to 1 for linker defined symbols

Since symbols created by HIDDEN and PROVIDE_HIDDEN assignments in
linker script may be marked as defined, but not hidden, we can't
set eh->local_ref to 1 in _bfd_x86_elf_link_symbol_references_local.

Also R_386_GOT32X should be handled as just like R_386_GOT32 when
relocating a section.  The input R_386_GOT32X relocations, which
can be relaxed, should have been converted to R_386_PC32, R_386_32
or R_386_GOTOFF.

bfd/

PR ld/23189
* elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
like R_386_GOT32.
* elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
set eh->local_ref to 1 for linker defined symbols.

ld/

PR ld/23189
* testsuite/ld-i386/i386.exp: Run pr23189.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr23189.d: New file.
* testsuite/ld-i386/pr23189.s: Likewise.
* testsuite/ld-i386/pr23189.t: Likewise.
* testsuite/ld-x86-64/pr23189.d: Likewise.
* testsuite/ld-x86-64/pr23189.s: Likewise.
* testsuite/ld-x86-64/pr23189.t: Likewise.

(cherry picked from commit 011b32fd4270fb7111ee1f63695ccd44562ee7df)

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 21 May 2018 00:02:31 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 20 May 2018 00:02:39 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 19 May 2018 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoPR23199, Invalid SHT_GROUP entry leads to group confusion
Alan Modra [Fri, 18 May 2018 07:39:45 +0000 (17:09 +0930)] 
PR23199, Invalid SHT_GROUP entry leads to group confusion

This patch prevents elf_next_in_group list pointer confusion when
SHT_GROUP sections specify other SHT_GROUP sections in their list of
group sections.

PR 23199
* elf.c (setup_group): Formatting.  Check that SHT_GROUP entries
don't point at other SHT_GROUP sections.  Set shdr corresponding
to invalid entry, to NULL rather than section 0.  Identify
SHT_GROUP section index when reporting an error.  Cope with NULL
shdr pointer.

(cherry picked from commit 4bba0fb1c6d391a217c25e44398a7e1c7090155f)

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 18 May 2018 00:02:06 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 17 May 2018 00:01:58 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoFix disassembly mask for vector sdot on AArch64.
Tamar Christina [Wed, 16 May 2018 11:13:42 +0000 (12:13 +0100)] 
Fix disassembly mask for vector sdot on AArch64.

This patch corrects the disassembly masks for by element dot product
instructions. The bit 10 was wrong and supposed to be 1.

This caused incorrect disassembly of instructions in the unallocated space to
disassemble as dot product instructions.

No encoding errors can arrise from this issue.

opcodes/

PR binutils/23109
* aarch64-tbl.h (aarch64_opcode_table): Correct sdot and udot.
* aarch64-dis-2.c: Regenerate.

(cherry picked from commit ff329288d503d392de11f34ce64c7fdd3c62e50f)

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 16 May 2018 00:01:39 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoFix uninitialised memory acccess in COFF bfd backend
Christophe Guillon [Tue, 15 May 2018 12:27:45 +0000 (12:27 +0000)] 
Fix uninitialised memory acccess in COFF bfd backend

Backported from master.

2018-05-15  Christophe Guillon  <christophe.guillon@st.com>

* coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
of the aux structure are initialised.

Change-Id: I81be255ac6611afbe00995fac550e98e6a07e5df

6 years agoAdd new Portuguese translation for the bfd sub-directory.
Nick Clifton [Tue, 15 May 2018 12:17:59 +0000 (13:17 +0100)] 
Add new Portuguese translation for the bfd sub-directory.

* po/pt.po: New Portuguese translation.
* configure.ac (ALL_LINGUAS): Add pt.
* configure: Regenerate.

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 15 May 2018 00:02:09 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 14 May 2018 00:01:43 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 13 May 2018 00:02:36 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 12 May 2018 00:01:35 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 11 May 2018 00:01:51 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoFix gdb.texinfo more
Szabolcs Nagy [Mon, 15 Jan 2018 13:06:45 +0000 (13:06 +0000)] 
Fix gdb.texinfo more

Add incorrectly removed @pindex back.

gdb/doc/ChangeLog:

* gdb.texinfo (gdb-add-index man): Add pindex.

(cherry picked from commit d726cb5d3784f7ed96318a2214ea777a86f9faad)

6 years agoFix gdb.texinfo for old makeinfo (again)
Szabolcs Nagy [Mon, 15 Jan 2018 10:44:12 +0000 (10:44 +0000)] 
Fix gdb.texinfo for old makeinfo (again)

With old makeinfo (version 4.13) the changes introduced in

commit ba643918cf869fa0d064d733f69b453b6fe642ea
Author:     Sergio Durigan Junior <sergiodj@redhat.com>

    Install and generate docs for gdb-add-index

fail to build with

gdb/doc/gdb.texinfo:2498: warning: `.' or `,' must follow @xref, not `@'.
gdb/doc/gdb.texinfo:2517: warning: `.' or `,' must follow @xref, not `@'.
gdb/doc/gdb.texinfo:43443: Node `gdb-add-index man' requires a sectioning command (e.g., @unnumberedsubsec).
gdb/doc/gdb.texinfo:43443: `gdb-add-index man' has no Up field (perhaps incorrect sectioning?).
gdb/doc/gdb.texinfo:43350: Next field of node `gdbinit man' not pointed to (perhaps incorrect sectioning?).
gdb/doc/gdb.texinfo:43443: This node (gdb-add-index man) has the bad Prev.

This patch fixes the warnings too.

gdb/doc/ChangeLog:

* gdb.texinfo (set cwd): Add period.
(gdb-add-index man): Move anchor.

(cherry picked from commit dbfa452355153093d4d6841515f9891c9572113f)

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 10 May 2018 00:02:11 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 9 May 2018 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 8 May 2018 00:02:00 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 7 May 2018 00:02:07 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 6 May 2018 00:02:24 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 5 May 2018 00:01:54 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 4 May 2018 00:02:04 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 3 May 2018 00:02:06 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 2 May 2018 00:02:21 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 1 May 2018 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 30 Apr 2018 00:02:08 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 29 Apr 2018 00:03:00 +0000 (00:03 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 28 Apr 2018 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoPR23123, PowerPC32 ifunc regression
Alan Modra [Fri, 27 Apr 2018 06:16:40 +0000 (15:46 +0930)] 
PR23123, PowerPC32 ifunc regression

Two of the gcc ifunc tests fail for ppc32, due to my pr22374 fix being
a little too enthusiastic in trimming PLT entries.  ppc64 doesn't have
the same failures because ppc64_elf_check_relocs happens to set
needs_plt for any ifunc reloc.

PR 23123
PR 22374
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
relocs for ifuncs.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.

(cherry picked from commit 04383fd15b3b82d824df9c72e3ade88c43bfb5ac)

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 27 Apr 2018 00:02:07 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 26 Apr 2018 00:02:20 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoFix the mask for the sqrdml(a|s)h instructions.
Tamar Christina [Wed, 25 Apr 2018 12:37:30 +0000 (13:37 +0100)] 
Fix the mask for the sqrdml(a|s)h instructions.

Rn is supposed to have a 5 bit range but instead was given 4 bits
causing these instructions to disassemble as unknown instructions.

opcodes/

* aarch64-tbl.h (sqrdmlah, sqrdmlsh): Fix masks.

gas/

* testsuite/gas/aarch64/rdma.s: Test for larger register numbers.
* testsuite/gas/aarch64/rdma.d: Update results.
* testsuite/gas/aarch64/rdma-directive.d: Likewise.

(cherry picked from commit 10bba94bd44045559cfd048cd34376090dd8107a)

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 25 Apr 2018 00:02:18 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agox86: Add is_solaris to elf_x86_target_os
H.J. Lu [Fri, 9 Feb 2018 16:44:42 +0000 (08:44 -0800)] 
x86: Add is_solaris to elf_x86_target_os

Add is_solaris to elf_x86_target_os since Solaris is quite different.

* elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
is_solaris.
(i386_elf32_sol2_vec): Don't declare.
(elf_i386_link_setup_gnu_properties): Also handle is_solaris.
Don't set need_global_offset_table.
(elf_i386_solaris_arch_bed): New.
(elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
Solaris.
* elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
target_os != is_nacl instead of target_os == is_normal.
(x86_64_elf64_sol2_vec): Don't declare.
(elf_x86_64_link_setup_gnu_properties): Check target_os !=
is_nacl instead of target_os == is_normal.  Don't set
need_global_offset_table.
(elf_x86_64_solaris_arch_bed): New.
(elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
Solaris.
* elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
_GLOBAL_OFFSET_TABLE_ for Solaris.
(_bfd_x86_elf_link_setup_gnu_properties): Don't copy
need_global_offset_table.
* elfxx-x86.h (elf_x86_target_os): Add is_solaris.
(elf_x86_link_hash_table): Remove need_global_offset_table.
(elf_x86_init_table): Likewise.

(cherry picked from commit 3b4c384407ebbdd9ed4ad5057080b3be038b8748)

6 years agox86: Keep the unused _GLOBAL_OFFSET_TABLE_ for Solaris
H.J. Lu [Thu, 8 Feb 2018 21:52:22 +0000 (13:52 -0800)] 
x86: Keep the unused _GLOBAL_OFFSET_TABLE_ for Solaris

Solaris requires to keep _GLOBAL_OFFSET_TABLE_ even if it isn't used.
This patch detects Solaris target and keeps _GLOBAL_OFFSET_TABLE_ for
Solaris.

* elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
New prototype.
(elf_i386_link_setup_gnu_properties): Set need_global_offset_table
for Solaris.
* elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
New prototype.
(elf_x86_64_link_setup_gnu_properties): Set
need_global_offset_table for Solaris.
* elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
unused _GLOBAL_OFFSET_TABLE_ for Solaris.
(_bfd_x86_elf_link_setup_gnu_properties): Copy
need_global_offset_table.
* elfxx-x86.h (elf_x86_link_hash_table): Add
need_global_offset_table.
(elf_x86_init_table): Likewise.

(cherry picked from commit dc11dea21281758b71113c03a8d8be92d175a46c)

6 years agox86: Remove the unused _GLOBAL_OFFSET_TABLE_
H.J. Lu [Mon, 5 Feb 2018 16:38:16 +0000 (08:38 -0800)] 
x86: Remove the unused _GLOBAL_OFFSET_TABLE_

Since _GLOBAL_OFFSET_TABLE_ may be referenced implicitly on x86,
checking ref_regular_nonweak leaves the unused _GLOBAL_OFFSET_TABLE_
in output.  This patch checks explicit GOT references instead.

ld-i386/discarded1.s and ld-x86-64/discarded1.s are updated to avoid
linker optimization which removes GOT references.

bfd/

PR ld/22782
* elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
_GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
undefined weak symbol to 0.
* elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
if _GLOBAL_OFFSET_TABLE_ is referenced.
* elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
got_referenced instead of ref_regular_nonweak.  Remove the
unused _GLOBAL_OFFSET_TABLE_ from symbol table.
* elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.

ld/

PR ld/22782
* testsuite/ld-i386/discarded1.s: Replace mov with div.
* testsuite/ld-x86-64/discarded1.s: Likewise.
* testsuite/ld-i386/i386.exp: Run pr22782.
* testsuite/ld-i386/load1-nacl.d: Updated for removing
_GLOBAL_OFFSET_TABLE_ from output.
* testsuite/ld-i386/load1.d: Likewise.
* testsuite/ld-x86-64/load1a-nacl.d: Likewise.
* testsuite/ld-x86-64/load1a.d: Likewise.
* testsuite/ld-x86-64/load1b-nacl.d: Likewise.
* testsuite/ld-x86-64/load1b.d: Likewise.
* testsuite/ld-i386/pr22782.d: New file.
* testsuite/ld-i386/pr22782.s: Likewise.
* testsuite/ld-x86-64/pr22782.s: Likewise.
* testsuite/ld-x86-64/pr22782a.d: Likewise.
* testsuite/ld-x86-64/pr22782b.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr22782a and pr22782b.

(cherry picked from commit cd04836359da82ae1dc67e5a05565536f4427b51)

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 24 Apr 2018 00:01:55 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 23 Apr 2018 00:02:09 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 22 Apr 2018 00:02:12 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 21 Apr 2018 00:01:36 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoUpdated Spanish translation for gas sub-directory
Nick Clifton [Fri, 20 Apr 2018 10:20:40 +0000 (11:20 +0100)] 
Updated Spanish translation for gas sub-directory

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 20 Apr 2018 00:01:25 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 19 Apr 2018 00:01:26 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoUpdated Spanish translations for the gold and gprof sub-directories
Nick Clifton [Wed, 18 Apr 2018 09:51:22 +0000 (10:51 +0100)] 
Updated Spanish translations for the gold and gprof sub-directories

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 18 Apr 2018 00:02:00 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 17 Apr 2018 00:01:33 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 16 Apr 2018 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 15 Apr 2018 00:02:26 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 14 Apr 2018 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 13 Apr 2018 00:01:45 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoUpdated Spanish and Russian translations for the gas sub-directory
Nick Clifton [Thu, 12 Apr 2018 11:02:35 +0000 (12:02 +0100)] 
Updated Spanish and Russian translations for the gas sub-directory

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 12 Apr 2018 00:01:44 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 11 Apr 2018 00:01:37 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 10 Apr 2018 00:01:58 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 9 Apr 2018 00:01:32 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 8 Apr 2018 00:02:14 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 7 Apr 2018 00:02:22 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoImport patch from mainline sources to stop the linker from removing IA64 unwind secti...
Nick Clifton [Fri, 6 Apr 2018 14:04:50 +0000 (15:04 +0100)] 
Import patch from mainline sources to stop the linker from removing IA64 unwind sections when garbage collecting.

PR 23030
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Make sure
that the .IA_64.unwind_info and .IA_64.unwind sections are not
subject to garbage collection.

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 6 Apr 2018 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 5 Apr 2018 00:01:44 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoi386: Clear vex instead of vex.evex
H.J. Lu [Wed, 4 Apr 2018 11:36:44 +0000 (04:36 -0700)] 
i386: Clear vex instead of vex.evex

"vex" has many fields to control how to decode an instruction.  Clear
all fields in "vex" before decoding an instruction to avoid using values
left from the previous instruction.

gas/

PR binutils/23025
* testsuite/gas/i386/prefix.s: Add tests for vcvtpd2dq with
VEX and EVEX prefixes.
* testsuite/gas/i386/prefix.d: Updated.

opcodes/

PR binutils/23025
* i386-dis.c (get_valid_dis386): Don't set vex.prefix nor vex.w
to 0.
(print_insn): Clear vex instead of vex.evex.

(cherry picked from commit caf0678c84b5b55fbc4bcc853954745a4ad8b658)

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 4 Apr 2018 00:01:42 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 3 Apr 2018 00:01:37 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 2 Apr 2018 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 1 Apr 2018 00:02:05 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 31 Mar 2018 00:01:24 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 30 Mar 2018 00:01:36 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoImport patch from the mainline that fixes the ARM assembler's parsing of an illegal... users/ARM/embedded-binutils-2_30-branch-2018q2
Nick Clifton [Thu, 29 Mar 2018 11:31:04 +0000 (12:31 +0100)] 
Import patch from the mainline that fixes the ARM assembler's parsing of an illegal ORR instruction.

PR 22773
* config/tc-arm.c (md_apply_fix): Test Rn field of Thumb ORR
instruction before assuming that it is a MOV instruction.
* testsuite/gas/arm/pr22773.s: New test.
* testsuite/gas/arm/pr22773.d: New test driver.
* testsuite/gas/arm/pr22773.l: New expected output.

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 29 Mar 2018 00:01:39 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoFix case where IR file provides symbol visibility but replacement file does not.
Cary Coutant [Fri, 23 Mar 2018 16:03:34 +0000 (09:03 -0700)] 
Fix case where IR file provides symbol visibility but replacement file does not.

In PR 22868, two IR files provide conflicting visibility for a symbol.
When a def with PROTECTED visibility is seen after a def with DEFAULT
visibility, gold does not override the visibility. Later, if the
replacement object define the symbol with DEFAULT visibility, the symbol
remains DEFAULT. This was caused by a recent change to allow multiply-defined
absolute symbols, combined with the fact that the plugin framework was using
SHN_ABS as the section index for placeholder symbols. The solution is to
use a real (but arbitrary) section index.

gold/
PR gold/22868
* plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
index instead of SHN_ABS for defined symbols.
* testsuite/Makefile.am (plugin_pr22868): New test case.
* testsuite/Makefile.in: Regenerate
* testsuite/plugin_pr22868.sh: New test script.
* testsuite/plugin_pr22868_a.c: New source file.
* testsuite/plugin_pr22868_b.c: New source file.

6 years agoPR ld/22972 on SPARC.
Eric Botcazou [Wed, 28 Mar 2018 10:17:15 +0000 (12:17 +0200)] 
PR ld/22972 on SPARC.

This is a regression for the corner case of a hidden symbol in a PIC/PIE
binary which is subject to both a new-style GOTDATA relocation and an
old-style GOT relocation.  In this case, depending  on the link order,
the R_SPARC_RELATIVE dynamic relocation for the GOT slot needed because
of the old-style relocation can be replaced with R_SPARC_NONE coming
from the GOTDATA relocation.

The fix simply records whether an old-style GOT relocation is seen for a
symbol and prevents the R_SPARC_NONE from being generated in this case.

bfd/
* elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
has_old_style_got_reloc.
(_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
relocations.  Fix a couple of long lines.
(_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
a R_SPARC_NONE for the GOT slot if the symbol is also subject to
old-style GOT relocations.
ld/
* testsuite/ld-sparc/sparc.exp: Add test for mixed GOTDATA/GOT relocs.
* testsuite/ld-sparc/gotop-hidden.c: New file.
* testsuite/ld-sparc/got-hidden32.s: Likewise.
* testsuite/ld-sparc/got-hidden64.s: Likewise.
* testsuite/ld-sparc/pass.out: Likewise.

6 years agogold/testsuite: Fix bad regexp in split_x86_64.sh
Roland McGrath [Tue, 27 Mar 2018 23:27:03 +0000 (16:27 -0700)] 
gold/testsuite: Fix bad regexp in split_x86_64.sh

gold/
* testsuite/split_x86_64.sh: Fix bad regexp.

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 28 Mar 2018 00:01:36 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 27 Mar 2018 00:01:50 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agox86-64: Add ENDBR64 to the TLSDESC PLT entry
H.J. Lu [Mon, 26 Mar 2018 10:57:01 +0000 (03:57 -0700)] 
x86-64: Add ENDBR64 to the TLSDESC PLT entry

The TLSDESC entry in a lazy procedure linkage table is called indirectly
with "callq *(%rax)".  This patch adds an ENDBR64 to support indirect
branch tracking in Intel CET.  The TLSDESC PLT entry now looks like:

0xf3, 0x0f, 0x1e, 0xfa,  /* endbr64             */
0xff, 0x35, 8, 0, 0, 0,  /* pushq GOT+8(%rip)   */
0xff, 0x25, 16, 0, 0, 0  /* jmpq *GOT+TDG(%rip)  */

The BND prefix isn't needed since MPX isn't used for TLSDESC.

bfd/

PR ld/23000
* elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
ENDBR64 to the TLSDESC PLT entry.

ld/

PR ld/23000
* testsuite/ld-x86-64/tlsdesc.pd: Updated.

(cherry picked from commit bf54968b128a2133174d81c438d402ecfaf83042)

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 26 Mar 2018 00:01:57 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 25 Mar 2018 00:02:26 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 24 Mar 2018 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 23 Mar 2018 00:01:49 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 22 Mar 2018 00:02:01 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoPowerPC64 debian bug 886264, out-of-line save/restore functions
Alan Modra [Wed, 14 Mar 2018 11:39:33 +0000 (22:09 +1030)] 
PowerPC64 debian bug 886264, out-of-line save/restore functions

This calculation in relocate_section

      if (stub_entry->stub_type == ppc_stub_save_res)
relocation += (stub_sec->output_offset
       + stub_sec->output_section->vma
       + stub_sec->size - htab->sfpr->size
       - htab->sfpr->output_offset
       - htab->sfpr->output_section->vma);

to adjust from the original out-of-line save/restore function address
in sfpr to a copy at the end of stub_sec goes wrong when stub_sec is
padded, because the copy is no longer at the end of stub_sec.  The
solution is to pad before copying sfpr, so the copy is always at the
end of stub_sec.

* elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
sfpr size added before defining alias symbols.
(ppc64_elf_build_stubs): Add stub section padding before
copying sfpr contents and defining save/restore alias symbols.

(cherry picked from commit 7dda8d3cf3b089bb7e03c4cdbec827fc6a188c88)

6 years agoReally remove unnecessary power9 group terminating nop
Alan Modra [Thu, 8 Mar 2018 04:04:09 +0000 (14:34 +1030)] 
Really remove unnecessary power9 group terminating nop

Oops, not tested well enough.  -mpower9 sets all the PPC_OPCODE_POWERn
for n <= 9.

* config/tc-ppc.c (ppc_handle_align): Correct last patch.  Really
don't emit a group terminating nop for power9.  Simplify cpu
tests.

(cherry picked from commit 6a7524c6aa18f5afa4977314eb01f0360e752789)

6 years agoRemove unnecessary power9 group terminating nop
Alan Modra [Wed, 7 Mar 2018 23:47:41 +0000 (10:17 +1030)] 
Remove unnecessary power9 group terminating nop

Power9 doesn't have a group terminating nop, so we may as well emit a
normal nop for power9.  Not that it matters a great deal, I believe
ori 2,2,0 will be treated exactly as ori 0,0,0 by the hardware.

* config/tc-ppc.c (ppc_handle_align): Don't emit a group
terminating nop for power9.

(cherry picked from commit 3fea0c3b3fe53ea805f1289ec9ff5e785024362f)

6 years agoAutomatic date update in version.in
GDB Administrator [Wed, 21 Mar 2018 00:01:49 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agold/testsuite: XFAIL pr20995-2 on aarch64*-*-elf*
Roland McGrath [Tue, 20 Mar 2018 20:31:35 +0000 (13:31 -0700)] 
ld/testsuite: XFAIL pr20995-2 on aarch64*-*-elf*

ld/
* testsuite/ld-elf/elf.exp (pr20995-2): XFAIL on aarch64*-*-elf*,
another target without RELRO.

6 years agoSet non_ir_ref_dynamic if a symbol is made dynamic
H.J. Lu [Tue, 20 Mar 2018 10:51:26 +0000 (03:51 -0700)] 
Set non_ir_ref_dynamic if a symbol is made dynamic

If a symbol is made dynamic by --dynamic-list, it has non-IR reference.

bfd/

PR ld/22983
* elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.

ld/

PR ld/22983
* testsuite/ld-plugin/lto.exp: Run PR ld/22983 test.
* testsuite/ld-plugin/pr22983.d: New file.
* testsuite/ld-plugin/pr22983.t: Likewise.
* testsuite/ld-plugin/pr22983a.c: Likewise.
* testsuite/ld-plugin/pr22983b.c: Likewise.

(cherry picked from commit 416c34d683f2a17aefe19afb466af4316c7c603b)

6 years agoAutomatic date update in version.in
GDB Administrator [Tue, 20 Mar 2018 00:01:33 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoPR22836 testcases
Alan Modra [Wed, 14 Feb 2018 01:08:03 +0000 (11:38 +1030)] 
PR22836 testcases

PR 22836
* testsuite/ld-elf/pr22836-1.s: New file.
* testsuite/ld-elf/pr22836-1a.d: Likewise.
* testsuite/ld-elf/pr22836-1b.d: Likewise.

(cherry picked from commit 60f763ee16fca2cd1ec9fa6960f765de9b26ef70)

6 years agoPR22836, "-r -s" doesn't work with -g3 using GCC 7
Alan Modra [Tue, 13 Feb 2018 03:39:48 +0000 (14:09 +1030)] 
PR22836, "-r -s" doesn't work with -g3 using GCC 7

This fixes the case where all of a group is removed with ld -r, the
situation in the PR, and failures where part of a group is removed
that contain relocs.

bfd/
PR 22836
* elf.c (_bfd_elf_fixup_group_sections): Account for removed
relocation sections.  If size reduces to just the flag word,
remove that too and mark with SEC_EXCLUDE.
* elflink.c (bfd_elf_final_link): Strip empty group sections.
binutils/
* testsuite/binutils-all/group-7.s,
* testsuite/binutils-all/group-7a.d,
* testsuite/binutils-all/group-7b.d,
* testsuite/binutils-all/group-7c.d: New tests.
* testsuite/binutils-all/objcopy.exp: Run them.
ld/
* testsuite/ld-elf/pr22836-2.d,
* testsuite/ld-elf/pr22836-2.s: New test.

(cherry picked from commit 6e5e9d58c1eeef5677c90886578a895cb8c164c5)

6 years agoAutomatic date update in version.in
GDB Administrator [Mon, 19 Mar 2018 00:01:34 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sun, 18 Mar 2018 00:02:11 +0000 (00:02 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Sat, 17 Mar 2018 00:01:56 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years ago[ARM] Fix bxns mask
Thomas Preud'homme [Fri, 16 Mar 2018 14:18:53 +0000 (14:18 +0000)] 
[ARM] Fix bxns mask

Bit 7 of BXNS is a fixed bit which distinguish it from BLXNS. Yet it is
not set in the disassembler entry mask. This commit fixes that.

2018-03-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>

Backport from mainline
2018-02-19  Thomas Preud'homme  <thomas.preudhomme@arm.com>

opcodes/
* arm-dis.c (thumb_opcodes): Fix BXNS mask.

6 years agoAutomatic date update in version.in
GDB Administrator [Fri, 16 Mar 2018 00:01:38 +0000 (00:01 +0000)] 
Automatic date update in version.in

6 years agoAutomatic date update in version.in
GDB Administrator [Thu, 15 Mar 2018 00:01:30 +0000 (00:01 +0000)] 
Automatic date update in version.in