[PATCH] D119149: [test][llvm-objcopy/mac] Move test to new file
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 14:44:17 PST 2022
keith updated this revision to Diff 406619.
keith added a comment.
Fix local state false positive
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119149/new/
https://reviews.llvm.org/D119149
Files:
llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml
llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
Index: llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
===================================================================
--- llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
+++ llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
@@ -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:
Index: llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml
===================================================================
--- /dev/null
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119149.406619.patch
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220207/700f1d5e/attachment.bin>
More information about the llvm-commits
mailing list