[lld] [LLD][COFF] Add basic ARM64X dynamic relocations support (PR #118035)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 08:04:23 PST 2024


================
@@ -1596,8 +1599,13 @@ void Writer::assignAddresses() {
 
   for (OutputSection *sec : ctx.outputSections) {
     llvm::TimeTraceScope timeScope("Section: ", sec->name);
-    if (sec == relocSec)
+    if (sec == relocSec) {
       addBaserels();
+      if (ctx.dynamicRelocs) {
+        ctx.dynamicRelocs->finalize();
+        relocSec->addChunk(ctx.dynamicRelocs);
----------------
cjacek wrote:

Agreed, that would be cleaner and more correct with respect to `ctx.config.relocatable`. I’ll move it.

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


More information about the llvm-commits mailing list