[all-commits] [llvm/llvm-project] 050b4f: [MC][X86] Set SHF_X86_64_LARGE on mergeable consta...

Farid Zakaria via All-commits all-commits at lists.llvm.org
Thu Jun 11 09:22:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 050b4fc438c0b3b96e4285020eff75cf0ed11a6a
      https://github.com/llvm/llvm-project/commit/050b4fc438c0b3b96e4285020eff75cf0ed11a6a
  Author: Farid Zakaria <fmzakari at fb.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    A llvm/test/CodeGen/X86/code-model-elf-constpool-large.ll

  Log Message:
  -----------
  [MC][X86] Set SHF_X86_64_LARGE on mergeable constant sections for large code-model (#190903)

Under -mcmodel=large on x86-64, constant pool entries were placed into
`.rodata.cst{4,8,16,32}` without the `SHF_X86_64_LARGE` flag. Meanwhile,
named global constants correctly received .lrodata with the large flag
via getSectionPrefixForGlobal().

Fix initELFMCObjectFileInfo() to use .lrodata.cst* section names with
SHF_X86_64_LARGE when the Large parameter is true and the target is
x86-64.



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