[PATCH] D102036: BPF: fix FIELD_EXISTS relocation with array subscripts

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 23:05:00 PDT 2021


yonghong-song added a comment.

That is true that bar[1] is not an field. We also support field relocation like bar[1] since if sizeof(bar[1]) changed we can adjust offset properly. So there is
a precedence to support array like bar[1] for *field* relocations. So I think supporting "bar[1]" for existence relocation is not a bad thing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102036



More information about the llvm-commits mailing list