Skip to content

Commit

Permalink
[PR] Skip NONE static relocations
Browse files Browse the repository at this point in the history
Summary:
To supress warning of unsupported relocations

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

(cherry picked from FBD31738420)
  • Loading branch information
yota9 authored and maksfb committed Oct 17, 2021
1 parent dcdd37f commit dc4b32e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bolt/src/RewriteInstance.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit dc4b32e

Please sign in to comment.