[all-commits] [llvm/llvm-project] 853a26: [AsmPrinter] __patchable_function_entries: Set SHF...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Feb 5 19:53:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 853a2649160c1c80b9bbd38a20b53ca8fab704e8
      https://github.com/llvm/llvm-project/commit/853a2649160c1c80b9bbd38a20b53ca8fab704e8
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/test/CodeGen/AArch64/patchable-function-entry.ll

  Log Message:
  -----------
  [AsmPrinter] __patchable_function_entries: Set SHF_LINK_ORDER for binutils 2.36 and above

This matches GCC behavior when the configure-time binutils is new. GNU ld<2.36
did not support mixed SHF_LINK_ORDER and non-SHF_LINK_ORDER sections in an
output section, so we conservatively disable SHF_LINK_ORDER for <2.36.




More information about the All-commits mailing list