[PATCH] D126257: Round up zero-sized symbols to 1 byte in `.debug_aranges`.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 24 20:36:16 PDT 2022
dblaikie added a comment.
In D126257#3535908 <https://reviews.llvm.org/D126257#3535908>, @pcwalton wrote:
> Thanks!
>
> Wouldn't that mean that those zero-sized data symbols won't show up in the debugger anymore? That might be confusing for Rust users, who do use zero-sized globals reasonably commonly (to attach methods to).
Sorry, I'm not following you - I mean for zero-sized data symbols, we should emit a single byte anyway - so that the address of the symbol is unique/actually exists.
What situation are you considering where something would cause things not to show up in the debugger anymore?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126257/new/
https://reviews.llvm.org/D126257
More information about the llvm-commits
mailing list