aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add markers for 2.43 branch/releaseNick Clifton2024-07-201-0/+4
|
* Change version to 2.42.50 and regenerate filesNick Clifton2024-01-151-0/+4
|
* Add markers for 2.42 branchNick Clifton2024-01-151-0/+4
|
* Update year range in copyright notice of binutils filesAlan Modra2024-01-041-1/+1
| | | | | | | | | | | | | Adds two new external authors to etc/update-copyright.py to cover bfd/ax_tls.m4, and adds gprofng to dirs handled automatically, then updates copyright messages as follows: 1) Update cgen/utils.scm emitted copyrights. 2) Run "etc/update-copyright.py --this-year" with an extra external author I haven't committed, 'Kalray SA.', to cover gas testsuite files (which should have their copyright message removed). 3) Build with --enable-maintainer-mode --enable-cgen-maint=yes. 4) Check out */po/*.pot which we don't update frequently.
* Gold/MIPS: Add targ_extra_size=64 for mips32 triplesYunQiang Su2023-11-171-2/+6
|
* Finalized intl-update patchesArsen Arsenovi?2023-11-151-0/+7
| | | | | | | | | | * intl: Remove directory. Replaced with out-of-tree GNU gettext. * .gitignore: Add '/gettext*'. * configure.ac (host_libs): Replace intl with gettext. (hbaseargs, bbaseargs, baseargs): Split baseargs into {h,b}baseargs. (skip_barg): New flag. Skips appending current flag to bbaseargs. <library exemptions>: Exempt --with-libintl-{type,prefix} from target and build machine argument passing. * configure: Regenerate. * Makefile.def (host_modules): Replace intl module with gettext module. (configure-ld): Depend on configure-gettext. * Makefile.in: Regenerate. * src-release.sh: Remove references to the intl/ directory.
* Gold/MIPS: Use EM_MIPS instead of EM_MIPS_RS3_LE for little endianYunQiang Su2023-11-101-0/+5
|
* gold: Use char16_t, char32_t instead of uint16_t, uint32_t as character typesRoland McGrath2023-09-061-0/+14
| | | | | | | | | | | | | | | | The std::basic_string template type is only specified for instantiations using character types. Newer (LLVM) libc++ implementations no longer allow non-character integer types to be used. gold/ * output.cc: Include <uchar.h>. (Output_section::add_merge_input_section): Use char16_t and char32_t for 2- and 4-byte entry size, respectively. * stringpool.cc: Include <uchar.h>. (Stringpool_template): Explicitly instantiate for char16_t, char32_t instead of uint16_t, uint32_t. * merge.cc (Output_merge_string): Likewise.
* Revert "2.41 Release sources"Sam James2023-08-021-2/+1
| | | | | | This reverts commit 675b9d612cc59446e84e2c6d89b45500cb603a8d. See https://sourceware.org/pipermail/binutils/2023-August/128761.html.
* 2.41 Release sourcesbinutils-2_41-releaseNick Clifton2023-08-021-1/+2
|
* Change version number to 2.41.50 and regenerate filesNick Clifton2023-07-031-0/+4
|
* Add markers for the 2.41 branchNick Clifton2023-07-031-0/+4
|
* Updated French translation for the gold sub-directoryNick Clifton2023-06-281-0/+4
|
* Add an option to the gold linker to put its version string into the .comment ↵Nick Clifton2023-03-271-0/+7
| | | | | | | | section. PR 30187 * options.h (class General_options): Add enable-linker-version. * layout.cc (Layout::create_gold_note): If linker-version is enabled put the version string into the .comment section.
* Updated translations for various languages and sub-directoriesNick Clifton2023-01-031-0/+5
|
* Update year range in copyright notice of binutils filesAlan Modra2023-01-011-1/+1
| | | | | | The newer update-copyright.py fixes file encoding too, removing cr/lf on binutils/bfdtest2.c and ld/testsuite/ld-cygwin/exe-export.exp, and embedded cr in binutils/testsuite/binutils-all/ar.exp string match.
* Add markers for 2.40 branchNick Clifton2022-12-311-0/+4
|
* New Romainian translation for the GOLD subdirectory.Nick Clifton2022-12-191-0/+4
|
* Add markers for 2.39 branchNick Clifton2022-07-081-0/+4
|
* Have gold's File_read::do_read() function check the start parameterNick Clifton2022-06-271-0/+6
| | | | | | PR 23765 * fileread.cc (File_read::do_read): Check start parameter before computing number of bytes to read.
* Fix compile time warning building gold with Clang-14.Nick Clifton2022-05-181-0/+5
| | | | | * int_encoding.cc (get_length_as_unsigned_LEB_128): Remove current_length variable.
* Updated Serbian translations for the bfd, gold, ld and opcodes directoriesNick Clifton2022-02-171-0/+4
|
* Updated French translation for the ld/ and gold/ sub-directoriesNick Clifton2022-02-021-0/+4
|
* Update Bulgarian, French, Romaniam and Ukranian translation for some of the ↵Nick Clifton2022-01-241-0/+4
| | | | sub-directories
* Change version number to 2.38.50 and regenerate filesNick Clifton2022-01-221-0/+7
|
* Add markers for 2.38 branchNick Clifton2022-01-221-0/+4
|
* Update year range in copyright notice of binutils filesAlan Modra2022-01-021-1/+1
| | | | | | | | | | The result of running etc/update-copyright.py --this-year, fixing all the files whose mode is changed by the script, plus a build with --enable-maintainer-mode --enable-cgen-maint=yes, then checking out */po/*.pot which we don't update frequently. The copy of cgen was with commit d1dd5fcc38ead reverted as that commit breaks building of bfp opcodes files.
* Updated Serbian and Russian translations for various sub-directoriesNick Clifton2021-08-101-0/+4
|
* PR28106, build of 2.37 fails on FreeBSD and ClangAlan Modra2021-07-201-0/+6
| | | | | | | | | | | 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.
* PR28098 Skip R_*_NONE relocation entries with zero r_sym without countingMichael Krasnyk2021-07-181-0/+6
| | | | | | PR gold/28098 * reloc.cc (Track_relocs::advance): Skip R_*_NONE relocation entries with r_sym of zero without counting in advance method.
* Update version number and regenerate filesNick Clifton2021-07-031-0/+4
|
* Add markers for 2.37 branchNick Clifton2021-07-031-0/+4
|
* [GOLD] PR27815, gold fails to build with latest GCCAlan Modra2021-05-251-0/+5
| | | | | | | | | | | Don't use nullptr, it requires -std=c++11 on versions of gcc prior to 6.1. It would be possible to arrange to pass -std=c++11 automatically when required (top level configure does that for gcc builds) but that seems overkill and since we're not up-to-date on the top level config files would mean someone would need to sync those over. PR gold/27815 * gc.h (gc_process_relocs): Use cast in Section_id constructor.
* [GOLD] PR27815, gold fails to build with latest GCCAlan Modra2021-05-221-0/+5
| | | | | | | | | ...gold/gc.h:250:37: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [-Werror] 250 | (*secvec).push_back(Section_id(NULL, 0)); | ^~~~~~~~~~~~~~~~~~~ PR gold/27815 * gc.h (gc_process_relocs): Use nullptr in Section_id constructor.
* [GOLD]: Re: Add -Bno-symbolicAlan Modra2021-05-151-0/+5
| | | | | PR 27834 * options.cc (General_options::General_options): Init bsymbolic_.
* gold: Add -Bno-symbolicFangrui Song2021-05-141-0/+9
| | | | | | | | | | gold/ PR 27834 * options.h (General_options): Make -Bsymbolic and -Bsymbolic-functions special and adjust the help messages. Add enum Bsymbolic_kind and -Bno-symbolic. * options.cc (General_options): Define parse_Bno_symbolic, parse_Bsymbolic_functions, and parse_Bsymbolic.
* PR27625, powerpc64 gold __tls_get_addr callsAlan Modra2021-03-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch supports linking powerpc64 glibc with gold, specifically the __tls_get_addr call in elf/dl-sym.c. That call lacks marker relocations tying it to the arg setup instructions, but the arg setup insns are also contructed lacking the usual relocations on a Global Dynamic TLS code sequence. So there is no chance that anything in that sequence might be wrongly edited by the linker. In fact, the aim of linking glibc could have been supported by simply omitting the error whenever TLS optimisation is disabled, as it is when linking a shared library. The patch goes further than that, disabling TLS GD and LD sequence optimisation on a per-object basis for object files lacking marker relocs. PR gold/27625 * powerpc.cc (Powerpc_relobj): Add no_tls_marker_, tls_marker_, and tls_opt_error_ variables and accessors. (Target_powerpc::Scan::local, global): Call set_tls_marker and set_no_tls_marker for GD and LD code sequence relocations. (Target_powerpc::Relocate::relocate): Downgrade the "lacks marker reloc" error to a warning when safe to do so, and omit the error entirely if not optimising TLS sequences. Do not optimise GD and LD sequences for objects lacking marker relocs. (Target_powerpc::relocate_relocs): Heed no_tls_marker here too.
* Use stdout when printing object file names for -t option.Cary Coutant2021-03-191-0/+10
| | | | | | | | | | | gold/ PR gold/27615 * errors.cc (Errors::trace): New method. (gold_trace): New function. * errors.h (Errors::trace): New method. * gold.h (gold_trace): New function. * object.cc (Input_objects::add_object): Use gold_trace to print object file names.
* Fix failing test for PR 23870.Cary Coutant2021-03-191-0/+7
| | | | | | | | gold/ PR gold/pr23870 * testsuite/aarch64_pr23870_bar.c: Return a magic value. * testsuite/aarch64_pr23870_foo.c: Check the magic value and return success or failure.
* Fix call to system fallocate to handle errno correctly.Holger Berger2021-03-191-0/+5
| | | | | | | | 2021-03-19 Holger Berger <holger.berger@googlemail.com> gold/ PR gold/26541 * output.cc (gold_fallocate): Use errno when calling system fallocate.
* Fix typo in previous patch: should use struct mallinfo2.Cary Coutant2021-03-191-1/+7
| | | | | PR gold/26585 * main.cc (main): Fix typo in previous patch.
* Fix gold to use mallinfo2 if available instead of deprecated mallinfo.Duncan Simpson2021-03-191-0/+7
| | | | | | | | gold/ PR gold/26585 * configure.ac: Add check for mallinfo2. * configure: Regenerate. * main.cc (main): Use mallinfo2 if available.
* Add DWARF 5 support in gold.Cary Coutant2021-03-191-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elfcpp/ PR gold/27246 * dwarf.h (enum DW_LNCT): Add line number table content type codes. (enum DW_LINE_OPS): Reformat. (enum DW_LINE_EXTENDED_OPS): Reformat. (enum DW_CHILDREN): Reformat. (enum DW_RLE): Add range list entry types. (enum DW_SECT): Update values for DWARF 5. gold/ PR gold/27246 * dwarf_reader.cc (Dwarf_abbrev_table::do_get_abbrev): Handle DW_FORM_implicit_const. (Dwarf_ranges_table::read_ranges_table): Add version parameter; Adjust all callers. Look for .debug_rnglists section if DWARF 5. (Dwarf_ranges_table::read_range_list_v5): New method. (Dwarf_die::read_attributes): Handle new DWARF 5 DW_FORM codes. (Dwarf_die::skip_attributes): Likewise. (Dwarf_info_reader::do_parse): Support DWARF 5 unit header format. (Dwarf_info_reader::read_3bytes_from_pointer): New method. (Sized_dwarf_line_info::Sized_dwarf_line_info): Initialize str_buffer_, str_buffer_start, reloc_map_, line_number_map_. Look for .debug_line_str section. (Sized_dwarf_line_info::read_header_prolog): Support DWARF 5 prolog. (Sized_dwarf_line_info::read_header_tables): Rename to... (Sized_dwarf_line_info::read_header_tables_v2): ... this. (Sized_dwarf_line_info::read_header_tables_v5): New method. (Sized_dwarf_line_info::process_one_opcode): Insert missing "this->". Change advance_line to signed int64_t. (Sized_dwarf_line_info::read_lines): Add endptr parameter; adjust callers. Insert missing "this->". (Sized_dwarf_line_info::read_line_mappings): Support DWARF 5. (Sized_dwarf_line_info::do_addr2line): Add debug code. * dwarf_reader.h (Dwarf_abbrev_table::Attribute): Add implicit_const field. Adjust constructor. (Dwarf_abbrev_table::add_sttribute): Add implicit_const parameter. (Dwarf_ranges_table::read_ranges_table): Add version parameter. (Dwarf_ranges_table::read_range_list_v5): New method. (Dwarf_die): Remove unused attr_off field. (Dwarf_info_reader::Dwarf_info_reader): Initialize unit_type_ field. (Dwarf_info_reader::is_type_unit): New method. (Dwarf_info_reader::read_3bytes_from_pointer): New method. (Dwarf_info_reader::read_range_list): Call read_range_list_v5 for DWARF 5 range lists. (Dwarf_info_reader::is_type_unit_): Remove. (Dwarf_info_reader::unit_type_): New field. (Sized_dwarf_line_info::~Sized_dwarf_line_info): Delete str_buffer_start_. (Sized_dwarf_line_info::read_header_tables): Rename to... (Sized_dwarf_line_info::read_header_tables_v2): ... this. (Sized_dwarf_line_info::read_header_tables_v5): New method. (Sized_dwarf_line_info::read_lines): Add endptr parameter. (Sized_dwarf_line_info::Dwarf_line_infoHeader): Add address_size field. (Sized_dwarf_line_info::str_buffer_): New field. (Sized_dwarf_line_info::str_buffer_end_): New field. (Sized_dwarf_line_info::str_buffer_start_): New field. (Sized_dwarf_line_info::end_of_header_length_): New field. (Sized_dwarf_line_info::end_of_unit_): New field.
* gold: Skip address size and segment selector for DWARF5H.J. Lu2021-01-281-0/+6
| | | | | | | | | The .debug_line secton in DWARF5 has a byte for address size and a byte for segment selector after DWARF version. Skip them for DWARF5. PR gold/27246 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Skip address size and segment selector for DWARF5.
* [GOLD] powerpc assertion failureAlan Modra2021-01-191-0/+6
| | | | | | | | | | A testcase with only ifuncs can result in no plt section (ifunc plt entries might instead be in iplt), which means we can get to this code without a static link. PR 27203 * powerpc.cc (do_plt_fde_location): Remove doing_static_link assertion.
* gold: Remove the circular IFUNC dependency in ifuncmain6pieH.J. Lu2021-01-171-0/+6
| | | | | | | | | | | | | | On Fedora 33 x86-64 with glibc 2.32-3, ifuncmain6pie failed with: ./ifuncmain6pie: IFUNC symbol 'foo' referenced in './ifuncmod6.so' is defined in the executable and creates an unsatisfiable circular dependency. FAIL ifuncmain6pie (exit status: 127) Remove non-JUMP_SLOT relocations against foo in ifuncmod6.so, which trigger the circular IFUNC dependency. * testsuite/ifuncmain6pie.c: Remove non-JUMP_SLOT relocations against foo in ifuncmod6.so. * testsuite/ifuncmod6.c: Likewise.
* Updated translations for some subdirectoriesNick Clifton2021-01-141-0/+4
|
* Updated translations for multiple subdirectoriesNick Clifton2021-01-111-0/+5
|
* Add Changelog entries and NEWS entries for 2.36 branchNick Clifton2021-01-091-0/+4
|
* PR27140, ppc32 segmentation fault in make_stubAlan Modra2021-01-031-0/+7
| | | | | | | | | | | This fixes a thinko in commit fa40fbe4849. st_other global entry bits are relevant only for 64-bit ELFv2. PowerPC gold leaves local sym vector of st_other bits as NULL for 32-bit, hence the segfault. PR 27140 * powerpc.cc (Target_powerpc::Branch_info::make_stub): Only access object->st_other() when 64-bit. (Stub_table::add_long_branch_entry): Ignore "other" when 32-bit.