[llvm] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 01:52:53 PDT 2023
================
@@ -0,0 +1,34 @@
+# RUN: yaml2obj %s >%t
+
+# Test gap fill with all allocatable output sections
+# RUN: llvm-objcopy -O binary --gap-fill=0xe9 %t %t-filled
+# RUN: od -v -Ax -t x1 %t-filled | FileCheck --match-full-lines %s
+# CHECK: 000000 aa bb cc dd e9 e9 e9 e9 11 22 33 44
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS32
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_HEXAGON
----------------
jh7370 wrote:
Hexagon is an unusual Machine type. Is it possible to omit the machine type completely in this case? If not, can it be x86_64?
https://github.com/llvm/llvm-project/pull/65815
More information about the llvm-commits
mailing list