[lld] r240261 - [Mips] Fix test case - do not use R_MIPS_HI16 for shared library linking

Simon Atanasyan simon at atanasyan.com
Mon Jun 22 02:26:12 PDT 2015


Author: atanasyan
Date: Mon Jun 22 04:26:12 2015
New Revision: 240261

URL: http://llvm.org/viewvc/llvm-project?rev=240261&view=rev
Log:
[Mips] Fix test case - do not use R_MIPS_HI16 for shared library linking

No functional changes.

Modified:
    lld/trunk/test/elf/Mips/ctors-order.test

Modified: lld/trunk/test/elf/Mips/ctors-order.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/ctors-order.test?rev=240261&r1=240260&r2=240261&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/ctors-order.test (original)
+++ lld/trunk/test/elf/Mips/ctors-order.test Mon Jun 22 04:26:12 2015
@@ -34,7 +34,7 @@
 # CHECK-NEXT:     alignment:       4
 # CHECK-NEXT:     section-choice:  custom-required
 # CHECK-NEXT:     section-name:    .ctors.2
-# CHECK-NEXT:   - ref-name:        L003
+# CHECK-NEXT:   - ref-name:        L004
 # CHECK-NEXT:     type:            data
 # CHECK-NEXT:     alignment:       4
 # CHECK-NEXT:     section-choice:  custom-required
@@ -52,6 +52,7 @@
 
 # RAW:      Contents of section .ctors:
 # RAW-NEXT: 1000 ffffffff 11111111 22222222 00000000
+
 # crtbeginS.o
 ---
 FileHeader:
@@ -100,13 +101,13 @@ Sections:
     Relocations:
       - Offset:          0x00
         Symbol:          .ctors
-        Type:            R_MIPS_HI16
+        Type:            R_MIPS_GOT16
       - Offset:          0x04
         Symbol:          .ctors
         Type:            R_MIPS_LO16
       - Offset:          0x08
         Symbol:          .ctors
-        Type:            R_MIPS_HI16
+        Type:            R_MIPS_GOT16
       - Offset:          0x0C
         Symbol:          .ctors
         Type:            R_MIPS_LO16





More information about the llvm-commits mailing list