[binutils-gdb] ld/PE: enable secrel testcases also for 64-bit Cygwin

Jan Beulich jbeulich@sourceware.org
Mon Sep 23 13:27:20 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4c73fafbbdf6e4b200e32d2d76e5b88e37e500c4

commit 4c73fafbbdf6e4b200e32d2d76e5b88e37e500c4
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Sep 23 15:27:02 2024 +0200

    ld/PE: enable secrel testcases also for 64-bit Cygwin
    
    Plus the others that are grouped there.

Diff:
---
 ld/testsuite/ld-pe/pe.exp | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/ld/testsuite/ld-pe/pe.exp b/ld/testsuite/ld-pe/pe.exp
index 04b53b8612c..725b58c2fb3 100644
--- a/ld/testsuite/ld-pe/pe.exp
+++ b/ld/testsuite/ld-pe/pe.exp
@@ -29,6 +29,7 @@ if {[istarget i*86-*-cygwin*]
     || [istarget i*86-*-pe]
     || [istarget i*86-*-mingw*]
     || [istarget x86_64-*-mingw*]
+    || [istarget x86_64-*-cygwin*]
     || [istarget arm-wince-pe] } {
 
     if {[istarget x86_64-*-mingw*] } {
@@ -46,6 +47,21 @@ if {[istarget i*86-*-cygwin*]
 	{"TLS directory entry" "" "" "" "tlssec.s"
 	 {{objdump -p tlssec64.d}} "tlssec.dll"}
       }
+    } elseif {[istarget x86_64-*-cygwin*]} {
+      set pe_tests {
+	{".secrel32" "--disable-auto-import --disable-reloc-section" "" "" {secrel1.s secrel2.s}
+	 {{objdump -s secrel_64.d}} "secrel.x"}
+	{".secidx" "--disable-auto-import --disable-reloc-section" "" "" {secidx1.s secidx2.s}
+	 {{objdump -s secidx_64.d}} "secidx.x"}
+	{".secrel32 w/ relocs" "--disable-auto-import --enable-reloc-section" "" "" {secrel1.s secrel2.s}
+	 {{objdump -p secrel-reloc.d}} "secrel.x"}
+	{".secidx w/ relocs" "--disable-auto-import --enable-reloc-section" "" "" {secidx1.s secidx2.s}
+	 {{objdump -p secidx-reloc.d}} "secidx.x"}
+	{"Empty export table" "" "" "" "exports.s"
+	 {{objdump -p exports64.d}} "exports.dll"}
+	{"TLS directory entry" "" "" "" "tlssec.s"
+	 {{objdump -p tlssec64.d}} "tlssec.dll"}
+      }
     } elseif {[istarget i*86-*-cygwin*] } {
       set pe_tests {
 	{".secrel32" "--disable-auto-import --disable-reloc-section" "" "" {secrel1.s secrel2.s}


More information about the Binutils-cvs mailing list