@@ -1578,8 +1578,8 @@ void RelocationBaseSection::addSymbolReloc(RelType dynType,
1578
1578
uint64_t offsetInSec, Symbol &sym,
1579
1579
int64_t addend,
1580
1580
Optional<RelType> addendRelType) {
1581
- addReloc (DynamicReloc::AgainstSymbol, dynType, & isec, offsetInSec, sym,
1582
- addend, R_ADDEND, addendRelType ? *addendRelType : target->noneRel );
1581
+ addReloc (DynamicReloc::AgainstSymbol, dynType, isec, offsetInSec, sym, addend ,
1582
+ R_ADDEND, addendRelType ? *addendRelType : target->noneRel );
1583
1583
}
1584
1584
1585
1585
void RelocationBaseSection::addRelativeReloc (
@@ -1591,8 +1591,8 @@ void RelocationBaseSection::addRelativeReloc(
1591
1591
assert ((!sym.isPreemptible || expr == R_GOT) &&
1592
1592
" cannot add relative relocation against preemptible symbol" );
1593
1593
assert (expr != R_ADDEND && " expected non-addend relocation expression" );
1594
- addReloc (DynamicReloc::AddendOnlyWithTargetVA, dynType, & inputSec,
1595
- offsetInSec, sym, addend, expr, addendRelType);
1594
+ addReloc (DynamicReloc::AddendOnlyWithTargetVA, dynType, inputSec, offsetInSec ,
1595
+ sym, addend, expr, addendRelType);
1596
1596
}
1597
1597
1598
1598
void RelocationBaseSection::addAddendOnlyRelocIfNonPreemptible (
@@ -1603,21 +1603,21 @@ void RelocationBaseSection::addAddendOnlyRelocIfNonPreemptible(
1603
1603
addReloc ({dynType, &isec, offsetInSec, DynamicReloc::AgainstSymbol, sym, 0 ,
1604
1604
R_ABS});
1605
1605
else
1606
- addReloc (DynamicReloc::AddendOnlyWithTargetVA, dynType, & isec, offsetInSec,
1606
+ addReloc (DynamicReloc::AddendOnlyWithTargetVA, dynType, isec, offsetInSec,
1607
1607
sym, 0 , R_ABS, addendRelType);
1608
1608
}
1609
1609
1610
1610
void RelocationBaseSection::addReloc (DynamicReloc::Kind kind, RelType dynType,
1611
- InputSectionBase * inputSec,
1611
+ InputSectionBase & inputSec,
1612
1612
uint64_t offsetInSec, Symbol &sym,
1613
1613
int64_t addend, RelExpr expr,
1614
1614
RelType addendRelType) {
1615
1615
// Write the addends to the relocated address if required. We skip
1616
1616
// it if the written value would be zero.
1617
1617
if (config->writeAddends && (expr != R_ADDEND || addend != 0 ))
1618
- inputSec-> relocations .push_back (
1618
+ inputSec. relocations .push_back (
1619
1619
{expr, addendRelType, offsetInSec, addend, &sym});
1620
- addReloc ({dynType, inputSec, offsetInSec, kind, sym, addend, expr});
1620
+ addReloc ({dynType, & inputSec, offsetInSec, kind, sym, addend, expr});
1621
1621
}
1622
1622
1623
1623
void RelocationBaseSection::addReloc (const DynamicReloc &reloc) {
0 commit comments