Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for tackling this.
compiler-rt/test/profile/Darwin/coverage-linkage.cpp | ||
---|---|---|
10 | The behavior of linker optimizations with LTO enabled may be a bit different. Could you check this case (test/profile/instrprof-darwin-dead-strip.c has an example)? |
Comment Actions
I don't have access to an x86_64 macOS.
If I remove REQUIRES: lto from test/profile/instrprof-darwin-dead-strip.c, it fails on aarch64 macOS before this patch.
But this patch doesn't change the section contents:
Contents of (__DATA,__llvm_prf_names) section 0000000100018030 6f660008 616d016f 69 6e Contents of (__DATA,__llvm_prf_cnts) section 0000000100014000 00000000 00000000
Comment Actions
x86 access shouldn't be necessary. Here's a patch for the otool formatting issue: https://reviews.llvm.org/D108929 (feel free to fold this in to your own change, if you'd like to).
The behavior of linker optimizations with LTO enabled may be a bit different. Could you check this case (test/profile/instrprof-darwin-dead-strip.c has an example)?