]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-elf/shared.exp
ELF: Properly handle section symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elf / shared.exp
index b1e1f62d50e03a3caa3b8b48e0fe118f5afd6ff1..9d72cad78d6c326644821192e9f395cce4df02b0 100644 (file)
@@ -832,6 +832,25 @@ append build_tests {
 
 run_cc_link_tests $build_tests
 
+run_cc_link_tests [list \
+    [list \
+       "Build pr26094-1.so" \
+       "-shared -Wl,--version-script=pr26094-1.ver" \
+       "-fPIC" \
+       {pr26094-1a.c} \
+       {{readelf {--dyn-syms --wide} pr26094-1a.rd}} \
+       "pr26094-1.so" \
+    ] \
+    [list \
+       "Build pr26094-1" \
+       "-Wl,--no-as-needed tmpdir/pr26094-1.so" \
+       "-fcommon" \
+       {pr26094-1b.c pr26094-1c.c} \
+       {{readelf {--dyn-syms --wide} pr26094-1b.rd}} \
+       "pr26094-1" \
+    ] \
+]
+
 run_ld_link_tests [list \
     [list \
        "pr22269-1 (static pie undefined weak)" \