summaryrefslogtreecommitdiffstats
path: root/spec/build/testsuites/libtests
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2023-01-12 16:50:35 -0600
committerJoel Sherrill <joel@rtems.org>2023-01-20 08:26:35 -0600
commit81085ca9f45ed2407b959d2bb4cb9bcc0aa5c9de (patch)
treefe3c0ba1f21d2f1b53fc821e77094c75982503ed /spec/build/testsuites/libtests
parentcpukit/libdl: Add AArch64 TLS reloc support (diff)
downloadrtems-81085ca9f45ed2407b959d2bb4cb9bcc0aa5c9de.tar.bz2
testsuites/libtest/dl11: Add DL test for TLS
This adds a test verifying basic TLS functionality in loadable modules now that at least one architecture supports it.
Diffstat (limited to '')
-rw-r--r--spec/build/testsuites/libtests/dl11.yml38
-rw-r--r--spec/build/testsuites/libtests/grp.yml2
2 files changed, 40 insertions, 0 deletions
diff --git a/spec/build/testsuites/libtests/dl11.yml b/spec/build/testsuites/libtests/dl11.yml
new file mode 100644
index 0000000000..6eaaeaeecc
--- /dev/null
+++ b/spec/build/testsuites/libtests/dl11.yml
@@ -0,0 +1,38 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: script
+cflags: []
+copyrights:
+- Copyright (C) 2023 On-Line Applications Research (OAR)
+cppflags: []
+do-build: |
+ path = "testsuites/libtests/dl11/"
+ objs = []
+ objs.append(self.cc(bld, bic, path + "dl11-o1.c"))
+ tar = path + "dl11.tar"
+ self.tar(bld, objs, [path], tar)
+ tar_c, tar_h = self.bin2c(bld, tar)
+ objs = []
+ objs.append(self.cc(bld, bic, tar_c))
+ objs.append(self.cc(bld, bic, path + "init.c", deps=[tar_h], cppflags=bld.env.TEST_DL11_CPPFLAGS))
+ objs.append(self.cc(bld, bic, path + "dl-load.c"))
+ dl11_pre = path + "dl11.pre"
+ self.link_cc(bld, bic, objs, dl11_pre)
+ dl11_sym_o = path + "dl11-sym.o"
+ objs.append(dl11_sym_o)
+ self.rtems_syms(bld, dl11_pre, dl11_sym_o)
+ self.link_cc(bld, bic, objs, "testsuites/libtests/dl11.exe")
+do-configure: null
+enabled-by:
+- and:
+ - not: TEST_DL11_EXCLUDE
+ - BUILD_LIBDL
+includes:
+- testsuites/libtests/dl11
+ldflags: []
+links: []
+prepare-build: null
+prepare-configure: null
+stlib: []
+type: build
+use-after: []
+use-before: []
diff --git a/spec/build/testsuites/libtests/grp.yml b/spec/build/testsuites/libtests/grp.yml
index 9d91df75a0..8f2cadb890 100644
--- a/spec/build/testsuites/libtests/grp.yml
+++ b/spec/build/testsuites/libtests/grp.yml
@@ -111,6 +111,8 @@ links:
- role: build-dependency
uid: dl10
- role: build-dependency
+ uid: dl11
+- role: build-dependency
uid: dumpbuf01
- role: build-dependency
uid: dup2