[llvm] [llvm-objcopy][ELF] Disable huge section offset (PR #97036)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 01:03:40 PDT 2024


================
@@ -0,0 +1,27 @@
+# RUN: yaml2obj %s --docnum=1 -o %t
+# RUN: not llvm-objcopy -O binary %t %t2 --set-max-huge-section-offset=2000000000 2>&1 | FileCheck %s
+
+# CHECK: writing section .high_addr at huge file offset
+
+--- !ELF
+FileHeader:
+  Class:           ELFCLASS32
+  Data:            ELFDATA2LSB
+  Type:            ET_EXEC
+  Machine:         EM_MIPS
----------------
jh7370 wrote:

If the `Machine` type is required, please use a more common one like x86.

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


More information about the llvm-commits mailing list