[all-commits] [llvm/llvm-project] 46085d: [lld/ELF][x86-64] Place large executable sections ...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Thu Jun 12 11:41:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46085d8f83623f6ea2921459de9f731d7df762d4
      https://github.com/llvm/llvm-project/commit/46085d8f83623f6ea2921459de9f731d7df762d4
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2025-06-12 (Thu, 12 Jun 2025)

  Changed paths:
    M lld/ELF/Writer.cpp
    M lld/test/ELF/x86-64-section-layout.s

  Log Message:
  -----------
  [lld/ELF][x86-64] Place large executable sections at the edges of binary (#70358)

So that when mixing small and large text, large text stays out of the
way of the rest of the binary.

Place large RX sections at the beginning rather than at the end so that
with `--no-rosegment`, the large text and rodata share a single PT_LOAD
segment. Place large RWX sections at the end to keep writable and
readonly sections separate.

Clang started emitting the large section flag for `.ltext` sections in
#73037.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list