[lld] r207437 - [Mips] Rename the test case.

Simon Atanasyan simon at atanasyan.com
Mon Apr 28 12:34:46 PDT 2014


Author: atanasyan
Date: Mon Apr 28 14:34:46 2014
New Revision: 207437

URL: http://llvm.org/viewvc/llvm-project?rev=207437&view=rev
Log:
[Mips] Rename the test case.

Added:
    lld/trunk/test/elf/Mips/rel-copy.test
      - copied, changed from r207436, lld/trunk/test/elf/Mips/rcopy.test
Removed:
    lld/trunk/test/elf/Mips/rcopy.test

Removed: lld/trunk/test/elf/Mips/rcopy.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/rcopy.test?rev=207436&view=auto
==============================================================================
--- lld/trunk/test/elf/Mips/rcopy.test (original)
+++ lld/trunk/test/elf/Mips/rcopy.test (removed)
@@ -1,117 +0,0 @@
-# REQUIRES: mips
-
-# Check R_MIPS_COPY relocation emitting
-# when linking non-shared executable file.
-#
-# RUN: yaml2obj -format=elf %S/Inputs/pic-obj.yaml > %t-so-obj
-# RUN: lld -flavor gnu -target mipsel -shared -o %t-so %t-so-obj
-# RUN: yaml2obj -format=elf %s > %t-obj
-# RUN: lld -flavor gnu -target mipsel -e T0 -o %t1-exe %t-obj %t-so
-# RUN: llvm-readobj -dyn-symbols -relocations %t1-exe | FileCheck %s
-
-# CHECK:      Relocations [
-# CHECK-NEXT:   Section (5) .rel.dyn {
-# CHECK-NEXT:     0x402008 R_MIPS_COPY D1 0x0
-# CHECK-NEXT:     0x402010 R_MIPS_COPY D2 0x0
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]
-
-# CHECK:      DynamicSymbols [
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: @ (0)
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Local (0x0)
-# CHECK-NEXT:     Type: None (0x0)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Undefined (0x0)
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: D1@ (1)
-# CHECK-NEXT:     Value: 0x402008
-# CHECK-NEXT:     Size: 4
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: Object (0x1)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: .bss (0xA)
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: D2@ (4)
-# CHECK-NEXT:     Value: 0x402010
-# CHECK-NEXT:     Size: 4
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: Object (0x1)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: .bss (0xA)
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: D1@ (1)
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 4
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: Object (0x1)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Undefined (0x0)
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: D2@ (4)
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 4
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: Object (0x1)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Undefined (0x0)
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]
-
-!ELF
-FileHeader: !FileHeader
-  Class: ELFCLASS32
-  Data: ELFDATA2LSB
-  Type: ET_REL
-  Machine: EM_MIPS
-  Flags: [EF_MIPS_CPIC]
-
-Sections:
-- Name: .text
-  Type: SHT_PROGBITS
-  Content:  "0000000000000000"
-  AddressAlign: 16
-  Flags: [SHF_EXECINSTR, SHF_ALLOC]
-
-- Name: .data
-  Type: SHT_PROGBITS
-  Content:  "0000000000000000"
-  AddressAlign: 16
-  Flags: [SHF_WRITE, SHF_ALLOC]
-
-- Name: .rel.data
-  Type: SHT_REL
-  Info: .data
-  AddressAlign: 4
-  Relocations:
-    - Offset: 0x00
-      Symbol: D1
-      Type: R_MIPS_HI16
-    - Offset: 0x00
-      Symbol: D1
-      Type: R_MIPS_LO16
-    - Offset: 0x04
-      Symbol: D2
-      Type: R_MIPS_32
-
-Symbols:
-  Global:
-    - Name: T0
-      Section: .text
-      Type: STT_FUNC
-      Value: 0x0
-      Size: 8
-    - Name: D0
-      Section: .data
-      Type: STT_OBJECT
-      Value: 0x0
-      Size: 8
-    - Name: D1
-      Type: STT_OBJECT
-    - Name: D2

Copied: lld/trunk/test/elf/Mips/rel-copy.test (from r207436, lld/trunk/test/elf/Mips/rcopy.test)
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/rel-copy.test?p2=lld/trunk/test/elf/Mips/rel-copy.test&p1=lld/trunk/test/elf/Mips/rcopy.test&r1=207436&r2=207437&rev=207437&view=diff
==============================================================================
    (empty)





More information about the llvm-commits mailing list