[PATCH] D46730: Fix test cases failure by revision 332038

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 15:30:12 PDT 2018


shenhan created this revision.
shenhan added a reviewer: ruiu.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: javed.absar.
Herald added a reviewer: espindola.

Fixed test cases error caused by change http://llvm.org/viewvc/llvm-project?revision=332038&view=revision

The previous CL rearranges some output section, which causes address changes in test cases.

This CL fixes all these 4 failures.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D46730

Files:
  test/ELF/aarch64-copy.s
  test/ELF/arm-copy.s
  test/ELF/relocation.s
  test/ELF/version-script-extern.s


Index: test/ELF/version-script-extern.s
===================================================================
--- test/ELF/version-script-extern.s
+++ test/ELF/version-script-extern.s
@@ -68,8 +68,8 @@
 # DSO-NEXT:  ]
 # DSO-NEXT:  Version symbols {
 # DSO-NEXT:    Section Name: .gnu.version
-# DSO-NEXT:    Address: 0x32A
-# DSO-NEXT:    Offset: 0x32A
+# DSO-NEXT:    Address: 0x300
+# DSO-NEXT:    Offset: 0x300
 # DSO-NEXT:    Link: 1
 # DSO-NEXT:    Symbols [
 # DSO-NEXT:      Symbol {
Index: test/ELF/relocation.s
===================================================================
--- test/ELF/relocation.s
+++ test/ELF/relocation.s
@@ -113,7 +113,7 @@
  .quad R_X86_64_64
 
 // CHECK:      Contents of section .R_X86_64_64:
-// CHECK-NEXT:   2002b0 b0022000 00000000
+// CHECK-NEXT:   200287 87022000 00000000
 
 .section .R_X86_64_GOTPCREL,"a", at progbits
 .global R_X86_64_GOTPCREL
@@ -123,7 +123,7 @@
 // 0x2020F8 - 0x2001D8 = 7952
 // 7952 = 0x101f0000 in little endian
 // CHECK:      Contents of section .R_X86_64_GOTPCREL
-// CHECK-NEXT:   2002b8 382e0000
+// CHECK-NEXT:   20028f 612e0000
 
 .section .R_X86_64_GOT32,"a", at progbits
 .global R_X86_64_GOT32
Index: test/ELF/arm-copy.s
===================================================================
--- test/ELF/arm-copy.s
+++ test/ELF/arm-copy.s
@@ -78,4 +78,4 @@
 
 // RODATA: Contents of section .rodata:
 // S(z) = 0x13004
-// RODATA-NEXT: 101c1 04300100
+// RODATA-NEXT: 10198 04300100
Index: test/ELF/aarch64-copy.s
===================================================================
--- test/ELF/aarch64-copy.s
+++ test/ELF/aarch64-copy.s
@@ -90,4 +90,4 @@
 
 // RODATA: Contents of section .rodata:
 // S(z) = 0x40014
-// RODATA-NEXT:  102ab 14000400
+// RODATA-NEXT:  10282 14000400


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46730.146243.patch
Type: text/x-patch
Size: 1756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180510/f844c90e/attachment.bin>


More information about the llvm-commits mailing list