[all-commits] [llvm/llvm-project] 7b6b15: [profile][test] Improve coverage-linkage.cpp with ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 6 11:09:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b6b15e010664ec444f3c20a9b15ff4324c8971c
      https://github.com/llvm/llvm-project/commit/7b6b15e010664ec444f3c20a9b15ff4324c8971c
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-07-06 (Tue, 06 Jul 2021)

  Changed paths:
    M compiler-rt/test/profile/Linux/coverage-linkage.cpp

  Log Message:
  -----------
  [profile][test] Improve coverage-linkage.cpp with ld.lld --gc-sections

The __llvm_prf_names section uses SHF_GNU_RETAIN.  However, GNU ld before 2015-10
(https://sourceware.org/bugzilla/show_bug.cgi?id=19161) neither supports it nor
retains __llvm_prf_names according to __start___llvm_prf_names. So --gc-sections
does not work on such old GNU ld.

This is not a problem for gold and sufficiently new lld.




More information about the All-commits mailing list