1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/tools/llvm-readobj
Fangrui Song ba4b6a66c6 [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.
2021-06-24 21:35:48 -07:00
..
ARMEHABIPrinter.h
ARMWinEHPrinter.cpp
ARMWinEHPrinter.h
CMakeLists.txt
COFFDumper.cpp
COFFImportDumper.cpp
DwarfCFIEHPrinter.h
ELFDumper.cpp [MC][ELF] Change SHT_LLVM_CALL_GRAPH_PROFILE relocations from SHT_RELA to SHT_REL 2021-06-24 21:35:48 -07:00
llvm-readobj.cpp
llvm-readobj.h
MachODumper.cpp
ObjDumper.cpp
ObjDumper.h
StackMapPrinter.h
WasmDumper.cpp
Win64EHDumper.cpp
Win64EHDumper.h
WindowsResourceDumper.cpp
WindowsResourceDumper.h
XCOFFDumper.cpp