[lld] 960b80c - [ELF] Improve INPUT_SECTION_FLAGS test

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 21:19:19 PST 2025


Author: Fangrui Song
Date: 2025-02-18T21:19:14-08:00
New Revision: 960b80c9f89eef9203ccd46c449008958eb3d5d9

URL: https://github.com/llvm/llvm-project/commit/960b80c9f89eef9203ccd46c449008958eb3d5d9
DIFF: https://github.com/llvm/llvm-project/commit/960b80c9f89eef9203ccd46c449008958eb3d5d9.diff

LOG: [ELF] Improve INPUT_SECTION_FLAGS test

Added: 
    

Modified: 
    lld/test/ELF/input-section-flags.s

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/input-section-flags.s b/lld/test/ELF/input-section-flags.s
index 0c8e31c77b0dc..f848d55e6fddc 100644
--- a/lld/test/ELF/input-section-flags.s
+++ b/lld/test/ELF/input-section-flags.s
@@ -15,6 +15,7 @@
 # RUN: .outsec3 : { INPUT_SECTION_FLAGS(SHF_WRITE) *(.sec.*) } \
 # RUN: .outsec4 : { INPUT_SECTION_FLAGS(SHF_MERGE & !SHF_STRINGS) *(.sec.*) } \
 # RUN: .outsec5 : { INPUT_SECTION_FLAGS(SHF_STRINGS) *(.sec.*) } \
+# RUN: .outsec6 : { INPUT_SECTION_FLAGS(!SHF_TLS & !SHF_EXCLUDE & !SHF_COMPRESSED & !SHF_ARM_PURECODE) *(.sec.*) } \
 # RUN: } " > %t.script
 # RUN: ld.lld -o %t1 --script %t.script %t.o
 # RUN: llvm-readobj --symbols %t1 | FileCheck %s


        


More information about the llvm-commits mailing list