[PATCH] D89795: [jitlink][ELF] Allocate SHN_COMMON symbols as uninitialized blocks in __common

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 13:32:21 PDT 2020


sgraenitz added a comment.

Symbols created here end up as NULL entries in the SymbolTable. Well, I am passing `0` for the Address parameter here and I was hoping that `addCommonSymbol()` might figure out the actual address for me. Apparently that's not how it works. Not sure how to obtain the actual address though. Can I take the address of the `CommonSection` as a base and increment it with every new common symbol?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89795



More information about the llvm-commits mailing list