1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/lib/Object
Alex Richardson 53f757e913 [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible
When compiling position-independent executables, we now use
DW_EH_PE_pcrel | DW_EH_PE_sdata4. However, the MIPS ABI does not define a
64-bit PC-relative ELF relocation so we cannot use sdata8 for the large
code model case. When using the large code model, we fall back to the
previous behaviour of generating absolute relocations.

With this change clang-generated .o files can be linked by LLD without
having to pass -Wl,-z,notext (which creates text relocations).
This is simpler than the approach used by ld.bfd, which rewrites the
.eh_frame section to convert absolute relocations into relative references.

I saw in D13104 that apparently ld.bfd did not accept pc-relative relocations
for MIPS ouput at some point. However, I also checked that recent ld.bfd
can process the clang-generated .o files so this no longer seems true.

Reviewed By: atanasyan
Differential Revision: https://reviews.llvm.org/D72228
2020-01-13 14:14:03 +00:00
..
Archive.cpp
ArchiveWriter.cpp [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00
Binary.cpp
CMakeLists.txt [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
COFFImportFile.cpp
COFFModuleDefinition.cpp
COFFObjectFile.cpp
Decompressor.cpp
ELF.cpp [llvm-readobj] - Remove an excessive helper for printing dynamic tags. 2019-12-24 11:55:45 +03:00
ELFObjectFile.cpp
Error.cpp
IRObjectFile.cpp
IRSymtab.cpp
LLVMBuild.txt
MachOObjectFile.cpp [macho] Allow CPUSubtype to contribute to architecture identification 2019-11-18 12:57:39 -08:00
MachOUniversal.cpp Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warnings. NFCI. 2019-10-18 09:59:31 +00:00
Minidump.cpp Object/minidump: Add support for the MemoryInfoList stream 2019-10-08 14:15:32 +00:00
ModuleSymbolTable.cpp [Mips] Use appropriate private label prefix based on Mips ABI 2019-10-23 12:24:35 +02:00
Object.cpp
ObjectFile.cpp Add operator<< for object::SectionedAddress 2019-11-19 10:34:30 +01:00
RecordStreamer.cpp
RecordStreamer.h
RelocationResolver.cpp [MIPS][ELF] Use PC-relative relocations in .eh_frame when possible 2020-01-13 14:14:03 +00:00
SymbolicFile.cpp
SymbolSize.cpp
TapiFile.cpp
TapiUniversal.cpp
WasmObjectFile.cpp [WebAssembly] Add new export_name clang attribute for controlling wasm export names 2019-12-11 11:54:57 -08:00
WindowsMachineFlag.cpp
WindowsResource.cpp
XCOFFObjectFile.cpp The patch is the compiler error specific on the compile error on CMVC 2019-11-19 15:17:56 -05:00