[PATCH] D155535: [WebAssembly][Objcopy] Write output section headers identically to inputs
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 01:08:26 PDT 2023
jhenderson added inline comments.
================
Comment at: llvm/test/tools/llvm-objcopy/wasm/section-header-size.test:3
+## the input binary, including the encoded size of the LEB that represents the
+## section size. sec-header-3bytelebs.wasm has LEB encodings padded to 3 bytes, which
+## is unlikely to happen accidentally (since the smallest size is 1 byte,
----------------
Rather than adding a canned binary, it seems to me like it would be fairly straightforward to add some additional functionality to yaml2obj to customise the LEB size? Probably an additional, optional field called "HeaderSizeLength" or something to that effect as a section member?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155535/new/
https://reviews.llvm.org/D155535
More information about the llvm-commits
mailing list