[llvm] [JITLink][AArch64] Add LD64_GOTPAGE_LO15 rel support (PR #100854)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 01:28:22 PDT 2024


================
@@ -758,6 +758,12 @@ class Section {
     return make_range(Symbols.begin(), Symbols.end());
   }
 
+  /// Returns address of the section
+  uint64_t getAddress() const {
+    assert(Symbols.size() && "Section has no symbols");
+    return (*Symbols.begin())->getAddress().getValue();
+  }
+
----------------
lhames wrote:

The symbols in a section aren't currently guaranteed to be sorted. You'll need to use the `SectionRange` utility instead.

https://github.com/llvm/llvm-project/pull/100854


More information about the llvm-commits mailing list