Skip to content

Commit

Permalink
Define page and base sizes for SBF
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Jan 21, 2025
1 parent 10a96aa commit b31925a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lld/ELF/Arch/SBF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class SBF final : public TargetInfo {
SBF::SBF() {
relativeRel = R_SBF_64_RELATIVE;
symbolicRel = R_SBF_64_64;
defaultCommonPageSize = 8;
defaultMaxPageSize = 8;
defaultImageBase = 0;
}

RelExpr SBF::getRelExpr(RelType type, const Symbol &s,
Expand Down Expand Up @@ -78,7 +81,6 @@ int64_t SBF::getImplicitAddend(const uint8_t *buf, RelType type) const {
default:
return 0;
}
return 0;
}

void SBF::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const {
Expand Down

0 comments on commit b31925a

Please sign in to comment.