[llvm] [llvm-objcopy] Support SREC output format (PR #75874)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 00:36:39 PST 2024


================
@@ -111,36 +116,39 @@ FileHeader:
   Machine:         EM_X86_64
 Sections:
   - Name:            .text1
-# Part of section data is in 32-bit address range
-# and part isn't.
+## Part of section data is in 32-bit address range
+## and part isn't.
     Type:            SHT_PROGBITS
     Flags:           [ SHF_ALLOC]
     Address:         0xFFFFFFF8
     Content:         "000102030405060708"
   - Name:            .text2
-  # Entire secion is outside of 32-bit range.
+  ## Entire secion is outside of 32-bit range.
     Type:            SHT_PROGBITS
     Flags:           [ SHF_ALLOC ]
     Address:         0xFFFFFFFF0
     Content:         "0001020304"
 
-## Records should use segment physical addresses
-# RUN: yaml2obj %s --docnum=3 -o %t.seg
-# RUN: llvm-objcopy -O srec %t.seg - | FileCheck %s --check-prefix=PADDR
+## This tests an input file with segments and expects
+## physical addresses instead of virtual addresses.
 
----------------
jh7370 wrote:

Nit: as above, delete this blank line to tie the comment to the associated RUN lines.

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


More information about the llvm-commits mailing list