[PATCH] D89795: [jitlink][ELF] Add zero-fill blocks for symbols in section SHN_COMMON
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 22 12:28:46 PDT 2020
sgraenitz added a comment.
The ELF spec has an extra paragraph for special handling in dynamic linkers. I am not sure how much it's relevant here:
When the dynamic linker encounters a reference to a symbol that resolves to a definition of type STT_COMMON, it may (but is not required to) change its symbol resolution rules as follows: instead of binding the reference to the first symbol found with the given name, the dynamic linker searches for the first symbol with that name with type other than STT_COMMON. If no such symbol is found, it looks for the STT_COMMON definition of that name that has the largest size.
What do you think?
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