[llvm] [ObjectYAML][ELF] Allow verdaux entry offset to be user-defined (PR #115343)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 09:18:15 PST 2024
antoniofrighetto wrote:
I'm don't think adding support in yaml2elf should be desirable too. To achieve that we would need to add VDAux too in `struct VerDef` in Object/ELF.h, and this looks quite of an invasive change, since it would be used here:
https://github.com/llvm/llvm-project/blob/076aac59acbe7555b922e77886e4428f1aa1cd0b/llvm/tools/llvm-readobj/ELFDumper.cpp#L7619-L7622
In general, as the original report mentions, this is a crash-on-invalid, I don't think the user should be able to modify the vd_aux themselves (unless manually modifying the binary), but it's fine to have it elsewhere for testing purpose for https://github.com/llvm/llvm-project/pull/115284.
https://github.com/llvm/llvm-project/pull/115343
More information about the llvm-commits
mailing list