[all-commits] [llvm/llvm-project] e27c37: [X86] Change how we treat functions with explicit ...

Arthur Eubanks via All-commits all-commits at lists.llvm.org
Mon Apr 8 15:40:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e27c3736f975ca463476223c465e4777186f603f
      https://github.com/llvm/llvm-project/commit/e27c3736f975ca463476223c465e4777186f603f
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2024-04-08 (Mon, 08 Apr 2024)

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

  Log Message:
  -----------
  [X86] Change how we treat functions with explicit sections as small/large (#87838)

Following #78348, we should treat functions with an explicit section as
small, unless the section name is (or has the prefix) ".ltext".

Clang emits global initializers into a ".text.startup" section on Linux.
If we mix small/medium code model object files with large code model
object files, we'll end up mixing sections with and without the large
section flag.



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