* ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
authorHans-Peter Nilsson <hp@axis.com>
Wed, 7 Jan 2009 03:27:11 +0000 (03:27 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 7 Jan 2009 03:27:11 +0000 (03:27 +0000)
ld-cris/tls-e-23.d, ld-cris/tls-e-66.d, ld-cris/tls-gd-3.d,
ld-cris/tls-gd-3h.d, ld-cris/tls-global-74.d,
ld-cris/tls-ie-8e1.d, ld-cris/tls-ldgde-14.d,
ld-cris/tls-ldgde-15.d, ld-cris/tls-le-12.d, ld-cris/tls-le-13.d,
ld-cris/tls-le-13s.d, ld-cris/tls-legd-16.d,
ld-cris/tls-legd-17.d, ld-cris/tls-legdx-16.d,
ld-cris/tls-legdx-17.d, ld-cris/tls-leie-18.d,
ld-cris/tls-leie-19.d, ld-cris/tls-local-57.d,
ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for
relocation value now offset by negative program TLS block size.
* ld-cris/tls-le-12s.d: Ditto.  Move 128-byte tls-data to last.
Adjust accordingly.
* ld-cris/tls-le-12s.s: Use movs, not movu, for sign-extended
always-negative relocation.
* ld-cris/tls-tprelm.s: Move filler data to after symbol for
tested relocation.
* ld-cris/tls-ok-36.d: Adjust accordingly.

28 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-cris/tls-e-20.d
ld/testsuite/ld-cris/tls-e-20a.d
ld/testsuite/ld-cris/tls-e-21.d
ld/testsuite/ld-cris/tls-e-23.d
ld/testsuite/ld-cris/tls-e-66.d
ld/testsuite/ld-cris/tls-gd-3.d
ld/testsuite/ld-cris/tls-gd-3h.d
ld/testsuite/ld-cris/tls-global-74.d
ld/testsuite/ld-cris/tls-ie-8e1.d
ld/testsuite/ld-cris/tls-ldgde-14.d
ld/testsuite/ld-cris/tls-ldgde-15.d
ld/testsuite/ld-cris/tls-le-12.d
ld/testsuite/ld-cris/tls-le-12s.d
ld/testsuite/ld-cris/tls-le-12s.s
ld/testsuite/ld-cris/tls-le-13.d
ld/testsuite/ld-cris/tls-le-13s.d
ld/testsuite/ld-cris/tls-legd-16.d
ld/testsuite/ld-cris/tls-legd-17.d
ld/testsuite/ld-cris/tls-legdx-16.d
ld/testsuite/ld-cris/tls-legdx-17.d
ld/testsuite/ld-cris/tls-leie-18.d
ld/testsuite/ld-cris/tls-leie-19.d
ld/testsuite/ld-cris/tls-local-57.d
ld/testsuite/ld-cris/tls-local-58.d
ld/testsuite/ld-cris/tls-local-59.d
ld/testsuite/ld-cris/tls-ok-36.d
ld/testsuite/ld-cris/tls-tprelm.s

index 74e815400053f22912af4d71ad71cb0a23245575..f0728e50d75a8d0d7b7a255a39eddb03c49be35c 100644 (file)
@@ -1,3 +1,24 @@
+2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
+
+       * ld-cris/tls-e-20.d, ld-cris/tls-e-20a.d, ld-cris/tls-e-21.d,
+       ld-cris/tls-e-23.d, ld-cris/tls-e-66.d, ld-cris/tls-gd-3.d,
+       ld-cris/tls-gd-3h.d, ld-cris/tls-global-74.d,
+       ld-cris/tls-ie-8e1.d, ld-cris/tls-ldgde-14.d,
+       ld-cris/tls-ldgde-15.d, ld-cris/tls-le-12.d, ld-cris/tls-le-13.d,
+       ld-cris/tls-le-13s.d, ld-cris/tls-legd-16.d,
+       ld-cris/tls-legd-17.d, ld-cris/tls-legdx-16.d,
+       ld-cris/tls-legdx-17.d, ld-cris/tls-leie-18.d,
+       ld-cris/tls-leie-19.d, ld-cris/tls-local-57.d,
+       ld-cris/tls-local-58.d, ld-cris/tls-local-59.d: Adjust for
+       relocation value now offset by negative program TLS block size.
+       * ld-cris/tls-le-12s.d: Ditto.  Move 128-byte tls-data to last.
+       Adjust accordingly.
+       * ld-cris/tls-le-12s.s: Use movs, not movu, for sign-extended
+       always-negative relocation.
+       * ld-cris/tls-tprelm.s: Move filler data to after symbol for
+       tested relocation.
+       * ld-cris/tls-ok-36.d: Adjust accordingly.
+
 2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
 
        * ld-cris/tls-js1.d: New test.
index d4d4116b08f499545d4c106b975e283d7d406741..81ec6d0956296459b834e8c74367a2d99f7f99b8 100644 (file)
@@ -53,7 +53,7 @@ Contents of section \.tdata:
  820b0 28000000 29000000 2a000000           .*
 Contents of section \.got:
  820bc 00000000 00000000 00000000 01000000  .*
- 820cc 00000000 00000000 01000000 00000000  .*
+ 820cc 00000000 f4ffffff 01000000 f4ffffff  .*
 
 Disassembly of section \.text:
 
index 47f0a5089e2ab0a9de75a47c6f629da695f95d22..ba195fcc973ef8ad5eb58d786fbafbde7c309408 100644 (file)
@@ -75,7 +75,7 @@ Contents of section \.tdata:
  8215c 28000000 29000000 2a000000           .*
 Contents of section \.got:
  82168 00000000 00000000 00000000 01000000  .*
- 82178 00000000 80000000 01000000 80000000  .*
+ 82178 00000000 f4ffffff 01000000 f4ffffff  .*
  82188 b4210800 ac210800 bc210800 b8210800  .*
  82198 a4210800 b0210800 a8210800           .*
 Contents of section \.data:
index fa56b9faad8dc0bb4836d8453d1b57c223de5141..7c383c025dc516dd72a01341e2fa1e335b8142e2 100644 (file)
@@ -27,7 +27,7 @@ Contents of section \.tdata:
 #...
 Contents of section \.got:
  82124 00000000 00000000 00000000 01000000  .*
- 82134 80000000                             .*
+ 82134 fcffffff                             .*
 
 Disassembly of section \.text:
 
index 3ac46399edc33851dc1d3adecfb5a454ed03d066..499899edf7664b9fe6efd7ff0355685047918f61 100644 (file)
@@ -26,7 +26,7 @@ Contents of section \.text:
 Contents of section \.tdata:
 #...
 Contents of section \.got:
- 82124 00000000 00000000 00000000 80000000  .*
+ 82124 00000000 00000000 00000000 fcffffff  .*
 
 Disassembly of section \.text:
 
index a073b9403725f4c434bd61df197ed9d0f4bc83a9..ba1755d3fa60cef9da9594fd159b0560852f9d36 100644 (file)
@@ -33,5 +33,5 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn12>:
-   80098:      5fac 0000               movu\.w 0x0,\$r10
+   80098:      7fac fcff               movs\.w -4,\$r10
 #...
index b2de85103bc928dcd0c089ce83b5e200ea27caa8..9019626b37ffe53d71b2d1a4c3c1bb41f6d4645f 100644 (file)
@@ -27,7 +27,7 @@ Contents of section \.tdata:
 #...
 Contents of section \.got:
  82124 00000000 00000000 00000000 01000000  .*
- 82134 80000000                             .*
+ 82134 fcffffff                             .*
 
 Disassembly of section \.text:
 
index 78f109da8fa1e488204fbd9c902a3cc1f960d35d..c2b33f513e6f12af941145bea2e407a3cbfaf821 100644 (file)
@@ -27,7 +27,7 @@ Contents of section \.tdata:
 #...
 Contents of section \.got:
  82124 00000000 00000000 00000000 01000000  .*
- 82134 80000000                             .*
+ 82134 fcffffff                             .*
 
 Disassembly of section \.text:
 
index 964246ef8a740edfda4e1a02bdfa27e816846d61..53849b4faa49045d7c8eca713549e5ea767ed2eb 100644 (file)
@@ -24,5 +24,5 @@ Contents of section .text:
  800a4 0+ 5fae1000 5fae0c00        .*
 #...
 Contents of section \.got:
- 820b4 0+ 0+ 0+ 0+  .*
- 820c4 010+ 0+              .*
+ 820b4 0+ 0+ 0+ fcffffff  .*
+ 820c4 010+ fcffffff  .*
index e2bcfd2b76fcef815933613452cee2948c638ca7..0093935a79e0ebc7aa89f818a86965612bd1a72c 100644 (file)
@@ -30,7 +30,7 @@ Contents of section .text:
  80094 41b20000 6fae3021 08000000           .*
 #...
 Contents of section .got:
- 82124 00000000 00000000 00000000 80000000  .*
+ 82124 00000000 00000000 00000000 fcffffff  .*
 
 Disassembly of section .text:
 
index 87f73be7bb268203676b060002edea810a14a236..b37da6a064d6c9344c06eb84fa729a3faa51c2d9 100644 (file)
@@ -42,8 +42,8 @@ Contents of section \.tdata:
 #...
 Contents of section \.got:
  82138 00000000 00000000 00000000 01000000  .*
- 82148 00000000 01000000 80000000 01000000  .*
- 82158 84000000                             .*
+ 82148 00000000 01000000 f0ffffff 01000000  .*
+ 82158 f4ffffff                             .*
 
 Disassembly of section \.text:
 
index ae563654d20261b0411c8e4e83c8c368475a49fd..9b076f717f84e763e141ac5c7a3877fbae5733e7 100644 (file)
@@ -42,8 +42,8 @@ Contents of section \.tdata:
 #...
 Contents of section \.got:
  82144 00000000 00000000 00000000 01000000  .*
- 82154 00000000 01000000 80000000 01000000  .*
- 82164 84000000                             .*
+ 82154 00000000 01000000 f0ffffff 01000000  .*
+ 82164 f4ffffff                             .*
 
 Disassembly of section \.text:
 
index cc4025a27b1a18dbbeccc2e2f2badb6683eb34f2..d24b21b68047f6734ed45e8df05d961958d6f4ef 100644 (file)
@@ -34,5 +34,5 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn12>:
-   80098:      6fae 8000 0000          move\.d 80 <z>,\$r10
+   80098:      6fae fcff ffff          move\.d 0xfffffffc,\$r10
 #...
index 8b9fb8ff60c8665b9cfc2c46e81163f438e697f4..96570e9840a7099bd4b2a7d335661e887c064125 100644 (file)
@@ -1,7 +1,7 @@
 #source: start1.s
-#source: tls128.s
 #source: tls-le-12s.s
 #source: tls-z.s
+#source: tls128.s
 #as: --no-underscore --em=criself -I$srcdir/$subdir
 #ld: -m crislinux
 #objdump: -d -s -t -r -p -h
@@ -21,7 +21,7 @@ private flags = 0:
                   CONTENTS.*
 SYMBOL TABLE:
 #...
-0+80 g       \.tdata   0+4 z
+0+ g       \.tdata     0+4 z
 #...
 Contents of section \.text:
 #...
@@ -34,5 +34,5 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn12>:
-   80098:      5fac 8000               movu\.w 0x80,\$r10
+   80098:      7fac 7cff               movs\.w -132,\$r10
 #...
index 8edcbf66894a6710e44e01639222e9e8313bd87a..12e00e169b9524ddf77e477b8bbc221f1c67c945 100644 (file)
@@ -3,6 +3,6 @@
        .type   tlsfn12,@function
        .p2align 1
 tlsfn12:
-       movu.w z:TPOFF16,$r10
+       movs.w z:TPOFF16,$r10
 .Lfe12:
        .size   tlsfn12,.Lfe12-tlsfn12
index 0589eb349bcc80cfb9c2d70b758e33edeecff714..3d969ac8e69af64b581323a854ffe2f4425c059d 100644 (file)
@@ -36,6 +36,6 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn13>:
-   80098:      6fae 8000 0000          move\.d 80 <x1>,\$r10
-   8009e:      6fae 8400 0000          move\.d 84 <x2>,\$r10
+   80098:      6fae f8ff ffff          move\.d 0xfffffff8,\$r10
+   8009e:      6fae fcff ffff          move\.d 0xfffffffc,\$r10
 #...
index 601ad225f244a0f29322e08d20e0a689a9fa762f..146c9132bb3166682ab90873abce70c63c6d93e4 100644 (file)
@@ -36,5 +36,5 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn13>:
-   80098:      5fae 8000               move\.w 0x80,\$r10
-   8009c:      5fae 8400               move\.w 0x84,\$r10
+   80098:      5fae f8ff               move\.w 0xfff8,\$r10
+   8009c:      5fae fcff               move\.w 0xfffc,\$r10
index 652504205b245a0883448679d7e4ae5e8dbffb29..9f464ad4674a95933e53f6b068af78d7c88da62f 100644 (file)
@@ -39,7 +39,7 @@ Contents of section \.text:
 #...
 Contents of section \.got:
  82144 0+ 0+ 0+ 010+  .*
- 82154 80+ 010+ 840+           .*
+ 82154 f0ffffff 010+ f4ffffff  .*
 
 Disassembly of section \.text:
 
@@ -47,8 +47,8 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn13>:
-   80098:      6fae 8800 0000          move.d 88 <x1>,\$r10
-   8009e:      6fae 8c00 0000          move.d 8c <x2>,\$r10
+   80098:      6fae f8ff ffff          move.d 0xfffffff8,\$r10
+   8009e:      6fae fcff ffff          move.d 0xfffffffc,\$r10
 
 000800a4 <tlsfn>:
    800a4:      6fae 5021 0800          move.d 82150 <_GLOBAL_OFFSET_TABLE_\+0xc>,\$r10
index 328d1fd5238c883edc413b90a5caf1d0b44c25ab..2ee21394ffd126a75dabefdc731fc6a7d6e189ad 100644 (file)
@@ -39,7 +39,7 @@ Contents of section \.text:
 #...
 Contents of section \.got:
  8213c 0+ 0+ 0+ 010+  .*
- 8214c 80+ 010+ 840+           .*
+ 8214c f0ffffff 010+ f4ffffff  .*
 
 Disassembly of section \.text:
 
@@ -47,8 +47,8 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn13>:
-   80098:      5fae 8800               move.w 0x88,\$r10
-   8009c:      5fae 8c00               move.w 0x8c,\$r10
+   80098:      5fae f8ff               move.w 0xfff8,\$r10
+   8009c:      5fae fcff               move.w 0xfffc,\$r10
 
 000800a0 <tlsdsofn2>:
    800a0:      6fae 0c00 0000          move.d c <tls128\+0xc>,\$r10
index 8ce4280cef29c0641ef7cf61f51434cfc770d1f6..1e3bc3ee72743b9362806655128eed54143dd173 100644 (file)
@@ -44,7 +44,7 @@ OFFSET   TYPE              VALUE
 Contents of section .interp:
 #...
 Contents of section \.text:
- 801dc 41b20000 6fae8000 00006fae 84000000  .*
+ 801dc 41b20000 6faef8ff ffff6fae fcffffff  .*
  801ec 6fae1023 08000000 6fae1823 08000000  .*
 #...
 Contents of section \.got:
index 5a76604f7b40be54ac582ce6cbcb6d016c983824..1d1c5ea800752d6c122c045b58a9a5749a65d456 100644 (file)
@@ -46,7 +46,7 @@ OFFSET   TYPE              VALUE
 Contents of section .interp:
 #...
 Contents of section \.text:
- 801dc 41b20000 5fae8000 5fae8400 6fae0c00  .*
+ 801dc 41b20000 5faef8ff 5faefcff 6fae0c00  .*
  801ec 00000000 5fae1400                    .*
 #...
 Contents of section \.got:
index e4d1601d1abccc2c9d734a0e11fbb6521ffc8d06..edff43c21951714e6612e132372da6379ab2e13c 100644 (file)
@@ -30,8 +30,8 @@ SYMBOL TABLE:
 Contents of section \.text:
 #...
 Contents of section \.got:
- 82130 0+ 0+ 0+ 840+  .*
- 82140 80+                             ....            
+ 82130 0+ 0+ 0+ fcffffff  .*
+ 82140 f8ffffff  .*
 
 Disassembly of section \.text:
 
@@ -39,8 +39,8 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn13>:
-   80098:      5fae 8000               move.w 0x80,\$r10
-   8009c:      5fae 8400               move.w 0x84,\$r10
+   80098:      5fae f8ff               move.w 0xfff8,\$r10
+   8009c:      5fae fcff               move.w 0xfffc,\$r10
 
 000800a0 <tlsdsofn9>:
    800a0:      5fae 1000               move.w 0x10,\$r10
index f294b77b9bad40b2d5b34b0edbf11c80420af9d5..6cf69b23f75b39420b1580e402acbd6a206f5e3c 100644 (file)
@@ -37,8 +37,8 @@ SYMBOL TABLE:
 Contents of section \.text:
 #...
 Contents of section \.got:
- 82144 0+ 0+ 0+ 840+  .*
- 82154 80+                             .*
+ 82144 0+ 0+ 0+ f4ffffff  .*
+ 82154 f0ffffff  .*
 
 Disassembly of section \.text:
 
@@ -46,11 +46,11 @@ Disassembly of section \.text:
    80094:      41b2                    moveq 1,\$r11
 #...
 00080098 <tlsfn19>:
-   80098:      6fae 8800 0000          move.d 88 <x>,\$r10
+   80098:      6fae f8ff ffff          move.d 0xfffffff8,\$r10
 #...
 
 000800a0 <tlsfn12>:
-   800a0:      6fae 8c00 0000          move.d 8c <z>,\$r10
+   800a0:      6fae fcff ffff          move.d 0xfffffffc,\$r10
 #...
 
 000800a8 <tlsdsofn>:
index 03899a7ec094f66c9fbb441a79cdd6b8b09b9e4c..5756657e21e1f9693279d2c590512b7b033fa6c7 100644 (file)
@@ -20,4 +20,4 @@ Contents of section .text:
 #...
 Contents of section \.got:
  82124 0+ 0+ 0+ 010+  .*
- 82134 040+                             .*
+ 82134 80ffffff  .*
index 2f68a88f3178ca1d6a35569eccd0bda763255124..7e130cf49b38d01b69696455d79438eee1ce8850 100644 (file)
@@ -21,4 +21,4 @@ Contents of section .text:
 #...
 Contents of section \.got:
  82128 0+ 0+ 0+ 010+  .*
- 82138 040+                             .*
+ 82138 80ffffff  .*
index fd033e45203a588ea115c57dc9ae526bc1d0fd47..0130a977e49d472acac0a5bb5f8e8b437f47e1e6 100644 (file)
@@ -21,5 +21,5 @@ Contents of section .text:
  800a4 5fae1000 5fae0c00                    .*
 #...
 Contents of section \.got:
- 82130 0+ 0+ 0+ 040+  .*
- 82140 010+ 040+              .*
+ 82130 0+ 0+ 0+ 80ffffff  .*
+ 82140 010+ 80ffffff  .*
index 506f7c900f117daa1a70aa4672b2e042622495f9..fcfecb9a8c0d7b6650452f315bd1a030e4fb5609 100644 (file)
@@ -9,7 +9,7 @@
 .*:     file format elf32-cris
 
 Contents of section \.text:
- 80094 41b20000 5faeff7f                   .*
+ 80094 41b20000 5fae0080                   .*
 Contents of section \.tdata:
  8209c 2a2a2a2a 2a2a2a2a 2a2a2a2a 2a2a2a2a .*
 #...
index 7d03ddd026c12fe94dfad1c314bc20f51e7e52dc..93fd671311c3b4d1a5c1bb4366f524be2b53e136 100644 (file)
@@ -12,15 +12,15 @@ tlsfntprelm:
 .Lfe:
        .size   tlsfntprelm,.Lfe-tlsfntprelm
 
-       .globl z
        .section        .tdata,"awT",@progbits
        .p2align 2
-       .type   z,@object
-       .size   z,r
-z:
-       .fill   r,1,42
-
        .type   x,@object
        .size   x,1
 x:
        .byte 42
+
+       .globl z
+       .type   z,@object
+       .size   z,r
+z:
+       .fill   r,1,42