Skip to content

Commit

Permalink
[test][llvm-objcopy/mac] Move test to new file
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Feb 8, 2022
1 parent 3504937 commit c4ac46b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml
@@ -0,0 +1,19 @@
--- !mach-o
FileHeader:
magic: 0xFEEDFACE
cputype: 0x0000000C
cpusubtype: 0x00000009
filetype: 0x00000001
ncmds: 1
sizeofcmds: 16
flags: 0x00002000
LoadCommands:
- cmd: LC_LINKER_OPTION
cmdsize: 16
count: 1
PayloadBytes: [ 0x2D, 0x6C, 0x63, 0x0 ]
...

# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy %t %t.copy
# RUN: cmp %t %t.copy
1 change: 0 additions & 1 deletion llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
Expand Up @@ -43,7 +43,6 @@
# RUN: llvm-objcopy --strip-symbol _ba --redefine-sym _foo=_ba %t %t.noba
# RUN: llvm-readobj --symbols %t.noba | FileCheck %s --check-prefix=NOTSTRIPPED

.linker_option "-lc"
.globl _func
_func:

Expand Down

0 comments on commit c4ac46b

Please sign in to comment.