[llvm] [AMDGPU] Add AMDGPU support for llvm-objcopy (PR #92066)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 01:40:54 PDT 2024


================
@@ -129,6 +134,7 @@ FileHeader:
   # Arbitrary values that do not match any value we convert to via --output-format.
   Machine:         EM_NONE
   OSABI:           ELFOSABI_STANDALONE
+  Flags:           [[FLAGS=<none>]]
----------------
jh7370 wrote:

Please take a look at "llvm/test/tools/obj2yaml/ELF/DWARF/debug-str.yaml" for an example of how to set the Flags field in an ELF YAML input based on a variable input string. For example `-DFLAGS="[ SHF_MERGE, SHF_STRINGS ]"` in the yaml2obj command-line sets those two flags.

https://github.com/llvm/llvm-project/pull/92066


More information about the llvm-commits mailing list