Fix linker testsuite failures for arm-pe targets.
authorNick Clifton <nickc@redhat.com>
Wed, 20 Jan 2016 15:41:06 +0000 (15:41 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Jan 2016 15:41:06 +0000 (15:41 +0000)
PR 19457
* testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
early for PE based targets.
* testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
* testsuite/ld-pe/tlssec32.d: Allow for relocatable output.

ld/ChangeLog
ld/testsuite/ld-pe/tlssec32.d
ld/testsuite/ld-scripts/align.t
ld/testsuite/ld-scripts/script.exp

index 94b6f47d6e70b11ae0b65fe31d96315d70037d2b..fc01ed61618e77ac222a4226dceba74e3d67e4ed 100644 (file)
@@ -1,3 +1,11 @@
+2016-01-20  Nick Clifton  <nickc@redhat.com>
+
+       PR 19457
+       * testsuite/ld-scripts/script.exp (extract_symbol_test): Stop test
+       early for PE based targets.
+       * testsuite/ld-scripts/align.t: Use 0x1000 as VMA alignment.
+       * testsuite/ld-pe/tlssec32.d: Allow for relocatable output.
+
 2016-01-20  Mickael Guene  <mickael.guene@st.com>
 
        * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s:
index 0114064a33b52c55dbf6a6e1fa4bcb83162ca3dd..7e197724250d38681f03eeaf3b60f68035f491b8 100644 (file)
@@ -1,3 +1,3 @@
 #...
-Entry 9 00003000 00000018 Thread Storage Directory \[\.tls\]
+Entry 9 0000.000 000000.. Thread Storage Directory \[\.tls\]
 #...
index 49d6053a10f1ceb026a117bb06f8d72ded105a77..81c21c6cae82d8d7b8262970b462b992dafba783 100644 (file)
@@ -1,8 +1,8 @@
 SECTIONS
 {
   .text : {*(.text)}
-  .data ALIGN(0x40) : AT (ALIGN (LOADADDR (.text) + SIZEOF (.text), 0x80))
+  .data ALIGN(0x1000) : AT (ALIGN (LOADADDR (.text) + SIZEOF (.text), 0x80))
     {}
   ASSERT (LOADADDR(.data) == 0x80, "dyadic ALIGN broken")
-  ASSERT (ADDR(.data) == 0x40, "monadic ALIGN broken")
+  ASSERT (ADDR(.data) == 0x1000, "monadic ALIGN broken")
 }
index fc95658774cb96d027fba24f7a6d789d048a8170..61ada1060a95e86506453c5fce50776b77f2e269 100644 (file)
@@ -145,6 +145,15 @@ proc extract_symbol_test { testfile testname } {
            pass $testname
            return
        }
+       [a-z]*-*-pe$ {
+           # Fails for PE based targets because the extracted section
+           # relative symbols (eg tred or .text) all become undefined
+           # when the sections are blown away by --extract-symbol.  Again
+           # this should not matter as --extract-symbol is only used by
+           # VxWorks.
+           pass $testname
+           return
+       }
     }
 
     set extract_syms [run_host_cmd $nm $copyfile]
This page took 0.028612 seconds and 4 git commands to generate.