From b31925ae2f2cc433b9cbc3a14ed86124f0a076aa Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 21 Jan 2025 14:28:13 -0300 Subject: [PATCH] Define page and base sizes for SBF --- lld/ELF/Arch/SBF.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lld/ELF/Arch/SBF.cpp b/lld/ELF/Arch/SBF.cpp index e954736a97ed5d3..0a31bc1a725bc3f 100644 --- a/lld/ELF/Arch/SBF.cpp +++ b/lld/ELF/Arch/SBF.cpp @@ -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, @@ -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 {