[llvm] c4ac46b - [test][llvm-objcopy/mac] Move test to new file
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 20:01:04 PST 2022
Author: Keith Smiley
Date: 2022-02-07T19:59:04-08:00
New Revision: c4ac46b95d7c821b127bed92a50f26aaeb494414
URL: https://github.com/llvm/llvm-project/commit/c4ac46b95d7c821b127bed92a50f26aaeb494414
DIFF: https://github.com/llvm/llvm-project/commit/c4ac46b95d7c821b127bed92a50f26aaeb494414.diff
LOG: [test][llvm-objcopy/mac] Move test to new file
Follow up from https://reviews.llvm.org/D118526
Differential Revision: https://reviews.llvm.org/D119149
Added:
llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml
Modified:
llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml b/llvm/test/tools/llvm-objcopy/MachO/load-commands.yaml
new file mode 100644
index 000000000000..c2d575440561
--- /dev/null
+++ b/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
diff --git a/llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s b/llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
index 5919c93d20bf..82d20ca668d6 100644
--- a/llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
+++ b/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:
More information about the llvm-commits
mailing list