Commit Graph

107141 Commits

Author SHA1 Message Date
GDB Administrator
1e6a1c8306 Automatic date update in version.in 2021-08-06 00:00:51 +00:00
GDB Administrator
28392428d0 Automatic date update in version.in 2021-08-05 00:01:14 +00:00
Andreas Krebbel
d2cb9c60a5 IBM Z: Add another arch14 instruction
opcodes/

	* opcodes/s390-opc.txt: Add qpaci.

gas/

	* testsuite/gas/s390/zarch-arch14.d: Add qpaci.
	* testsuite/gas/s390/zarch-arch14.s: Add qpaci.

(cherry picked from commit e4cc3b47ec)
2021-08-04 17:41:50 +02:00
Andreas Krebbel
0c966828ce IBM Z: Remove lpswey parameter
opcodes/
	* s390-opc.c (INSTR_SIY_RD): New instruction format.
	(MASK_SIY_RD): New instruction mask.
	* s390-opc.txt: Change instruction format of lpswey to SIY_RD.

gas/
	* testsuite/gas/s390/zarch-arch14.d: Remove last operand of
	lpswey.
	* testsuite/gas/s390/zarch-arch14.s: Likewise.

(cherry picked from commit a164bbda30)
2021-08-04 17:06:56 +02:00
Alan Modra
2e8e5a93a1 PR28156, rename.c doesn't compile with MinGW
Guard against lack of struct timespec definition.

	PR 28156
	* rename.c (get_stat_atime, get_stat_mtime): Don't compile
	unless HAVE_UTIMENSAT is defined.

(cherry picked from commit 47fcfcbadc)
2021-08-04 23:30:45 +09:30
GDB Administrator
038f80914f Automatic date update in version.in 2021-08-04 00:00:58 +00:00
GDB Administrator
5a9e3421a8 Automatic date update in version.in 2021-08-03 00:01:02 +00:00
GDB Administrator
511be4d5ee Automatic date update in version.in 2021-08-02 00:00:59 +00:00
GDB Administrator
351c55564d Automatic date update in version.in 2021-08-01 00:00:55 +00:00
GDB Administrator
f448ce02de Automatic date update in version.in 2021-07-31 00:01:06 +00:00
GDB Administrator
0f71a70358 Automatic date update in version.in 2021-07-30 00:01:04 +00:00
H.J. Lu
1c611b40e6 bfd: Close the file descriptor if there is no archive fd
Close the file descriptor if there is no archive plugin file descriptor
to avoid running out of file descriptors on thin archives with many
archive members.

bfd/

	PR ld/28138
	* plugin.c (bfd_plugin_close_file_descriptor): Close the file
	descriptor there is no archive plugin file descriptor.

ld/

	PR ld/28138
	* testsuite/ld-plugin/lto.exp: Run tmpdir/pr28138 only for
	native build.

	PR ld/28138
	* testsuite/ld-plugin/lto.exp: Run ld/28138 tests.
	* testsuite/ld-plugin/pr28138.c: New file.
	* testsuite/ld-plugin/pr28138-1.c: Likewise.
	* testsuite/ld-plugin/pr28138-2.c: Likewise.
	* testsuite/ld-plugin/pr28138-3.c: Likewise.
	* testsuite/ld-plugin/pr28138-4.c: Likewise.
	* testsuite/ld-plugin/pr28138-5.c: Likewise.
	* testsuite/ld-plugin/pr28138-6.c: Likewise.
	* testsuite/ld-plugin/pr28138-7.c: Likewise.

(cherry picked from commit 5a98fb7513)
(cherry picked from commit 7dc37e1e12)
2021-07-29 06:21:45 -07:00
Alan Modra
9d6d087078 Re: opcodes: constify & local meps macros
Commit f375d32b35 changed a generated file.  Edit the source instead.

	* mep.opc (macros): Make static and const.
	(lookup_macro): Return and use const pointer.
	(expand_macro): Make mac param const.
	(expand_string): Make pmacro const.

(cherry picked from commit 4dcdbbd1bc)
2021-07-29 14:38:44 +09:30
Sergei Trofimovich
2dad02b6d4 texi2pod.pl: add no-op --no-split option support [PR28144]
Change 2faf902da ("generate single html manual page by default")
added use of --no-split option to makeinfo. binutils reuses
makeinfo options for texi2pod.pl wrapper. Unsupported option
led to silent manpage truncation.

The change adds no-op option support.

etc/
	PR 28144
	* texi2pod.pl: Handle no-op --no-split option.

(cherry picked from commit 96a7037cd8)
2021-07-29 14:29:45 +09:30
GDB Administrator
d61e1cbd9e Automatic date update in version.in 2021-07-29 00:01:00 +00:00
GDB Administrator
37ecc81173 Automatic date update in version.in 2021-07-28 00:00:56 +00:00
GDB Administrator
5df4b3a5c2 Automatic date update in version.in 2021-07-27 00:01:04 +00:00
GDB Administrator
b316ba4e00 Automatic date update in version.in 2021-07-26 00:00:53 +00:00
GDB Administrator
e84dd6a27b Automatic date update in version.in 2021-07-25 00:00:59 +00:00
Alan Modra
9a98fad216 Revert: PowerPC: Don't generate unused section symbols
Blindly following x86 broke linux kernel builds.

bfd/
	* elf32-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define as true.
	* elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Likewise.
gas/
	* testsuite/gas/ppc/power4.d: Adjust for section sym change.
	* testsuite/gas/ppc/test1elf32.d: Likewise.
	* testsuite/gas/ppc/test1elf64.d: Likewise.
ld/
	* testsuite/ld-powerpc/tlsexe.r: Adjust for section sym change.
	* testsuite/ld-powerpc/tlsexe32.r: Likewise.
	* testsuite/ld-powerpc/tlsexe32no.r: Likewise.
	* testsuite/ld-powerpc/tlsexeno.r: Likewise.
	* testsuite/ld-powerpc/tlsexenors.r: Likewise.
	* testsuite/ld-powerpc/tlsexers.r: Likewise.
	* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
	* testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
	* testsuite/ld-powerpc/tlsget.d: Likewise.
	* testsuite/ld-powerpc/tlsget.wf: Likewise.
	* testsuite/ld-powerpc/tlsget2.d: Likewise.
	* testsuite/ld-powerpc/tlsget2.wf: Likewise.
	* testsuite/ld-powerpc/tlsso.r: Likewise.
	* testsuite/ld-powerpc/tlsso32.r: Likewise.
	* testsuite/ld-powerpc/tlstocso.r: Likewise.

(cherry picked from commit c09c8b4202)
2021-07-24 19:56:58 +09:30
Alan Modra
6afc66a777 Re: ld script expression parsing
Commit 40726f16a8 broke references to sections within ADDR(), and
overlays with weird section names.

	* ldgram.y (paren_script_name): New rule.
	(exp): Use it for ALIGNOF, SIZEOF, ADDR, and LOADADDR.  Similarly
	ensure script mode parsing for section name in SEGMENT_START.
	(overlay_section): Delete unnecessary ldlex_script call.  Backup
	on a lookahead NAME parsed in expression mode.
	* testsuite/ld-elf/overlay.s: Add more sections.
	* testsuite/ld-elf/overlay.t: Test '-' in section names.

(cherry picked from commit 553dd76c7e)
2021-07-24 19:56:58 +09:30
GDB Administrator
2349a27fb3 Automatic date update in version.in 2021-07-24 00:00:44 +00:00
GDB Administrator
ac20acd512 Automatic date update in version.in 2021-07-23 00:00:59 +00:00
GDB Administrator
f7d0012b0a Automatic date update in version.in 2021-07-22 00:00:56 +00:00
Nick Clifton
28bb1699b1 Updated Russian translation for the bfd library 2021-07-21 14:38:32 +01:00
GDB Administrator
87d4632d36 Automatic date update in version.in 2021-07-21 00:00:59 +00:00
Alan Modra
10b4dbbf28 PR28106, build of 2.37 fails on FreeBSD and Clang
https://en.cppreference.com/w/cpp/types/NULL says NULL might be
defined as nullptr.
https://en.cppreference.com/w/cpp/language/reinterpret_cast says
reinterpret_cast can't be used on nullptr.

	PR gold/28106
	PR gold/27815
	* gc.h (gc_process_relocs): Use static_cast in Section_id constructor.

(cherry picked from commit b97bd97623)
2021-07-20 21:34:32 +09:30
GDB Administrator
ad71de582e Automatic date update in version.in 2021-07-20 00:00:56 +00:00
Christopher Wellons
999566402e Change "uint" to "unsigned"
This fixes a defect introduced in 25162c795. The "uint" type has not
been explicitly defined here on mingw, causing compilation to fail.

On linux we have this in /usr/include/sys/types.h

/* Old compatibility names for C types.  */
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;

So it's easy to see how such bugs can creep in.

	* rust-demangle.c (struct rust_demangler): Change type of
	"recursion" to unsigned.
	(RUST_NO_RECURSION_LIMIT): Similarly in cast.
2021-07-19 21:02:21 +09:30
GDB Administrator
bebfdeb46d Automatic date update in version.in 2021-07-19 00:00:41 +00:00
Nick Clifton
e2688c418f Re-enable development on the 2.37 branch 2021-07-18 19:45:19 +01:00
Nick Clifton
116a737f43 This is the 2.37 release 2021-07-18 17:46:54 +01:00
GDB Administrator
6d27f932a5 Automatic date update in version.in 2021-07-18 00:00:58 +00:00
GDB Administrator
e0d372a0a6 Automatic date update in version.in 2021-07-17 00:00:47 +00:00
Nick Clifton
3f8d5ef6ef Updated Swedish translation for the binutils sub-directory 2021-07-16 13:56:37 +01:00
GDB Administrator
3a78eed154 Automatic date update in version.in 2021-07-16 00:00:40 +00:00
Nick Clifton
25162c795b Fix a stack exhaustion problem in the Rust demangling code in the libiberty library.
PR 99935
	* rust-demangle.c: Add recursion limit.
2021-07-15 16:51:56 +01:00
GDB Administrator
eb2839e6a5 Automatic date update in version.in 2021-07-15 00:00:43 +00:00
GDB Administrator
0a2fd6d1e2 Automatic date update in version.in 2021-07-14 00:00:40 +00:00
GDB Administrator
9a5919bb07 Automatic date update in version.in 2021-07-13 00:00:47 +00:00
Nick Clifton
8dfad6eb0d Updated French translation for the binutils sub-directory 2021-07-12 14:20:35 +01:00
GDB Administrator
fcd5a45673 Automatic date update in version.in 2021-07-12 00:00:37 +00:00
GDB Administrator
b9225a9ff4 Automatic date update in version.in 2021-07-11 00:00:40 +00:00
GDB Administrator
003cfab844 Automatic date update in version.in 2021-07-10 00:00:36 +00:00
GDB Administrator
23233f97a0 Automatic date update in version.in 2021-07-09 00:00:36 +00:00
H.J. Lu
cce64d8d01 x86-64: Disallow PC reloc against weak undefined symbols in PIE
Disallow PC relocations against weak undefined symbols in PIE since they
can lead to non-zero address at run-time.

bfd/

	PR ld/21782
	* elf64-x86-64.c (elf_x86_64_relocate_section): Disallow PC
	relocations against weak undefined symbols in PIE.

ld/

	PR ld/21782
	* testsuite/ld-x86-64/pie3.d: Expect linker error.

(cherry picked from commit 661b504df9)
2021-07-08 14:04:40 -07:00
Nick Clifton
26672a41ea Updated Portuguese translation for the BFD sub-directory 2021-07-08 12:38:46 +01:00
GDB Administrator
2798ba74c2 Automatic date update in version.in 2021-07-08 00:00:37 +00:00
Michael Matz
7764dd1f5f elf/riscv: Fix relaxation with aliases [PR28021]
the fix for PR22756 only changed behaviour for hidden aliases,
but the same situation exists for non-hidden aliases: sym_hashes[]
can contain multiple entries pointing to the same symbol structure
leading to relaxation adjustment to be applied twice.

Fix this by testing for duplicates for everything that looks like it
has a version.

PR ld/28021

bfd/
	* elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
	versioning.

ld/
	* testsuite/ld-riscv-elf/relax-twice.ver: New.
	* testsuite/ld-riscv-elf/relax-twice-1.s: New.
	* testsuite/ld-riscv-elf/relax-twice-2.s: New.
	* testsuite/ld-riscv-elf/ld-riscv-elf.exp
	(run_relax_twice_test): New, and call it.

(cherry picked from commit 235f5ef4a6)
2021-07-07 18:04:18 +02:00
H.J. Lu
f9b7710149 ld: Check archive only for archive member
Since plugin_maybe_claim calls bfd_close on the original input BFD if it
isn't an archive member, pass NULL to bfd_plugin_close_file_descriptor
to indicate that the BFD isn't an archive member.

bfd/

	PR ld/18028
	* plugin.c (bfd_plugin_close_file_descriptor): Check archive
	only of abfd != NULL.
	(try_claim): Pass NULL to bfd_plugin_close_file_descriptor if
	it isn't an archive member.

ld/

	PR ld/18028
	* plugin.c (plugin_input_file): Add comments for abfd and ibfd.
	(plugin_object_p): Set input->ibfd to NULL if it isn't an
	archive member.

(cherry picked from commit 7a30ac441a)
2021-07-07 07:47:17 -07:00