]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/NEWS
ld: Change -z one-rosegment to --rosegment in comments
[thirdparty/binutils-gdb.git] / ld / NEWS
diff --git a/ld/NEWS b/ld/NEWS
index 24df91aa85f20c10f43e11298bb18e10492aedcf..bad8c3e334d604b93f703bf37be1e4f43347b756 100644 (file)
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,5 +1,85 @@
 -*- text -*-
 
+Changes in 2.43:
+
+* Add support for LoongArch DT_RELR (compressed R_LARCH_RELATIVE).
+
+* Put .got .got.plt in the relro to make it read-only after relocation.
+
+* Add -z isa-level-report=[none|all|needed|used] to the x86 ELF linker
+  to report needed and used x86-64 ISA levels.
+
+* Add --rosegment option which changes the -z separate-code option so that
+  only one read-only segment is created (instead of two).  (The option name
+  is misleading, but it matches the name used by LLD and GOLD).
+
+* Add --section-ordering-file <FILE> option to add extra mapping of input
+  sections to output sections.
+
+* Add -plugin-save-temps to store plugin intermediate files permanently.
+
+Changes in 2.42:
+
+* Add -z mark-plt/-z nomark-plt options to x86-64 ELF linker to mark PLT
+  entries with DT_X86_64_PLT, DT_X86_64_PLTSZ and DT_X86_64_PLTENT dynamic
+  tags.  Also added --enable-mark-plt configure option to mark PLT entries
+  by default.
+
+* Support Intel APX relocations.
+
+* On RISC-V, add ld target option --[no-]check-uleb128.  Should rebuild the
+  objects by binutils 2.42 and up if enabling the option and get warnings,
+  since the non-zero addend of SUB_ULEB128 shouldn't be generated from .uleb128
+  directives.
+
+* Add support for the KVX instruction set.
+
+* A new linker script sorting directive has been added: REVERSE.  This reverses
+  the order of the sorting.  It may be combined with either SORT_BY_NAME or
+  SORT_BY_INIT_PRIORITY.
+
+* Added --warn-execstack-objects to warn about executable stacks only when an
+  input object file requests one.  Also added --error-execstack and
+  --error-rxw-segments options to convert warnings about executable stacks and
+  segments into errors.
+
+  Also added --enable-error-execstack=[yes|no] and
+  --enable-error-rwx-segments=[yes|no] configure options to set the default for
+  converting warnings into errors.
+
+* On LoongArch, various linker relaxation bugs are fixed; the most notable
+  of which is BZ 30944 (incorrect .balign semantics).
+
+* On LoongArch, the LoongArch ABI v2.30 (LoongArch ELF psABI v20231219) is
+  now implemented. This includes new relocation types, and changed
+  semantics for PC-relative relocations handling the higher half of 64-bit
+  offsets.
+
+* On LoongArch, link-time TLS optimization and TLS relaxation are now
+  supported.
+
+Changes in 2.41:
+
+* The linker now accepts a command line option of --remap-inputs
+  <PATTERN>=<FILE> to relace any input file that matches <PATTERN> with
+  <FILE>.  In addition the option --remap-inputs-file=<FILE> can be used to
+  specify a file containing any number of these remapping directives.
+
+* The linker command line option --print-map-locals can be used to include
+  local symbols in a linker map.  (ELF targets only).
+
+* For most ELF based targets, if the --enable-linker-version option is used
+  then the version of the linker will be inserted as a string into the .comment
+  section.
+
+* The linker script syntax has a new command for output sections: ASCIZ "string"
+  This will insert a zero-terminated string at the current location.
+
+* Add command-line option, -z nosectionheader, to omit ELF section
+  header.
+
+Changes in 2.40:
+
 * The linker has a new command line option to suppress the generation of any
   warning or error messages.  This can be useful when there is a need to create
   a known non-working binary.  The option is -w or --no-warnings.
@@ -11,6 +91,8 @@
   that selects the default compression algorithm
   for --enable-compressed-debug-sections.
 
+* Remove support for -z bndplt (MPX prefix instructions).
+
 Changes in 2.39:
 
 * The ELF linker will now generate a warning message if the stack is made
@@ -942,7 +1024,7 @@ Changes in version 2.1:
   other utilities should work on Risc/Ultrix and Irix.
 
 \f
-Copyright (C) 2012-2022 Free Software Foundation, Inc.
+Copyright (C) 2012-2024 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright