[lld] 4ad3dee - [ELF] PHDRS: test EOF without ;
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 16:56:31 PDT 2024
Author: Fangrui Song
Date: 2024-07-27T16:56:27-07:00
New Revision: 4ad3deeefc6c7cd2b1248d6b06c6888618210093
URL: https://github.com/llvm/llvm-project/commit/4ad3deeefc6c7cd2b1248d6b06c6888618210093
DIFF: https://github.com/llvm/llvm-project/commit/4ad3deeefc6c7cd2b1248d6b06c6888618210093.diff
LOG: [ELF] PHDRS: test EOF without ;
Added:
Modified:
lld/test/ELF/linkerscript/phdrs.s
Removed:
################################################################################
diff --git a/lld/test/ELF/linkerscript/phdrs.s b/lld/test/ELF/linkerscript/phdrs.s
index 9768c4ccdbacb..96a8b29e6769c 100644
--- a/lld/test/ELF/linkerscript/phdrs.s
+++ b/lld/test/ELF/linkerscript/phdrs.s
@@ -104,6 +104,12 @@ PHDRS { text PT_LOAD ;
# UNCLOSED:error: unclosed.lds:1: unexpected EOF
# UNCLOSED-NOT:{{.}}
+#--- unclosed2.lds
+PHDRS { text PT_LOAD
+
+# RUN: not ld.lld -T unclosed2.lds a.o 2>&1 | FileCheck --check-prefix=UNCLOSED2 %s
+# UNCLOSED2: error: unclosed2.lds:1: unexpected header attribute:
+
#--- a.s
.global _start
_start:
More information about the llvm-commits
mailing list