[all-commits] [llvm/llvm-project] 323451: [X86] Set SHF_X86_64_LARGE for globals with explic...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Tue Dec 5 08:26:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 323451ab88866c42c87971cbc670771bd0d48692
      https://github.com/llvm/llvm-project/commit/323451ab88866c42c87971cbc670771bd0d48692
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M llvm/lib/Target/TargetMachine.cpp
    M llvm/test/CodeGen/X86/code-model-elf-sections.ll

  Log Message:
  -----------
  [X86] Set SHF_X86_64_LARGE for globals with explicit well-known large section name (#74381)

Globals marked with the .lbss/.ldata/.lrodata should automatically be
treated as large.
Do this regardless of the code model for consistency when mixing object
files compiled with different code models.

Basically the other half of #70748.

Example in the wild:
https://codebrowser.dev/qt5/qtbase/src/testlib/qtestcase.cpp.html#1664




More information about the All-commits mailing list