forked from OSchip/llvm-project
parent
6863972b48
commit
a6ff617967
|
|
@ -268,7 +268,6 @@ struct EhSectionPiece : public SectionPiece {
|
|||
FirstRelocation(FirstRelocation) {}
|
||||
InputSectionBase *ID;
|
||||
uint32_t Size;
|
||||
uint32_t size() const { return Size; }
|
||||
|
||||
ArrayRef<uint8_t> data() { return {ID->Data.data() + this->InputOff, Size}; }
|
||||
unsigned FirstRelocation;
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ scanEhFrameSection(EhInputSection &EH, ArrayRef<RelTy> Rels,
|
|||
// This is a FDE. The relocations point to the described function or to
|
||||
// a LSDA. We only need to keep the LSDA alive, so ignore anything that
|
||||
// points to executable sections.
|
||||
typename ELFT::uint PieceEnd = Piece.InputOff + Piece.size();
|
||||
typename ELFT::uint PieceEnd = Piece.InputOff + Piece.Size;
|
||||
for (unsigned I2 = FirstRelI, N2 = Rels.size(); I2 < N2; ++I2) {
|
||||
const RelTy &Rel = Rels[I2];
|
||||
if (Rel.r_offset >= PieceEnd)
|
||||
|
|
|
|||
|
|
@ -765,7 +765,7 @@ public:
|
|||
if (P.empty())
|
||||
return Off;
|
||||
|
||||
while (I != Size && P[I].InputOff + P[I].size() <= Off)
|
||||
while (I != Size && P[I].InputOff + P[I].Size <= Off)
|
||||
++I;
|
||||
if (I == Size)
|
||||
return Off;
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ void EhFrameSection<ELFT>::addSectionAux(EhInputSection *Sec,
|
|||
DenseMap<size_t, CieRecord *> OffsetToCie;
|
||||
for (EhSectionPiece &Piece : Sec->Pieces) {
|
||||
// The empty record is the end marker.
|
||||
if (Piece.size() == 4)
|
||||
if (Piece.Size == 4)
|
||||
return;
|
||||
|
||||
size_t Offset = Piece.InputOff;
|
||||
|
|
@ -534,11 +534,11 @@ template <class ELFT> void EhFrameSection<ELFT>::finalizeContents() {
|
|||
size_t Off = 0;
|
||||
for (CieRecord *Cie : Cies) {
|
||||
Cie->Piece->OutputOff = Off;
|
||||
Off += alignTo(Cie->Piece->size(), Config->Wordsize);
|
||||
Off += alignTo(Cie->Piece->Size, Config->Wordsize);
|
||||
|
||||
for (EhSectionPiece *Fde : Cie->FdePieces) {
|
||||
Fde->OutputOff = Off;
|
||||
Off += alignTo(Fde->size(), Config->Wordsize);
|
||||
Off += alignTo(Fde->Size, Config->Wordsize);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue