@@ -2274,8 +2274,7 @@ uint32_t getRelocationSymbol(const ELFObjectFileBase *Obj,
2274
2274
bool RewriteInstance::analyzeRelocation (
2275
2275
const RelocationRef &Rel, uint32_t &RType, std::string &SymbolName,
2276
2276
bool &IsSectionRelocation, uint64_t &SymbolAddress, int64_t &Addend,
2277
- uint64_t &ExtractedValue, bool &Skip) const {
2278
- Skip = false ;
2277
+ uint64_t &ExtractedValue) const {
2279
2278
if (!Relocation::isSupported (RType))
2280
2279
return false ;
2281
2280
@@ -2707,9 +2706,8 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
2707
2706
int64_t Addend;
2708
2707
uint64_t ExtractedValue;
2709
2708
bool IsSectionRelocation;
2710
- bool Skip;
2711
2709
if (!analyzeRelocation (Rel, RType, SymbolName, IsSectionRelocation,
2712
- SymbolAddress, Addend, ExtractedValue, Skip )) {
2710
+ SymbolAddress, Addend, ExtractedValue)) {
2713
2711
LLVM_DEBUG ({
2714
2712
dbgs () << " BOLT-WARNING: failed to analyze relocation @ offset = "
2715
2713
<< formatv (" {0:x}; type name = {1}\n " , Rel.getOffset (), TypeName);
@@ -2718,14 +2716,6 @@ void RewriteInstance::handleRelocation(const SectionRef &RelocatedSection,
2718
2716
return ;
2719
2717
}
2720
2718
2721
- if (Skip) {
2722
- LLVM_DEBUG ({
2723
- dbgs () << " BOLT-DEBUG: skipping relocation @ offset = "
2724
- << formatv (" {0:x}; type name = {1}\n " , Rel.getOffset (), TypeName);
2725
- });
2726
- return ;
2727
- }
2728
-
2729
2719
if (!IsFromCode && !IsWritable && (IsX86 || IsAArch64) &&
2730
2720
Relocation::isPCRelative (RType)) {
2731
2721
BinaryData *BD = BC->getBinaryDataContainingAddress (Rel.getOffset ());
0 commit comments