[PATCH] D145118: [ELF][RISCV] Make .sdata and .sbss closer

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 14:47:32 PST 2023


craig.topper added inline comments.


================
Comment at: lld/ELF/Writer.cpp:976
+  if (config->emachine == EM_RISCV) {
+    // .sdata and .sdata are placed closer to make GP relaxation more profitable
+    // and match GNU ld.
----------------
one of these .sdata should be .sbss?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145118/new/

https://reviews.llvm.org/D145118



More information about the llvm-commits mailing list