diff options
author | Fangrui Song <i@maskray.me> | 2021-06-24 21:35:48 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-06-24 21:35:48 -0700 |
commit | ca3bdb57fa1ac98b711a735de048c12b5fdd8086 (patch) | |
tree | 3850ccd61ed815b336bef704d780b7c97a14b075 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1aa02b37e7dcbf9fb35662fde8c65ac9a277f6b9 (diff) | |
download | llvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.zip llvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.tar.gz llvm-ca3bdb57fa1ac98b711a735de048c12b5fdd8086.tar.bz2 |
[MC][ELF] Change SHT_LLVM_CALL_GRAPH_PROFILE relocations from SHT_RELA to SHT_REL
... even on targets preferring RELA. The section is only consumed by ld.lld
which can handle REL.
Follow-up to D104080 as I explained in the review. There are two advantages:
* The D104080 code only handles RELA, so arm/i386/mips32 etc may warn for -fprofile-use=/-fprofile-sample-use= usage.
* Decrease object file size for RELA targets
While here, change the relocation to relocate weights, instead of 0,1,2,3,..
I failed to catch the issue during review.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions