zequanwu marked an inline comment as done. zequanwu added a comment. For some unknown reasons, linker still generates __llvm_prf_names section in the final binary on mac even if the object file doesn't have this section. And I cannot use llvm-objdump to get anything from that section.
$ llvm-readelf -S ../tmp/a.out ... Section { Index: 15 Name: __llvm_prf_names (5F 5F 6C 6C 76 6D 5F 70 72 66 5F 6E 61 6D 65 73) Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00) Address: 0x100018000 Size: 0x0 Offset: 98304 Alignment: 0 RelocationOffset: 0x0 RelocationCount: 0 Type: Regular (0x0) Attributes [ (0x0) ] Reserved1: 0x0 Reserved2: 0x0 Reserved3: 0x0 } ... $ llvm-objdump --section=__llvm_prf_names --full-contents ../tmp/a.out ../tmp/a.out: file format mach-o arm64 I will delete the test for now as it's not working on mac: `compiler-rt/test/profile/Darwin/coverage-debug-info-correlate.cpp` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157913/new/ https://reviews.llvm.org/D157913 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits