From f718430ce402592f0f1ee09e7f4bf8d37e4787c0 Mon Sep 17 00:00:00 2001 From: Martin Storsjo <martin@martin.st> Date: Mon, 14 Jan 2019 18:56:27 +0000 Subject: [PATCH] [llvm-objcopy] [COFF] Test absolute symbols wrt --strip-unneeded and --discard-all. NFC. Differential Revision: https://reviews.llvm.org/D56659 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351098 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/llvm-objcopy/COFF/Inputs/discard-locals.yaml | 6 ++++++ test/tools/llvm-objcopy/COFF/discard-all.test | 1 + test/tools/llvm-objcopy/COFF/strip-unneeded.test | 1 + 3 files changed, 8 insertions(+) diff --git a/test/tools/llvm-objcopy/COFF/Inputs/discard-locals.yaml b/test/tools/llvm-objcopy/COFF/Inputs/discard-locals.yaml index 6a80935d670..0a8def855ee 100644 --- a/test/tools/llvm-objcopy/COFF/Inputs/discard-locals.yaml +++ b/test/tools/llvm-objcopy/COFF/Inputs/discard-locals.yaml @@ -42,4 +42,10 @@ symbols: SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC + - Name: '@feat.00' + Value: 0 + SectionNumber: -1 + SimpleType: IMAGE_SYM_TYPE_NULL + ComplexType: IMAGE_SYM_DTYPE_NULL + StorageClass: IMAGE_SYM_CLASS_STATIC ... diff --git a/test/tools/llvm-objcopy/COFF/discard-all.test b/test/tools/llvm-objcopy/COFF/discard-all.test index b375c528f3f..2ea4f444509 100644 --- a/test/tools/llvm-objcopy/COFF/discard-all.test +++ b/test/tools/llvm-objcopy/COFF/discard-all.test @@ -22,4 +22,5 @@ SYMBOLS-NEXT: external_undefined SYMBOLS-PRE-NEXT: local_unreferenced SYMBOLS-NEXT: local_referenced SYMBOLS-NEXT: local_undefined_unreferenced +SYMBOLS-PRE-NEXT: @feat.00 SYMBOLS-EMPTY: diff --git a/test/tools/llvm-objcopy/COFF/strip-unneeded.test b/test/tools/llvm-objcopy/COFF/strip-unneeded.test index 77004495030..bbecb15e3e4 100644 --- a/test/tools/llvm-objcopy/COFF/strip-unneeded.test +++ b/test/tools/llvm-objcopy/COFF/strip-unneeded.test @@ -11,4 +11,5 @@ SYMBOLS-NEXT: external_undefined SYMBOLS-PRE-NEXT: local_unreferenced SYMBOLS-NEXT: local_referenced SYMBOLS-PRE-NEXT: local_undefined_unreferenced +SYMBOLS-PRE-NEXT: @feat.00 SYMBOLS-EMPTY: -- 2.40.0