aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/undefined-opt.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/undefined-opt.s')
-rw-r--r--test/ELF/undefined-opt.s13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/ELF/undefined-opt.s b/test/ELF/undefined-opt.s
index 97ab5a63490a..ddd34f49b748 100644
--- a/test/ELF/undefined-opt.s
+++ b/test/ELF/undefined-opt.s
@@ -51,5 +51,16 @@
# UNK-UNDEFINED-SO-NOT: Name: unknown
# UNK-UNDEFINED-SO: ]
-.globl _start;
+# Added undefined symbols should appear in the dynamic table if necessary.
+# RUN: ld.lld -shared -o %t5 %t.o -u export
+# RUN: llvm-readobj --dyn-symbols %t5 | \
+# RUN: FileCheck --check-prefix=EXPORT-SO %s
+# EXPORT-SO: DynamicSymbols [
+# EXPORT-SO: Name: export
+# EXPORT-SO: ]
+
+.globl _start
_start:
+
+.globl export
+export: