[lld] [LLD][ELF] Allow merging XO and RX sections, and add `--[no-]xosegment` flag (PR #132412)

Csanád Hajdú via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 23 01:31:13 PDT 2025


================
@@ -29,9 +29,13 @@ ELF Improvements
   GNU GCS Attribute Flags in Dynamic Objects when GCS is enabled. Inherits value
   from ``-zgcs-report`` (capped at ``warning`` level) unless user-defined,
   ensuring compatibility with GNU ld linker.
+* Added ``--xosegment`` and ``--no-xosegment`` flags to control whether to place
+  XO and RX sections in the same segment. The default value is ``--no-xosegment``.
 
 Breaking changes
 ----------------
+* XO and RX sections are now allowed to be placed in the same segment by default.
----------------
Il-Capitano wrote:

Good point, updated it.

https://github.com/llvm/llvm-project/pull/132412


More information about the llvm-commits mailing list