yonghong-song added a comment. But it does not work for inner structs any more. -bash-4.4$ cat t.c #define __reloc__ __attribute__((preserve_access_index)) struct __reloc__ p; struct p {
int a; struct { int b; }; }; int test(struct p *arg) { return arg->b; } -bash-4.4$ In only generates reloc for struct p's immediate members, but not inner structures. The forward declaration gives empty record with attribute set, but this set does not extend to inner record. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69759/new/ https://reviews.llvm.org/D69759 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits