[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:41 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
+Sections:
+ - Name: .text
+ Type: SHT_PROGBITS
+ Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
+ Address: 0x1000
+ Content: "00112233445566778899AABBCCDDEEFF"
----------------
jh7370 wrote:
Let's minimise this. I'm guessing the default address of 0 is sufficient for the test, SHF_EXECINSTR isn't needed at all, and the content could be a single byte.
https://github.com/llvm/llvm-project/pull/97036
More information about the llvm-commits
mailing list