forked from OSchip/llvm-project
[PR] Skip NONE static relocations
Summary: To supress warning of unsupported relocations Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei (cherry picked from FBD31738420)
This commit is contained in:
parent
dcdd37fdc2
commit
dc4b32e1b1
|
@ -2308,6 +2308,8 @@ void RewriteInstance::readRelocations(const SectionRef &Section) {
|
|||
SmallString<16> TypeName;
|
||||
Rel.getTypeName(TypeName);
|
||||
uint64_t RType = Rel.getType();
|
||||
if (Relocation::isNone(RType))
|
||||
continue;
|
||||
|
||||
// Adjust the relocation type as the linker might have skewed it.
|
||||
if (BC->isX86() && (RType & ELF::R_X86_64_converted_reloc_bit)) {
|
||||
|
|
Loading…
Reference in New Issue