[lld] r262158 - Remove the old ELF linker.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 16:11:02 PST 2016


Removed: lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc16.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc16.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc16.test (original)
+++ lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc16.test (removed)
@@ -1,60 +0,0 @@
-# Tests that lld can handle relocations of type R_X86_64_PC16
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t1.o
-#RUN: lld -flavor old-gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static
-#RUN: llvm-objdump -s %t2.out | FileCheck %s
-#CHECK: Contents of section .data:
-#CHECK: 401000 0700
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         '0000'
-  - Name:            .rela.data
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .data
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
-        Type:            R_X86_64_PC16
-        Addend:          5
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            bar
-      Type:            STT_OBJECT
-      Section:         .data
-      Size:            0x0000000000000008
-    - Name:            foo
-      Type:            STT_OBJECT
-      Section:         .data
-      Value:           0x0000000000000002
-      Size:            0x0000000000000002
-...

Removed: lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc64.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc64.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc64.test (original)
+++ lld/trunk/test/old-elf/X86_64/reloc_r_x86_64_pc64.test (removed)
@@ -1,60 +0,0 @@
-# Tests that lld can handle relocations of type R_X86_64_PC64
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t1.o
-#RUN: lld -flavor old-gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static
-#RUN: llvm-objdump -s %t2.out | FileCheck %s
-#CHECK: Contents of section .data:
-#CHECK: 401000 0a00
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         '0000'
-  - Name:            .rela.data
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .data
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
-        Type:            R_X86_64_PC64
-        Addend:          8
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            bar
-      Type:            STT_OBJECT
-      Section:         .data
-      Size:            0x0000000000000008
-    - Name:            foo
-      Type:            STT_OBJECT
-      Section:         .data
-      Value:           0x0000000000000002
-      Size:            0x0000000000000002
-...

Removed: lld/trunk/test/old-elf/X86_64/rodata.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/rodata.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/rodata.test (original)
+++ lld/trunk/test/old-elf/X86_64/rodata.test (removed)
@@ -1,9 +0,0 @@
-# This tests that the ordinals for all merge atoms and defined atoms have been
-# set properly
-
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/rodata.o --noinhibit-exec \
-RUN: --merge-strings -static -o %t1
-RUN: llvm-nm -n %t1 | FileCheck %s
-
-CHECK: {{[0-9a-f]+}} R _nl_default_default_domain
-CHECK: {{[0-9a-f]+}} R _nl_default_default_dirname

Removed: lld/trunk/test/old-elf/X86_64/sectionchoice.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/sectionchoice.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/sectionchoice.test (original)
+++ lld/trunk/test/old-elf/X86_64/sectionchoice.test (removed)
@@ -1,7 +0,0 @@
-# This tests that we are able to properly set the sectionChoice for DefinedAtoms
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/zerosizedsection.o  \
-RUN: --noinhibit-exec -o %t --output-filetype=yaml
-RUN: FileCheck %s < %t
-
-CHECK-NOT: section-choice: sectionCustomRequired
-

Removed: lld/trunk/test/old-elf/X86_64/sectionmap.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/sectionmap.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/sectionmap.test (original)
+++ lld/trunk/test/old-elf/X86_64/sectionmap.test (removed)
@@ -1,22 +0,0 @@
-# This tests that we are able to merge the section .gcc_except_table,
-# .data.rel.local, .data.rel.ro, any other sections that belong to .data
-# into appropriate output sections
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/sectionmap.o  \
-RUN: --noinhibit-exec -o %t
-RUN: llvm-readobj -sections %t | FileCheck %s -check-prefix=VERIFYSECTIONHEADERS
-
-VERIFYSECTIONHEADERS:  Section {
-VERIFYSECTIONHEADERS:    Name: .data
-VERIFYSECTIONHEADERS:  }
-VERIFYSECTIONHEADERS:  Section {
-VERIFYSECTIONHEADERS:    Name: .gcc_except_table
-VERIFYSECTIONHEADERS:  }
-VERIFYSECTIONHEADERS:  Section {
-VERIFYSECTIONHEADERS:    Name: .data.rel.local
-VERIFYSECTIONHEADERS:  }
-VERIFYSECTIONHEADERS:  Section {
-VERIFYSECTIONHEADERS:    Name: .data.rel.ro
-VERIFYSECTIONHEADERS:  }
-VERIFYSECTIONHEADERS:  Section {
-VERIFYSECTIONHEADERS:    Name: .bss
-VERIFYSECTIONHEADERS:  }

Removed: lld/trunk/test/old-elf/X86_64/startGroupEndGroup.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/startGroupEndGroup.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/startGroupEndGroup.test (original)
+++ lld/trunk/test/old-elf/X86_64/startGroupEndGroup.test (removed)
@@ -1,48 +0,0 @@
-# This tests functionality of --start-group, --end-group
-
-# This link should fail with unresolve symbol
-RUN: not lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o \
-RUN:   %p/Inputs/group/libfn.a %p/Inputs/group/libfn1.a -o x 2> %t.err
-
-# Test group
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o --start-group \
-RUN:   %p/Inputs/group/libfn.a %p/Inputs/group/libfn1.a --end-group -o %t1
-
-# Mix object files in group
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o --start-group \
-RUN:   %p/Inputs/group/fn.o %p/Inputs/group/fn2.o \
-RUN:   %p/Inputs/group/fn1.o --end-group -o %t2
-
-# Mix Whole archive input, the group should not iterate the file libfn.a
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o --start-group \
-RUN:   --whole-archive %p/Inputs/group/libfn.a --no-whole-archive \
-RUN:   %p/Inputs/group/libfn1.a --end-group -o %t3
-
-# Defined symbols in a shared library.
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o --start-group \
-RUN:   %p/Inputs/group/libfn2.so %p/Inputs/group/fn1.o %p/Inputs/group/fn.o \
-RUN:   --end-group -o %t4
-
-# Test alias options too, as they are more widely used
-# Test group
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o '-(' \
-RUN:   %p/Inputs/group/libfn.a %p/Inputs/group/libfn1.a '-)' -o %t1.alias
-
-# Mix object files in group
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o '-(' \
-RUN:   %p/Inputs/group/fn.o %p/Inputs/group/fn2.o \
-RUN:   %p/Inputs/group/fn1.o '-)' -o %t2.alias
-
-# Mix Whole archive input, the group should not iterate the file libfn.a
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o '-(' \
-RUN:   --whole-archive %p/Inputs/group/libfn.a --no-whole-archive \
-RUN:   %p/Inputs/group/libfn1.a '-)' -o %t3.alias
-
-RUN: llvm-nm %t1 | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-RUN: llvm-nm %t2 | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-RUN: llvm-nm %t3 | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-RUN: llvm-nm %t1.alias | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-RUN: llvm-nm %t2.alias | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-RUN: llvm-nm %t3.alias | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-
-RESOLVEDEXTERNAL: {{[0-9a-z]+}} T fn2

Removed: lld/trunk/test/old-elf/X86_64/startGroupEndGroupWithDynlib.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/startGroupEndGroupWithDynlib.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/startGroupEndGroupWithDynlib.test (original)
+++ lld/trunk/test/old-elf/X86_64/startGroupEndGroupWithDynlib.test (removed)
@@ -1,10 +0,0 @@
-# This tests functionality of --start-group, --end-group with a dynamic library
-
-# Mix dynamic libraries/object files in group
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/group/1.o --start-group \
-RUN: %p/Inputs/group/libfn.so %p/Inputs/group/fn2.o \
-RUN: %p/Inputs/group/fn1.o --end-group -o %t1
-
-RUN: llvm-nm %t1 | FileCheck -check-prefix=RESOLVEDEXTERNAL %s
-
-RESOLVEDEXTERNAL: {{[0-9a-z]+}} T fn2

Removed: lld/trunk/test/old-elf/X86_64/staticlib-search.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/staticlib-search.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/staticlib-search.test (original)
+++ lld/trunk/test/old-elf/X86_64/staticlib-search.test (removed)
@@ -1,6 +0,0 @@
-# This tests the functionality for finding the static library libfn.a for ELF
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \
-RUN: --noinhibit-exec -static -t 2> %t1
-RUN: FileCheck %s < %t1
-
-CHECK: {{[\/0-9A-Za-z_]+}}libfn.a

Removed: lld/trunk/test/old-elf/X86_64/undef.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/undef.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/undef.test (original)
+++ lld/trunk/test/old-elf/X86_64/undef.test (removed)
@@ -1,18 +0,0 @@
-# This tests the functionality that an undefined symbol thats defined in the
-# commmand line pulls in the required object file from the archive library
-# which is usually the usecase for it
-RUN: lld -flavor old-gnu -target x86_64 -u fn %p/Inputs/libfn.a -o %t --noinhibit-exec
-RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=SYMFROMARCHIVE %s
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/libfn.a -o %t --noinhibit-exec
-RUN: llvm-readobj -symbols %t | FileCheck %s
-
-SYMFROMARCHIVE:  Symbol {
-SYMFROMARCHIVE:    Name: fn ({{[0-9]+}}
-SYMFROMARCHIVE:    Size: 11
-SYMFROMARCHIVE:    Binding: Global (0x1)
-SYMFROMARCHIVE:    Type: Function (0x2)
-SYMFROMARCHIVE:    Other: 0
-SYMFROMARCHIVE:    Section: .text
-SYMFROMARCHIVE:  }
-
-CHECK-NOT: Name: fn

Removed: lld/trunk/test/old-elf/X86_64/underscore-end.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/underscore-end.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/underscore-end.test (original)
+++ lld/trunk/test/old-elf/X86_64/underscore-end.test (removed)
@@ -1,81 +0,0 @@
-# This tests verifies that the value of _end symbol is point to the right value
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/nmagic.o  \
-RUN: --noinhibit-exec -o %t --nmagic
-RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=NMAGICABSSYMBOLS %s
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/nmagic.o  \
-RUN: --noinhibit-exec -o %t --omagic
-RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=OMAGICABSSYMBOLS %s
-
-NMAGICABSSYMBOLS:  Symbol {
-NMAGICABSSYMBOLS:    Name: __bss_start ({{[0-9]+}}
-NMAGICABSSYMBOLS:    Value: 0x40100C
-NMAGICABSSYMBOLS:    Size: 0
-NMAGICABSSYMBOLS:    Binding: Global (0x1)
-NMAGICABSSYMBOLS:    Type: Object (0x1)
-NMAGICABSSYMBOLS:    Other: 0
-NMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-NMAGICABSSYMBOLS:  }
-NMAGICABSSYMBOLS:  Symbol {
-NMAGICABSSYMBOLS:    Name: __bss_end ({{[0-9]+}}
-NMAGICABSSYMBOLS:    Value: 0x40100C
-NMAGICABSSYMBOLS:    Size: 0
-NMAGICABSSYMBOLS:    Binding: Global (0x1)
-NMAGICABSSYMBOLS:    Type: Object (0x1)
-NMAGICABSSYMBOLS:    Other: 0
-NMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-NMAGICABSSYMBOLS:  }
-NMAGICABSSYMBOLS:  Symbol {
-NMAGICABSSYMBOLS:    Name: _end ({{[0-9]+}}
-NMAGICABSSYMBOLS:    Value: 0x40100C
-NMAGICABSSYMBOLS:    Size: 0
-NMAGICABSSYMBOLS:    Binding: Global (0x1)
-NMAGICABSSYMBOLS:    Type: Object (0x1)
-NMAGICABSSYMBOLS:    Other: 0
-NMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-NMAGICABSSYMBOLS:  }
-NMAGICABSSYMBOLS:  Symbol {
-NMAGICABSSYMBOLS:    Name: end ({{[0-9]+}}
-NMAGICABSSYMBOLS:    Value: 0x40100C
-NMAGICABSSYMBOLS:    Size: 0
-NMAGICABSSYMBOLS:    Binding: Global (0x1)
-NMAGICABSSYMBOLS:    Type: Object (0x1)
-NMAGICABSSYMBOLS:    Other: 0
-NMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-NMAGICABSSYMBOLS:  }
-
-OMAGICABSSYMBOLS:  Symbol {
-OMAGICABSSYMBOLS:    Name: __bss_start ({{[0-9]+}})
-OMAGICABSSYMBOLS:    Value: 0x400144
-OMAGICABSSYMBOLS:    Size: 0
-OMAGICABSSYMBOLS:    Binding: Global (0x1)
-OMAGICABSSYMBOLS:    Type: Object (0x1)
-OMAGICABSSYMBOLS:    Other: 0
-OMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-OMAGICABSSYMBOLS:  }
-OMAGICABSSYMBOLS:  Symbol {
-OMAGICABSSYMBOLS:    Name: __bss_end ({{[0-9]+}}
-OMAGICABSSYMBOLS:    Value: 0x400144
-OMAGICABSSYMBOLS:    Size: 0
-OMAGICABSSYMBOLS:    Binding: Global (0x1)
-OMAGICABSSYMBOLS:    Type: Object (0x1)
-OMAGICABSSYMBOLS:    Other: 0
-OMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-OMAGICABSSYMBOLS:  }
-OMAGICABSSYMBOLS:  Symbol {
-OMAGICABSSYMBOLS:    Name: _end ({{[0-9]+}}
-OMAGICABSSYMBOLS:    Value: 0x400144
-OMAGICABSSYMBOLS:    Size: 0
-OMAGICABSSYMBOLS:    Binding: Global (0x1)
-OMAGICABSSYMBOLS:    Type: Object (0x1)
-OMAGICABSSYMBOLS:    Other: 0
-OMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-OMAGICABSSYMBOLS:  }
-OMAGICABSSYMBOLS:  Symbol {
-OMAGICABSSYMBOLS:    Name: end ({{[0-9]+}}
-OMAGICABSSYMBOLS:    Value: 0x400144
-OMAGICABSSYMBOLS:    Size: 0
-OMAGICABSSYMBOLS:    Binding: Global (0x1)
-OMAGICABSSYMBOLS:    Type: Object (0x1)
-OMAGICABSSYMBOLS:    Other: 0
-OMAGICABSSYMBOLS:    Section: Absolute (0xFFF1)
-OMAGICABSSYMBOLS:  }

Removed: lld/trunk/test/old-elf/X86_64/weak-override.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/weak-override.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/weak-override.test (original)
+++ lld/trunk/test/old-elf/X86_64/weak-override.test (removed)
@@ -1,45 +0,0 @@
-# Test for weak symbol getting overridden
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/weak.o %p/Inputs/ovrd.o \
-RUN:    -o %t --noinhibit-exec
-RUN: llvm-nm %t | FileCheck -check-prefix=WEAKORDER %s
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/weak.o \
-RUN:   %p/Inputs/ovrd.o -o %t2 --output-filetype=yaml --noinhibit-exec
-RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2
-
-WEAKORDER: {{[0-9a-c]+}} T f
-
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          fn
-WEAKATOMSORDER:  - name:            fn
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          [[CONSTSTRA:[-a-zA-Z0-9_]+]]
-WEAKATOMSORDER:  - ref-name:        [[CONSTSTRA]]
-WEAKATOMSORDER:    scope:           global
-WEAKATOMSORDER:    content:         [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00,
-WEAKATOMSORDER:                       00, 00, 5D, C3 ]
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          main
-WEAKATOMSORDER:  - name:            main
-WEAKATOMSORDER:    scope:           global
-WEAKATOMSORDER:    content:         [ 55, 48, 89, E5, B8, 00, 00, 00, 00, E8, 00, 00,
-WEAKATOMSORDER:                       00, 00, B8, 00, 00, 00, 00, 5D, C3 ]
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            R_X86_64_PC32
-WEAKATOMSORDER:        offset:          10
-WEAKATOMSORDER:        target:          f
-WEAKATOMSORDER:        addend:          -4
-WEAKATOMSORDER:  - ref-name:            {{[0-9A-Z]+}}
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          f
-WEAKATOMSORDER:  - name:            f
-WEAKATOMSORDER:    scope:           global
-WEAKATOMSORDER:    content:         [ 55, 48, 89, E5, BF, 00, 00, 00, 00, E8, 00, 00,
-WEAKATOMSORDER:                       00, 00, 5D, C3 ]

Removed: lld/trunk/test/old-elf/X86_64/weak-zero-sized.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/weak-zero-sized.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/weak-zero-sized.test (original)
+++ lld/trunk/test/old-elf/X86_64/weak-zero-sized.test (removed)
@@ -1,26 +0,0 @@
-# Test for zero sized weak atoms, there is only a single weak atom
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/weak-zero-sized.o -o %t \
-RUN:   --noinhibit-exec
-RUN: llvm-nm %t | FileCheck -check-prefix=WEAKORDER %s
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/weak-zero-sized.o \
-RUN:    --output-filetype=yaml -o %t2 --noinhibit-exec
-RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2
-
-WEAKORDER: 004001a4 T _start
-
-WEAKATOMSORDER:    alignment:       4
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          [[TARGETC:[-a-zA-Z0-9_]+]]
-WEAKATOMSORDER:  - name:        [[TARGETA:[-a-zA-Z0-9_]+]]
-WEAKATOMSORDER:    scope:           global
-WEAKATOMSORDER:    merge:           as-weak
-WEAKATOMSORDER:    alignment:       4
-WEAKATOMSORDER:    references:
-WEAKATOMSORDER:      - kind:            layout-after
-WEAKATOMSORDER:        offset:          0
-WEAKATOMSORDER:        target:          [[TARGETC]]
-WEAKATOMSORDER:  - ref-name:        [[TARGETC]]
-WEAKATOMSORDER:    scope:           global
-WEAKATOMSORDER:    content:         [ C3 ]
-WEAKATOMSORDER:    alignment:       4

Removed: lld/trunk/test/old-elf/X86_64/weaksym.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/weaksym.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/weaksym.test (original)
+++ lld/trunk/test/old-elf/X86_64/weaksym.test (removed)
@@ -1,77 +0,0 @@
-# Tests that an executable with a weak undefine will put this symbol in the
-# dynamic symbol table if the executable has a dynamic relocation against this
-# symbol.
-
-#RUN: yaml2obj --format elf %s -o %t.o
-#RUN: lld -flavor old-gnu  -target x86_64 -e main %t.o -o %t1
-#RUN: llvm-readobj -dt %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-#CHECKSYMS:        Name: x@
-#CHECKSYMS-NEXT:   Value: 0x0
-#CHECKSYMS-NEXT:   Size: 0
-#CHECKSYMS-NEXT:   Binding: Weak (0x2)
-#CHECKSYMS-NEXT:   Type: None (0x0)
-#CHECKSYMS-NEXT:   Other: 0
-#CHECKSYMS-NEXT:   Section: Undefined (0x0)
-
-# The object file above corresponds to the following C program compiled with
-# -fPIC:
-# extern int *x __attribute__((weak));
-#
-# int main() {
-#     if (x)
-#         return 1;
-#     return 0;
-# }
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E5488B0500000000C745FC00000000488138000000000F840C000000C745FC01000000E907000000C745FC000000008B45FC5DC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000007
-        Symbol:          x
-        Type:            R_X86_64_GOTPCREL
-        Addend:          -4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000037
-    - Name:            _GLOBAL_OFFSET_TABLE_
-  Weak:
-    - Name:            x

Removed: lld/trunk/test/old-elf/X86_64/yamlinput.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/yamlinput.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/X86_64/yamlinput.test (original)
+++ lld/trunk/test/old-elf/X86_64/yamlinput.test (removed)
@@ -1,166 +0,0 @@
-# This tests the functionality that lld is able to read
-# an input YAML from a previous link
-
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/initfini.o \
-RUN: --noinhibit-exec --output-filetype=yaml -o %t.objtxt
-RUN: lld -flavor old-gnu -target x86_64-linux %t.objtxt \
-RUN: --noinhibit-exec -o %t1
-RUN: llvm-readobj -sections %t1 | FileCheck %s -check-prefix=SECTIONS
-
-SECTIONS:   Section {
-SECTIONS:     Index: 0
-SECTIONS:     Name:  (0)
-SECTIONS:     Type: SHT_NULL (0x0)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 1
-SECTIONS:     Name: .interp
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 2
-SECTIONS:     Name: .hash
-SECTIONS:     Type: SHT_HASH (0x5)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 3
-SECTIONS:     Name: .dynsym
-SECTIONS:     Type: SHT_DYNSYM (0xB)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 4
-SECTIONS:     Name: .dynstr
-SECTIONS:     Type: SHT_STRTAB (0x3)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 5
-SECTIONS:     Name: .text
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x6)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_EXECINSTR (0x4)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 6
-SECTIONS:     Name: .rodata
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 7
-SECTIONS:     Name: .eh_frame
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x2)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 8
-SECTIONS:     Name: .eh_frame_hdr
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 9
-SECTIONS:     Name: .init_array
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 10
-SECTIONS:     Name: .fini_array
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 11
-SECTIONS:     Name: .dynamic
-SECTIONS:     Type: SHT_DYNAMIC (0x6)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 12
-SECTIONS:     Name: .got.plt
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 13
-SECTIONS:     Name: .data
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 14
-SECTIONS:     Name: .bss
-SECTIONS:     Type: SHT_NOBITS (0x8)
-SECTIONS:     Flags [ (0x3)
-SECTIONS:       SHF_ALLOC (0x2)
-SECTIONS:       SHF_WRITE (0x1)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 15
-SECTIONS:     Name: .comment
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 16
-SECTIONS:     Name: .note.GNU-stack
-SECTIONS:     Type: SHT_PROGBITS (0x1)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 17
-SECTIONS:     Name: .shstrtab
-SECTIONS:     Type: SHT_STRTAB (0x3)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 18
-SECTIONS:     Name: .symtab
-SECTIONS:     Type: SHT_SYMTAB (0x2)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }
-SECTIONS:   Section {
-SECTIONS:     Index: 19
-SECTIONS:     Name: .strtab
-SECTIONS:     Type: SHT_STRTAB (0x3)
-SECTIONS:     Flags [ (0x0)
-SECTIONS:     ]
-SECTIONS:   }

Removed: lld/trunk/test/old-elf/abs-dup.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/abs-dup.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/abs-dup.objtxt (original)
+++ lld/trunk/test/old-elf/abs-dup.objtxt (removed)
@@ -1,19 +0,0 @@
-# Tests handling an absolute symbol with no name
-# RUN: lld -flavor old-gnu -target x86_64 -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-absolute-atoms:
-  - name:            abs
-    scope:           static
-    value:           0x10
-  - name:            ''
-    scope:           static
-    value:           0x15
-
-# CHECK: absolute-atoms:
-# CHECK:   - name:            abs
-# CHECK:     scope:           static
-# CHECK:     value:           0x0000000000000010
-# CHECK:   - name:            ''
-# CHECK:     scope:           static
-# CHECK:     value:           0x0000000000000015

Removed: lld/trunk/test/old-elf/abs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/abs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/abs.test (original)
+++ lld/trunk/test/old-elf/abs.test (removed)
@@ -1,19 +0,0 @@
-#
-# Source File:
-#  .local absGlobalSymbol
-#  .set absLocalSymbol,0xC0000
-#  .type absLocalSymbol, @object
-#  .globl absGlobalSymbol
-#  .set absGlobalSymbol,0xD0000
-#  .type absGlobalSymbol, @object
-
-# built using: "gcc -m32"
-#
-RUN: lld -flavor old-gnu -target i386 --output-filetype=yaml -r %p/Inputs/abs-test.i386 | FileCheck -check-prefix=YAML %s
-
-YAML:  absolute-atoms:
-YAML:    - name:              absLocalSymbol
-YAML:      value:             {{0x[0]+C0000}}
-YAML:    - name:              absGlobalSymbol
-YAML:      scope:             global
-YAML:      value:             {{0x[0]+D0000}}

Removed: lld/trunk/test/old-elf/allowduplicates.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/allowduplicates.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/allowduplicates.objtxt (original)
+++ lld/trunk/test/old-elf/allowduplicates.objtxt (removed)
@@ -1,41 +0,0 @@
-# RUN: lld -flavor old-gnu -target x86_64 --allow-multiple-definition %s \
-# RUN:     %p/Inputs/allowduplicates.objtxt \
-# RUN:     --output-filetype=yaml --noinhibit-exec | FileCheck %s
-#
-# RUN: not lld -flavor old-gnu -target x86_64 %s %p/Inputs/allowduplicates.objtxt \
-# RUN: --output-filetype=yaml \
-# RUN: --noinhibit-exec 2>&1 | FileCheck -check-prefix=ERROR %s
-#
-# RUN: lld -flavor old-gnu -target x86_64 -z muldefs %s \
-# RUN: %p/Inputs/allowduplicates.objtxt \
-# RUN: --noinhibit-exec --output-filetype=yaml | FileCheck %s
-
----
-defined-atoms:
-  - name:            .text
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-  - name:            main
-    scope:           global
-    content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
-                       00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
----
-
-# CHECK: defined-atoms:
-# CHECK:   - name:            .text
-# CHECK:     alignment:       16
-# CHECK:     section-choice:  custom-required
-# CHECK:     section-name:    .text
-# CHECK:   - name:            main
-# CHECK:     scope:           global
-# CHECK:     content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
-# CHECK:                        00, C3 ]
-# CHECK:     alignment:       16
-# CHECK:     section-choice:  custom-required
-# CHECK:     section-name:    .text
-
-# ERROR: duplicate symbol error

Removed: lld/trunk/test/old-elf/archive-elf-forceload.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/archive-elf-forceload.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/archive-elf-forceload.test (original)
+++ lld/trunk/test/old-elf/archive-elf-forceload.test (removed)
@@ -1,43 +0,0 @@
-# Tests the functionality of archive libraries reading
-# and resolution
-# Note: The binary files would not be required once we have support to generate
-# binary archives from textual(yaml) input
-#
-# Tests generated using the source files below
-# main file
-# int main()
-# {
-#   fn();
-#   return 0;
-# }
-#
-# archive file
-# int fn()
-# {
-#   return 0;
-# }
-#
-# int fn1()
-# {
-#   return 0;
-# }
-# gcc -c main.c fn.c fn1.c
-
-RUN: lld -flavor old-gnu -target x86_64-linux -e main %p/Inputs/mainobj.x86_64 \
-RUN:  --whole-archive %p/Inputs/libfnarchive.a --no-whole-archive --output-filetype=yaml \
-RUN:  | FileCheck -check-prefix FORCELOAD %s
-
-FORCELOAD:  defined-atoms:
-FORCELOAD:    - name:              fn1
-FORCELOAD:      scope:             global
-FORCELOAD:      content:           [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ]
-FORCELOAD:    - name:              fn
-FORCELOAD:      scope:             global
-FORCELOAD:      content:           [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ]
-FORCELOAD:  absolute-atoms:
-FORCELOAD:    - name:              main.c
-FORCELOAD:      value:             0x0
-FORCELOAD:    - name:              fn1.c
-FORCELOAD:      value:             0x0
-FORCELOAD:    - name:              fn.c
-FORCELOAD:      value:             0x0

Removed: lld/trunk/test/old-elf/archive-elf.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/archive-elf.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/archive-elf.test (original)
+++ lld/trunk/test/old-elf/archive-elf.test (removed)
@@ -1,38 +0,0 @@
-# Tests the functionality of archive libraries reading
-# and resolution
-# Note: The binary files would not be required once we have support to generate
-# binary archives from textual(yaml) input
-#
-# Tests generated using the source files below
-# main file
-# int main()
-# {
-#   fn();
-#   return 0;
-# }
-#
-# archive file
-# int fn()
-# {
-#   return 0;
-# }
-#
-# int fn1()
-# {
-#   return 0;
-# }
-# gcc -c main.c fn.c fn1.c
-
-RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml -r \
-RUN:   %p/Inputs/mainobj.x86_64 %p/Inputs/libfnarchive.a | \
-RUN:   FileCheck -check-prefix NOFORCELOAD %s
-
-NOFORCELOAD:  defined-atoms:
-NOFORCELOAD:    - name:              fn
-NOFORCELOAD:      scope:             global
-NOFORCELOAD:      content:           [ 55, 48, 89, E5, B8, 00, 00, 00, 00, 5D, C3 ]
-NOFORCELOAD:  absolute-atoms:
-NOFORCELOAD:    - name:              main.c
-NOFORCELOAD:      value:             0x0
-NOFORCELOAD:    - name:              fn.c
-NOFORCELOAD:      value:             0x0

Removed: lld/trunk/test/old-elf/as-needed.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/as-needed.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/as-needed.test (original)
+++ lld/trunk/test/old-elf/as-needed.test (removed)
@@ -1,15 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \
-RUN:   --as-needed %p/Inputs/shared.so-x86-64 %p/Inputs/libifunc.x86-64.so \
-RUN:   -o %t1 -e main --allow-shlib-undefined
-RUN: llvm-readobj -dynamic-table %t1 | FileCheck %s -check-prefix AS_NEEDED
-
-AS_NEEDED: NEEDED SharedLibrary (shared.so-x86-64)
-AS_NEEDED-NOT: NEEDED SharedLibrary (libifunc.x86-64.so)
-
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 %p/Inputs/libifunc.x86-64.so \
-RUN:   -o %t2 -e main --allow-shlib-undefined
-RUN: llvm-readobj -dynamic-table %t2 | FileCheck %s -check-prefix NO_AS_NEEDED
-
-NO_AS_NEEDED: NEEDED SharedLibrary (shared.so-x86-64)
-NO_AS_NEEDED: NEEDED SharedLibrary (libifunc.x86-64.so)

Removed: lld/trunk/test/old-elf/branch.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/branch.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/branch.test (original)
+++ lld/trunk/test/old-elf/branch.test (removed)
@@ -1,34 +0,0 @@
-RUN: lld -flavor old-gnu -target hexagon -static --output-filetype=yaml \
-RUN: %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon --noinhibit-exec | FileCheck %s -check-prefix hexagon-yaml
-RUN: lld -flavor old-gnu -target hexagon -e target -o %t1 \
-RUN: %p/Inputs/branch-test.hexagon %p/Inputs/target-test.hexagon --noinhibit-exec
-RUN: llvm-readobj -h %t1 |  FileCheck -check-prefix=hexagon-readobj %s
-
-hexagon-yaml:    - name:              back
-hexagon-yaml:      scope:             global
-hexagon-yaml:      content:           [ 00, C0, 00, 7F, 00, C0, 00, 5A, 00, 00, 00, 00,
-hexagon-yaml:                           00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ]
-hexagon-yaml:      references:
-hexagon-yaml:       - kind:
-hexagon-yaml:         offset:            4
-hexagon-yaml:         target:            target
-
-hexagon-yaml:    - name:              target
-hexagon-yaml:      scope:             global
-hexagon-yaml:      content:           [ 00, C0, 00, 5A ]
-hexagon-yaml:      references:
-hexagon-yaml:      - kind:
-hexagon-yaml:        offset:            0
-hexagon-yaml:        target:            back
-
-
-hexagon-readobj: ElfHeader {
-hexagon-readobj:   Ident {
-hexagon-readobj:     Class: 32-bit (0x1)
-hexagon-readobj:     DataEncoding: LittleEndian (0x1)
-hexagon-readobj:     FileVersion: 1
-hexagon-readobj:     OS/ABI: SystemV (0x0)
-hexagon-readobj:     ABIVersion: 0
-hexagon-readobj:   }
-hexagon-readobj:   Type: Executable (0x2)
-hexagon-readobj:   Machine: EM_HEXAGON (0xA4)

Removed: lld/trunk/test/old-elf/check.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/check.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/check.test (original)
+++ lld/trunk/test/old-elf/check.test (removed)
@@ -1,39 +0,0 @@
-# This tests the basic functionality of ordering data and functions as they
-# appear in the inputs
-RUN: lld -flavor old-gnu -target i386 -e global_func --noinhibit-exec --output-filetype=yaml \
-RUN:    %p/Inputs/object-test.elf-i386  -o %t
-RUN: FileCheck %s -check-prefix ELF-i386 < %t
-RUN: lld -flavor old-gnu -target hexagon -e global_func --noinhibit-exec --output-filetype=yaml \
-RUN:    %p/Inputs/object-test.elf-hexagon -o %t1
-RUN: FileCheck %s -check-prefix ELF-hexagon < %t1
-
-ELF-i386: defined-atoms:
-ELF-i386:   - name:            global_func
-ELF-i386:   - name:            static_func
-ELF-i386:   - name:            weak_func
-ELF-i386:   - name:            hidden_func
-ELF-i386:   - name:            no_dead_strip
-ELF-i386:   - name:            no_special_section_func
-ELF-i386:   - name:            global_variable
-ELF-i386:   - name:            uninitialized_static_variable
-ELF-i386:   - name:            special_section_func
-ELF-i386: undefined-atoms:
-ELF-i386:   - name:            puts
-ELF-i386: absolute-atoms:
-ELF-i386:   - name:            sample.c
-
-ELF-hexagon:   - name:            global_func
-ELF-hexagon:   - name:            static_func
-ELF-hexagon:   - name:            weak_func
-ELF-hexagon:   - name:            hidden_func
-ELF-hexagon:   - name:            no_dead_strip
-ELF-hexagon:   - name:            no_special_section_func
-ELF-hexagon:   - name:            global_variable
-ELF-hexagon:   - name:            uninitialized_static_variable
-ELF-hexagon:   - name:            special_section_func
-ELF-hexagon: undefined-atoms:
-ELF-hexagon:   - name:            puts
-ELF-hexagon: absolute-atoms:
-ELF-hexagon:   - name:            sample.c
-ELF-hexagon:     scope:           static
-ELF-hexagon:     value:           0x0000000000000000

Removed: lld/trunk/test/old-elf/checkrodata.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/checkrodata.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/checkrodata.test (original)
+++ lld/trunk/test/old-elf/checkrodata.test (removed)
@@ -1,9 +0,0 @@
-
-RUN: lld -flavor old-gnu -target i386 -o %t1 %p/Inputs/rodata-test.i386 --noinhibit-exec
-RUN: llvm-objdump -section-headers %t1 |  FileCheck -check-prefix=i386 %s
-RUN: lld -flavor old-gnu -target hexagon -o %t2 %p/Inputs/rodata-test.hexagon --noinhibit-exec
-RUN: llvm-objdump -section-headers %t2 |  FileCheck -check-prefix=hexagon %s
-
-i386:  .rodata       00000004 0000000000000114 DATA
-
-hexagon:  .rodata       00000004 0000000000000114 DATA

Removed: lld/trunk/test/old-elf/common.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/common.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/common.test (original)
+++ lld/trunk/test/old-elf/common.test (removed)
@@ -1,10 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64-linux -o %t %p/Inputs/relocs.x86-64 \
-RUN:  -e _start -static
-RUN: llvm-readobj -t %t | FileCheck %s
-
-CHECK:        Symbol {
-CHECK:          Name: i
-CHECK-NEXT:     Value:
-CHECK-NEXT:     Size:
-CHECK-NEXT:     Binding:
-CHECK-NEXT:     Type: Object

Removed: lld/trunk/test/old-elf/consecutive-weak-sym-defs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/consecutive-weak-sym-defs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/consecutive-weak-sym-defs.test (original)
+++ lld/trunk/test/old-elf/consecutive-weak-sym-defs.test (removed)
@@ -1,81 +0,0 @@
-#Tests that multiple consecutive weak symbol definitions do not confuse the
-#ELF reader. For example:
-#
-# my_weak_func1:
-# my_weak_func2:
-# my_weak_func3:
-#   code
-#
-#If my_weak_func2 is merged to other definition, this should not disturb the
-#definition my_weak_func1 to "code".
-#
-#
-#RUN: yaml2obj -format=elf %p/Inputs/consecutive-weak-defs.o.yaml -o=%t1.o
-#RUN: yaml2obj -format=elf %p/Inputs/main-with-global-def.o.yaml -o=%t2.o
-#RUN: lld -flavor old-gnu -target x86_64 %t1.o %t2.o -e=main -o %t1
-#RUN: obj2yaml %t1 | FileCheck -check-prefix CHECKLAYOUT %s
-#
-# Check that the layout has not been changed:
-#
-#CHECKLAYOUT:       Name: .text
-#CHECKLAYOUT-NEXT:  Type:
-#CHECKLAYOUT-NEXT:  Flags:
-#CHECKLAYOUT-NEXT:  Address:
-#CHECKLAYOUT-NEXT:  AddressAlign:
-#CHECKLAYOUT-NEXT:  Content: 554889E5E8020000005DC3554889E5B8640000005DC3
-#                            ^~~> my_func          ^~~> my_weak_func
-#
-#
-#
-#Our two input files were produced by the following code:
-#
-#Inputs/consecutive-weak-defs.o.yaml (this one is in assembly to allow us to
-#                                     easily define multiple labels)
-#
-#         .text
-#         .globl  my_func
-#         .type   my_func, at function
-# my_func:
-#         pushq   %rbp
-#         movq    %rsp, %rbp
-#         callq   my_weak_func
-#         popq    %rbp
-#         retq
-# .Ltmp0:
-#         .size   my_func, .Ltmp0-my_func
-#
-#         .text
-#         .weak   my_weak_func
-#         .type   my_weak_func, at function
-#         .weak   my_weak_func2
-#         .type   my_weak_func2, at function
-#         .weak   my_weak_func3
-#         .type   my_weak_func3, at function
-# my_weak_func:
-# my_weak_func2:
-# my_weak_func3:
-#         pushq   %rbp
-#         movq    %rsp, %rbp
-#         movl    $100, %eax
-#         popq    %rbp
-#         retq
-# .Ltmp1:
-#         .size   my_weak_func, .Ltmp1-my_weak_func
-#         .size   my_weak_func2, .Ltmp1-my_weak_func2
-#         .size   my_weak_func3, .Ltmp1-my_weak_func3
-#
-#Inputs/main-with-global-def.o.yaml:
-#
-# int my_func();
-#
-# int my_weak_func2() {
-#     return 200;
-# }
-#
-# int main() {
-#     return my_func();
-# }
-#
-#-------------------------------------------------------------------------------
-# The net effect is that this program should return 100.
-

Removed: lld/trunk/test/old-elf/defsym.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/defsym.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/defsym.objtxt (original)
+++ lld/trunk/test/old-elf/defsym.objtxt (removed)
@@ -1,31 +0,0 @@
-# RUN: lld -flavor old-gnu -target x86_64 --defsym=foo=0x1234 -r %s \
-# RUN:     --output-filetype=yaml | FileCheck -check-prefix=ABS %s
-
-# RUN: lld -flavor old-gnu -target x86_64 --defsym=foo=main -r %s \
-# RUN:     --output-filetype=yaml | FileCheck -check-prefix=ALIAS %s
-
-# RUN: lld -flavor old-gnu -target x86_64 --defsym foo=main -r %s \
-# RUN:     --output-filetype=yaml | FileCheck -check-prefix=ALIAS %s
-
-defined-atoms:
-  - name:            main
-    scope:           global
-    content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-
-# ABS: absolute-atoms:
-# ABS:   - name:            foo
-# ABS:     scope:           global
-# ABS:     value:           0x0000000000001234
-
-# ALIAS: defined-atoms:
-# ALIAS:   - name:            foo
-# ALIAS:     scope:           global
-# ALIAS:     section-choice:  custom-required
-# ALIAS:     section-name:    .text
-# ALIAS:     references:
-# ALIAS:       - kind:            layout-after
-# ALIAS:         offset:          0
-# ALIAS:         target:          main

Removed: lld/trunk/test/old-elf/discard-all.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/discard-all.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/discard-all.test (original)
+++ lld/trunk/test/old-elf/discard-all.test (removed)
@@ -1,88 +0,0 @@
-# Test that -x/--discard all works.
-#
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -e=main -x -o %t1
-#RUN: llvm-objdump -t %t1 | FileCheck %s
-
-#CHECK-NOT: 0000000000400210 l F .text 00000009 local
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E54883EC10C745FC00000000E81C000000B9000000008945F889C84883C4105DC36666662E0F1F840000000000554889E58B45FC5DC3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         004672656542534420636C616E672076657273696F6E20332E342E312028746167732F52454C454153455F33342F646F74312D66696E616C203230383033322920323031343035313200
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000017A5200017810011B0C070890010000180000001C000000000000002400000000410E108602430D060000001800000038000000000000000900000000410E108602430D06000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-      - Offset:          0x000000000000003C
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-        Addend:          48
-Symbols:
-  Local:
-    - Name:            local
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000030
-      Size:            0x0000000000000009
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000024
-...

Removed: lld/trunk/test/old-elf/discard-locals.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/discard-locals.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/discard-locals.test (original)
+++ lld/trunk/test/old-elf/discard-locals.test (removed)
@@ -1,65 +0,0 @@
-# Test that -X/--discard-locals works.
-#
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -shared -X -o %t1
-#RUN: llvm-objdump -t %t1 | FileCheck %s
-
-#CHECK-NOT: 0000000000400121 l .rodata 00000000 .Lsym8
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         00000000F20F100D00000000C3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .rodata.str1.1
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000008
-        Symbol:          .Lsym8
-        Type:            R_X86_64_PC32
-        Addend:          -4
-Symbols:
-  Local:
-    - Name:            .Lsym8
-      Section:         .rodata.str1.1
-    - Name:            test
-      Section:         .text
-      Value:           0x000000000000000C
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .rodata.str1.1
-      Type:            STT_SECTION
-      Section:         .rodata.str1.1
-...

Removed: lld/trunk/test/old-elf/dynamic-segorder.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/dynamic-segorder.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/dynamic-segorder.test (original)
+++ lld/trunk/test/old-elf/dynamic-segorder.test (removed)
@@ -1,17 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t -e main --allow-shlib-undefined \
-RUN:   --defsym=__tls_get_addr=0
-RUN: llvm-objdump -p %t | FileCheck %s
-
-CHECK: PHDR
-CHECK: flags r-x
-CHECK: INTERP
-CHECK: flags r--
-CHECK: LOAD
-CHECK: flags r-x
-CHECK: LOAD
-CHECK: flags rw-
-CHECK: DYNAMIC
-CHECK: flags rw-
-CHECK: TLS
-CHECK: flags rw-

Removed: lld/trunk/test/old-elf/dynamic-undef.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/dynamic-undef.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/dynamic-undef.test (original)
+++ lld/trunk/test/old-elf/dynamic-undef.test (removed)
@@ -1,38 +0,0 @@
-#
-# This test creates a executable and tests the options that are used to
-# to create an executable and a shared library
-#
-# This test will fail because there are unresolved symbols from the shared
-# library and we are passing --no-allow-shlib-undefined
-RUN: not lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t -e main --no-allow-shlib-undefined 2> %t1
-RUN: FileCheck -check-prefix=EXEC %s < %t1
-# This test will pass because of --allow-shlib-undefined
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t -e main --allow-shlib-undefined \
-RUN:   --defsym=__tls_get_addr=0
-# This test will pass becase --allow-shlib-undefined is the default.
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t -e main \
-RUN:   --defsym=__tls_get_addr=0
-# Building shared libraries should not fail when there is a undefined symbol.
-# Test creation of shared library, this should pass because we are using
-# shared option and by default, dynamic library wouldn't create undefined atoms
-# from the input shared library
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t.usenoundefines -e main -shared
-RUN: llvm-readobj -symbols %t.usenoundefines | FileCheck %s -check-prefix=SHLIB-NOUNDEF
-# Test creation of shared library, this should fail because we are using
-# shared option setting the options to use the shared library undefines to
-# create undefined atoms from the input shared library
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t.useundefines -e main -shared \
-RUN: --use-shlib-undefines --no-allow-shlib-undefined  2> %t2
-RUN: llvm-readobj -symbols %t.useundefines | FileCheck -check-prefix=SHLIB-UNDEF-SYMBOLS %s
-
-EXEC: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: puts
-SHLIB: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: puts
-EXEC-NOT: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: weakfoo
-SHLIB-NOT: Undefined symbol: {{.+[\\/]}}shared.so-x86-64: weakfoo
-SHLIB-NOUNDEF-NOT: Name: puts
-SHLIB-UNDEF-SYMBOLS: Name: puts

Removed: lld/trunk/test/old-elf/dynamic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/dynamic.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/dynamic.test (original)
+++ lld/trunk/test/old-elf/dynamic.test (removed)
@@ -1,80 +0,0 @@
-# Checks functionality of dynamic executables
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 -o %t -e main --allow-shlib-undefined \
-RUN:   -rpath /l1:/l2 -rpath /l3
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 --output-filetype=yaml -o %t2 --allow-shlib-undefined \
-RUN: --noinhibit-exec
-RUN: llvm-objdump -p %t >> %t2
-RUN: llvm-readobj -s -dyn-symbols -dynamic-table %t >> %t2
-RUN: FileCheck %s < %t2
-
-CHECK: name: main
-CHECK: kind: R_X86_64_PC32
-CHECK:  offset: 18
-CHECK:  target: [[PLTNAME:[-a-zA-Z0-9_]+]]
-
-CHECK: name: [[PLTNAME]]
-CHECK: type: stub
-
-CHECK: type: got
-CHECK: references:
-CHECK:   kind: R_X86_64_JUMP_SLOT
-
-CHECK: shared-library-atoms:
-CHECK:  name: foo
-CHECK:  load-name: shared.so-x86-64
-
-CHECK: PHDR off 0x{{0+}}40
-CHECK: INTERP
-CHECK: flags r--
-
-CHECK:        Section {
-CHECK:          Name: .hash
-CHECK-NEXT:     Type: SHT_HASH
-CHECK-NEXT:     Flags [
-CHECK-NEXT:       SHF_ALLOC
-CHECK-NEXT:     ]
-CHECK-NEXT:     Address:
-CHECK-NEXT:     Offset:
-CHECK-NEXT:     Size: 32
-CHECK-NEXT:     Link:
-CHECK-NEXT:     Info:
-CHECK-NEXT:     AddressAlignment: 8
-CHECK-NEXT:     EntrySize:
-CHECK-NEXT:   }
-
-CHECK:      DynamicSymbols [
-CHECK:        Symbol {
-CHECK:          Name: foo
-CHECK-NEXT:     Value: 0
-CHECK-NEXT:     Size:
-CHECK-NEXT:     Binding: Global
-CHECK-NEXT:     Type: Function
-CHECK:        }
-CHECK:        Symbol {
-CHECK:          Name: i
-CHECK-NEXT:     Value: 0
-CHECK-NEXT:     Size:
-CHECK-NEXT:     Binding: Global
-CHECK-NEXT:     Type: Object
-CHECK:        }
-
-CHECK: DynamicSection [ (15 entries)
-CHECK:   Tag                Type                 Name/Value
-CHECK:   0x0000000000000004 HASH
-CHECK:   0x0000000000000005 STRTAB
-CHECK:   0x0000000000000006 SYMTAB
-CHECK:   0x000000000000000A STRSZ
-CHECK:   0x000000000000000B SYMENT 24
-CHECK:   0x0000000000000007 RELA
-CHECK:   0x0000000000000008 RELASZ 24
-CHECK:   0x0000000000000009 RELAENT 24
-CHECK:   0x0000000000000002 PLTRELSZ 24
-CHECK:   0x0000000000000003 PLTGOT
-CHECK:   0x0000000000000014 PLTREL RELA
-CHECK:   0x0000000000000017 JMPREL
-CHECK:   0x0000000000000001 NEEDED SharedLibrary (shared.so-x86-64)
-CHECK:   0x000000000000000F RPATH /l1:/l2:/l3
-CHECK:   0x0000000000000000 NULL               0x0
-CHECK: ]

Removed: lld/trunk/test/old-elf/eh_frame_hdr.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/eh_frame_hdr.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/eh_frame_hdr.test (original)
+++ lld/trunk/test/old-elf/eh_frame_hdr.test (removed)
@@ -1,30 +0,0 @@
-#RUN: yaml2obj -format=elf %s > %t
-#RUN: lld -flavor old-gnu -target x86_64-linux %t --noinhibit-exec \
-#RUN:   -o %t1
-#RUN: llvm-objdump -s %t1 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class: ELFCLASS64
-  Data: ELFDATA2LSB
-  Type: ET_REL
-  Machine: EM_X86_64
-
-Sections:
-- Name: .eh_frame
-  Type: SHT_PROGBITS
-  Content: "00"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC]
-
-Symbols:
-  Local:
-  - Name: .eh_frame
-    Type: STT_SECTION
-    Section: .eh_frame
-
-# CHECK:      Contents of section .eh_frame:
-# CHECK-NEXT:  4001e0 00
-# CHECK-NEXT: Contents of section .eh_frame_hdr:
-# CHECK-NEXT:  4001e8 011bffff f4ffffff
-#                              ^ 0x4001e0 - 0x4001e8 - 4 = 0xfffffff4

Removed: lld/trunk/test/old-elf/entry.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/entry.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/entry.objtxt (original)
+++ lld/trunk/test/old-elf/entry.objtxt (removed)
@@ -1,58 +0,0 @@
-# Tests entry point handling
-#
-# Test generated using the source file below:
-#
-#  int main()
-#  {
-#    return 0;
-#  }
-#
-
-# RUN: lld -flavor old-gnu -target x86_64 %s -e _entrypoint --noinhibit-exec -o %t1
-# RUN: llvm-nm -n %t1 | FileCheck %s
-#
-# CHECK:           U _entrypoint
-# CHECK:  004001e0 T main
-# CHECK:  00401000 D _DYNAMIC
-# CHECK:  00401060 A _end
-# CHECK:  00401060 A end
-
-defined-atoms:
-  - name:            .text
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-  - name:            main
-    scope:           global
-    content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
-                       00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-  - name:            .data
-    type:            data
-    alignment:       4
-    section-choice:  custom-required
-    section-name:    .data
-  - name:            .bss
-    type:            zero-fill
-    alignment:       4
-    section-choice:  custom-required
-    section-name:    .bss
-  - name:            .note.GNU-stack
-    section-choice:  custom-required
-    section-name:    .note.GNU-stack
-    permissions:     r--
-  - name:            .eh_frame
-    content:         [ 14, 00, 00, 00, 00, 00, 00, 00, 01, 7A, 52, 00,
-                       01, 78, 10, 01, 1B, 0C, 07, 08, 90, 01, 00, 00,
-                       14, 00, 00, 00, 1C, 00, 00, 00, 00, 00, 00, 00,
-                       0E, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ]
-    alignment:       8
-    section-choice:  custom-required
-    section-name:    .eh_frame
-    permissions:     r--
-    references:
-      - kind:            R_X86_64_PC32
-        offset:          32
-        target:          .text

Removed: lld/trunk/test/old-elf/export-dynamic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/export-dynamic.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/export-dynamic.test (original)
+++ lld/trunk/test/old-elf/export-dynamic.test (removed)
@@ -1,98 +0,0 @@
-# Tests the --export-dynamic (-E) flag. When creating a dynamic executable and
-# receiving this flag, the linker should export all globally visible symbols in
-# its dynamic symbol table.
-
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu  -target x86_64 -E %t.o -e=main -o %t1
-#RUN: llvm-readobj -dt %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-#CHECKSYMS: myfunc1@
-#CHECKSYMS: main@
-#CHECKSYMS: myvar1@
-
-# The object file below was generated with the following code:
-#
-# (command line clang -c prog.c -o prog.o)
-#
-# int myvar1 = 22;
-#
-# static int mysecretvar = 11;
-#
-# int myfunc1() {
-#   return 23;
-# }
-#
-# static int mysecretfunc() {
-#   return 42;
-# }
-#
-# int main() {
-#   return mysecretfunc() + mysecretvar;
-# }
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E5B8170000005DC30F1F440000554889E54883EC10C745FC00000000E81C000000030425000000004883C4105DC36666666666662E0F1F840000000000554889E5B82A0000005DC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000027
-        Symbol:          .data
-        Type:            R_X86_64_32S
-        Addend:          4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         160000000B000000
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            mysecretfunc
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000040
-      Size:            0x000000000000000B
-    - Name:            mysecretvar
-      Type:            STT_OBJECT
-      Section:         .data
-      Value:           0x0000000000000004
-      Size:            0x0000000000000004
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000010
-      Size:            0x0000000000000021
-    - Name:            myfunc1
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000B
-    - Name:            myvar1
-      Type:            STT_OBJECT
-      Section:         .data
-      Size:            0x0000000000000004

Removed: lld/trunk/test/old-elf/filenotfound.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/filenotfound.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/filenotfound.test (original)
+++ lld/trunk/test/old-elf/filenotfound.test (removed)
@@ -1,3 +0,0 @@
-# Check that a file that cannot be found results in a proper error message
-RUN: not lld -flavor old-gnu -target x86_64 %p/Inputs/nofile.o 2>&1 | FileCheck %s
-#CHECK: lld: cannot find file {{.+[\\/]}}nofile.o

Removed: lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-discarded-reference.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-discarded-reference.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-discarded-reference.test (original)
+++ lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-discarded-reference.test (removed)
@@ -1,145 +0,0 @@
-# Tests that the linker is able to read .gnu.linkonce sections and link them
-# appropriately. The testcase has been created by using the following source
-# code.
-# TODO: This test should produce a discarded reference error message which it
-# does not currently.
-# linkoncea.s
-#        .section .gnu.linkonce.d.dummy,"aw"
-#bar:
-#        .long    0
-# linkonceb.s
-#        .section .gnu.linkonce.d.dummy,"aw"
-#foo:
-#        .long    0
-#        .section .blah, "aw"
-#        .long    foo
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.linkonce1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.linkonce1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN: --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN: --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGNULINKONCE < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGNULINKONCESECTIONS
-#CHECKGNULINKONCE: - name:            .gnu.linkonce.d.dummy
-#CHECKGNULINKONCE:   scope:           global
-#CHECKGNULINKONCE:   type:            gnu-linkonce
-#CHECKGNULINKONCE:   section-choice:  custom-required
-#CHECKGNULINKONCE:   section-name:    .gnu.linkonce.d.dummy
-#CHECKGNULINKONCE:   permissions:     rw-
-#CHECKGNULINKONCE:   references:
-#CHECKGNULINKONCE:     - kind:            group-child
-#CHECKGNULINKONCE:       offset:          0
-#CHECKGNULINKONCE:       target:          bar
-#CHECKGNULINKONCESECTIONS:   Section {
-#CHECKGNULINKONCESECTIONS:     Name: .gnu.linkonce.d.dummy
-#CHECKGNULINKONCESECTIONS:     Type: SHT_PROGBITS
-#CHECKGNULINKONCESECTIONS:     Flags [ (0x3)
-#CHECKGNULINKONCESECTIONS:       SHF_ALLOC (0x2)
-#CHECKGNULINKONCESECTIONS:       SHF_WRITE (0x1)
-#CHECKGNULINKONCESECTIONS:     ]
-#CHECKGNULINKONCESECTIONS:     Size: 4
-#CHECKGNULINKONCESECTIONS:   }
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            bar
-      Section:         .gnu.linkonce.d.dummy
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-  - Name:            .blah
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-  - Name:            .rela.blah
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .blah
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
-        Type:            R_X86_64_32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            foo
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            .blah
-      Type:            STT_SECTION
-      Section:         .blah
-...

Removed: lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-undef.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-undef.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-undef.test (original)
+++ lld/trunk/test/old-elf/gnulinkonce/gnulinkonce-report-undef.test (removed)
@@ -1,127 +0,0 @@
-# Tests that the linker is able to read .gnu.linkonce sections and link them
-# appropriately. The testcase has been created by using the following source
-# code. This test checks that the linker produces an undefined error.
-# linkoncea.s
-#        .section .gnu.linkonce.d.dummy,"aw"
-#bar:
-#        .long    0
-# linkonceb.s
-#        .section .gnu.linkonce.d.dummy,"aw"
-#        .global foo
-#foo:
-#        .long    0
-#        .section .blah, "aw"
-#        .long    foo
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.linkonce1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.linkonce1b.o
-#RUN: not lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN:  --output-filetype=yaml -o %t2.out.yaml 2>&1 | FileCheck \
-#RUN: -check-prefix=UNDEFS %s
-#RUN: not lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN: -o %t2.out 2>&1 | FileCheck -check-prefix=UNDEFS %s
-#UNDEFS: Undefined symbol: {{.*}} foo
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            bar
-      Section:         .gnu.linkonce.d.dummy
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-  - Name:            .blah
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-  - Name:            .rela.blah
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .blah
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
-        Type:            R_X86_64_32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            .blah
-      Type:            STT_SECTION
-      Section:         .blah
-  Global:
-    - Name:            foo
-      Section:         .gnu.linkonce.d.dummy
-...

Removed: lld/trunk/test/old-elf/gnulinkonce/gnulinkonce.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/gnulinkonce/gnulinkonce.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/gnulinkonce/gnulinkonce.test (original)
+++ lld/trunk/test/old-elf/gnulinkonce/gnulinkonce.test (removed)
@@ -1,149 +0,0 @@
-# Tests that the linker is able to read .gnu.linkonce sections and link them
-# appropriately. The testcase has been created by using the following source
-# code
-# linkonce1a.s
-# ------------
-#        .section .gnu.linkonce.d.dummy,"aw"
-#bar:
-#        .long    0
-# linkonce1b.s
-# ------------
-#    .globl main
-#    .globl start
-#    .globl _start
-#    .globl __start
-#    .text
-#main:
-#start:
-#_start:
-#__start:
-#    .long    0
-#
-#        .section .gnu.linkonce.d.dummy,"aw"
-#foo:
-#        .long    0
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.linkonce1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.linkonce1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN: --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \
-#RUN: --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGNULINKONCE < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGNULINKONCESECTIONS
-#CHECKGNULINKONCE: - name:            .gnu.linkonce.d.dummy
-#CHECKGNULINKONCE:   scope:           global
-#CHECKGNULINKONCE:   type:            gnu-linkonce
-#CHECKGNULINKONCE:   section-choice:  custom-required
-#CHECKGNULINKONCE:   section-name:    .gnu.linkonce.d.dummy
-#CHECKGNULINKONCE:   permissions:     rw-
-#CHECKGNULINKONCE:   references:
-#CHECKGNULINKONCE:     - kind:            group-child
-#CHECKGNULINKONCE:       offset:          0
-#CHECKGNULINKONCE:       target:          bar
-#CHECKGNULINKONCE:     - kind:            group-child
-#CHECKGNULINKONCE:       offset:          0
-#CHECKGNULINKONCESECTIONS:   Section {
-#CHECKGNULINKONCESECTIONS:     Name: .gnu.linkonce.d.dummy
-#CHECKGNULINKONCESECTIONS:     Type: SHT_PROGBITS
-#CHECKGNULINKONCESECTIONS:     Flags [ (0x3)
-#CHECKGNULINKONCESECTIONS:       SHF_ALLOC (0x2)
-#CHECKGNULINKONCESECTIONS:       SHF_WRITE (0x1)
-#CHECKGNULINKONCESECTIONS:     ]
-#CHECKGNULINKONCESECTIONS:     Size: 4
-#CHECKGNULINKONCESECTIONS:   }
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-Symbols:
-  Local:
-    - Name:            bar
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         '00000000'
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .gnu.linkonce.d.dummy
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         '00000000'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .gnu.linkonce.d.dummy
-      Type:            STT_SECTION
-      Section:         .gnu.linkonce.d.dummy
-    - Name:            foo
-      Section:         .gnu.linkonce.d.dummy
-  Global:
-    - Name:            main
-      Section:         .text
-    - Name:            start
-      Section:         .text
-    - Name:            _start
-      Section:         .text
-    - Name:            __start
-      Section:         .text
-...

Removed: lld/trunk/test/old-elf/gotpcrel.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/gotpcrel.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/gotpcrel.test (original)
+++ lld/trunk/test/old-elf/gotpcrel.test (removed)
@@ -1,21 +0,0 @@
-# This test checks that GOTPCREL entries are being handled properly
-RUN: lld -flavor old-gnu -target x86_64-linux -static -e main --output-filetype=yaml  \
-RUN:   --noinhibit-exec %p/Inputs/gotpcrel.x86-64  \
-RUN:   | FileCheck %s -check-prefix=YAML
-
-YAML: name: main
-YAML: references:
-YAML:   kind:    R_X86_64_GOTPCREL
-YAML:   offset:  3
-YAML:   target:  [[NULLGOT:[a-zA-Z0-9_]+]]
-YAML:   kind:    R_X86_64_GOTPCREL
-YAML:   offset:  10
-YAML:   target:  [[MAINGOT:[a-zA-Z0-9_]+]]
-
-YAML: name: [[NULLGOT]]
-YAML: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
-YAML-NOT: references:
-
-YAML: name: [[MAINGOT]]
-YAML: kind: R_X86_64_64
-YAML: target: main

Removed: lld/trunk/test/old-elf/gottpoff.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/gottpoff.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/gottpoff.test (original)
+++ lld/trunk/test/old-elf/gottpoff.test (removed)
@@ -1,119 +0,0 @@
-# Test that GOTTPOFF reloc generates an outstanding R_X86_64_TPOFF64
-# to be processed at startup time.
-# Reference: Ulrich Drepper's "ELF Handling for Thread-Local storage"
-
-#RUN: yaml2obj -format=elf %s -o %t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t -e=main --defsym=__tls_get_addr=0
-#RUN: llvm-readobj -r %t | FileCheck %s
-#
-#CHECK:   Section (5) .rela.dyn {
-#CHECK:    0x401098 R_X86_64_TPOFF64 tls2 0x0
-#CHECK:   }
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         E819000000640304250000000064030425000000006403042500000000C3488B0500000000648B00C3488D3D00000000E800000000488D8000000000C3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000009
-        Symbol:          tls1
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000011
-        Symbol:          tls0
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000019
-        Symbol:          tls2
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000021
-        Symbol:          tls2
-        Type:            R_X86_64_GOTTPOFF
-        Addend:          -4
-      - Offset:          0x000000000000002C
-        Symbol:          tls0
-        Type:            R_X86_64_TLSLD
-        Addend:          -4
-      - Offset:          0x0000000000000031
-        Symbol:          __tls_get_addr
-        Type:            R_X86_64_PLT32
-        Addend:          -4
-      - Offset:          0x0000000000000038
-        Symbol:          tls0
-        Type:            R_X86_64_DTPOFF32
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Size:            8
-  - Name:            .tbss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .tdata
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
-    AddressAlign:    0x0000000000000004
-    Content:         '01000000'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .tbss
-      Type:            STT_SECTION
-      Section:         .tbss
-    - Name:            .tdata
-      Type:            STT_SECTION
-      Section:         .tdata
-  Global:
-    - Name:            GOTTPOFF
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x000000000000001E
-    - Name:            TLSLD
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000029
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-    - Name:            tls0
-      Type:            STT_TLS
-      Section:         .tbss
-      Size:            0x0000000000000004
-    - Name:            tls1
-      Type:            STT_TLS
-      Section:         .tbss
-      Value:           0x0000000000000004
-      Size:            0x0000000000000004
-    - Name:            tls2
-      Type:            STT_TLS
-      Section:         .tdata
-      Size:            0x0000000000000004
-    - Name:            _GLOBAL_OFFSET_TABLE_
-    - Name:            __tls_get_addr
-...

Removed: lld/trunk/test/old-elf/group-cmd-search.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/group-cmd-search.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/group-cmd-search.test (original)
+++ lld/trunk/test/old-elf/group-cmd-search.test (removed)
@@ -1,134 +0,0 @@
-/*
-  REQUIRES: shell
-
-  This test does not pass on Windows because a path starting with
-  "/" is not considered as an absolute path. (It needs a drive
-  letter.)
-*/
-
-/*
-  In general the linker scripts's GROUP command works like a pair
-  of command line options --start-group/--end-group. But there is
-  a difference in the files look up algorithm.
-
-  The --start-group/--end-group commands use a trivial approach:
-  a) If the path has '-l' prefix, add 'lib' prefix and '.a'/'.so'
-     suffix and search the path through library search directories.
-  b) Otherwise, use the path 'as-is'.
-
-  The GROUP command implements more compicated approach:
-  a) If the path has '-l' prefix, add 'lib' prefix and '.a'/'.so'
-     suffix and search the path through library search directories.
-  b) If the path does not have '-l' prefix, and sysroot is configured,
-     and the path starts with the / character, and the script being
-     processed is located inside the sysroot, search the path under
-     the sysroot. Otherwise, try to open the path in the current
-     directory. If it is not found, search through library search
-     directories.
-*/
-
-/*
-  This link should finish successfully. The --start-group/--end-group
-  contains an existing absolute path to the file.
-
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     --start-group %p/Inputs/shared.so-x86-64 --end-group -o %t1
-*/
-
-/*
-  This link should fail with unknown input file format error.
-  There is no shared.so-x86-64 file in the current directory.
-
-RUN: not \
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     --start-group shared.so-x86-64 --end-group -o %t2
-*/
-
-/*
-  This link should fail with unknown input file format error.
-  The absolute path /shared.so-x86-64 does not exist and the linker
-  should not attempt to search it under the sysroot directory.
-
-RUN: not \
-RUN: lld -flavor old-gnu -target x86_64 -shared --sysroot=%p/Inputs \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     --start-group /shared.so-x86-64 --end-group -o %t3
-*/
-
-/*
-  This link should finish successfully. The group-cmd-search-1.ls
-  script contains "GROUP ( shared.so-x86-64 )" command and the linker
-  has to search shared.so-x86-64 through the library search paths.
-
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %p/Inputs/group-cmd-search-1.ls -o %t4
-*/
-
-/*
-  This link should fail with unknown input file format error.
-  The group-cmd-search-2.ls script contains GROUP command with
-  a non-existing absolute path but there is no --sysroot argument.
-
-RUN: not \
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %p/Inputs/group-cmd-search-2.ls -o %t5
-*/
-
-/*
-  This link should finish successfully. The group-cmd-search-2.ls
-  script contains GROUP command with an absolute path and the sysroot
-  directory is provided. The linker has to search the absolute path
-  under the sysroot directory.
-
-RUN: lld -flavor old-gnu -target x86_64 -shared --sysroot=%p/Inputs \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %p/Inputs/group-cmd-search-2.ls -o %t6
-*/
-
-/*
-  This link should finish successfully. The group-cmd-search-2.ls
-  script contains GROUP command with an absolute path and the sysroot
-  directory is provided. The linker has to search the absolute path
-  under the sysroot directory.
-
-RUN: lld -flavor old-gnu -target x86_64 -shared --sysroot=%p/Inputs/../Inputs \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %p/Inputs/group-cmd-search-2.ls -o %t6
-*/
-
-/*
-  This link should finish successfully. The group-cmd-search-3.ls
-  script contains GROUP command with two elements. The first one
-  has a -l:<path> form and should be found by iterating through
-  lib dirs and searching the 'path' name exactly. The second element
-  has a -l<lib name> form and should be found by constructing a full
-  library name lib<lib name>.a and iterating through lib dirs.
-
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %p/Inputs/group-cmd-search-3.ls -o %t8
-*/
-
-/*
-  This link should fail with unknown input file format error.
-  The linker script from this file contains GROUP with an absolute
-  path which can be found under provided sysroot directory.
-  But the linker script itself is not under the sysroot.
-
-RUN: not \
-RUN: lld -flavor old-gnu -target x86_64 -shared --sysroot=%p/Inputs \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     %s -o %t7
-*/
-
-/*
-RUN: lld -flavor old-gnu -target x86_64 -shared \
-RUN:     -L%p/Inputs %p/Inputs/use-shared.x86-64 \
-RUN:     -l:group-cmd-search-1.ls -o %t9
-*/
-
-GROUP ( /shared.so-x86-64 )

Removed: lld/trunk/test/old-elf/hexagon-quickdata-sort.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/hexagon-quickdata-sort.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/hexagon-quickdata-sort.test (original)
+++ lld/trunk/test/old-elf/hexagon-quickdata-sort.test (removed)
@@ -1,12 +0,0 @@
-RUN: lld -flavor old-gnu -target hexagon %p/Inputs/quickdata-sort-test.o.elf-hexagon -o %t1 --noinhibit-exec
-RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSort
-
-quickdataSort: 00002000 D A1
-quickdataSort: 00002001 D AA1
-quickdataSort: 00002002 D B1
-quickdataSort: 00002004 D BB1
-quickdataSort: 00002008 D C1
-quickdataSort: 0000200c D CC1
-quickdataSort: 00002010 D D1
-quickdataSort: 00002018 D DD1
-

Removed: lld/trunk/test/old-elf/hexagon-quickdata-sortcommon.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/hexagon-quickdata-sortcommon.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/hexagon-quickdata-sortcommon.test (original)
+++ lld/trunk/test/old-elf/hexagon-quickdata-sortcommon.test (removed)
@@ -1,16 +0,0 @@
-RUN: lld -flavor old-gnu -target hexagon -o %t1 --noinhibit-exec \
-RUN:     %p/Inputs/quickdata-sortcommon-test.o.elf-hexagon
-RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSortCommon
-
-quickdataSortCommon: 00002000 D A1
-quickdataSortCommon: 00002001 D AA1
-quickdataSortCommon: 00002002 D AAA1
-quickdataSortCommon: 00002004 D B1
-quickdataSortCommon: 00002006 D BB1
-quickdataSortCommon: 00002008 D BBB1
-quickdataSortCommon: 0000200c D C1
-quickdataSortCommon: 00002010 D CC1
-quickdataSortCommon: 00002014 D CCC1
-quickdataSortCommon: 00002018 D D1
-quickdataSortCommon: 00002020 D DD1
-quickdataSortCommon: 00002028 D DDD1

Removed: lld/trunk/test/old-elf/ifunc.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/ifunc.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/ifunc.test (original)
+++ lld/trunk/test/old-elf/ifunc.test (removed)
@@ -1,69 +0,0 @@
-# REQUIRES: x86
-
-# This test checks that IRELATIVE relocations are created for symbols that
-# need relocation even for static links.
-RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml -r \
-RUN:   %p/Inputs/ifunc.x86-64  | FileCheck %s
-
-RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml --noinhibit-exec \
-RUN:   %p/Inputs/ifunc.x86-64 %p/Inputs/ifunc.cpp.x86-64 \
-RUN: | FileCheck %s --check-prefix=PLT
-
-RUN: lld -flavor old-gnu -target x86_64-linux -o %t %p/Inputs/ifunc.x86-64 \
-RUN:   -e main -static %p/Inputs/ifunc.cpp.x86-64
-RUN: llvm-objdump -d -s %t| FileCheck %s --check-prefix=BIN
-RUN: llvm-readobj -r %t | FileCheck %s --check-prefix=RELATIVEADDEND
-
-# Test that STT_GNU_IFUNC symbols have type Code in SharedLibraryAtom.
-RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml \
-RUN:   --noinhibit-exec %p/Inputs/ifunc.cpp.x86-64 -L%p/Inputs -lifunc.x86-64 \
-RUN: | FileCheck %s --check-prefix=SHARED
-
-PLT: defined-atoms:
-
-PLT: name:  plt
-PLT: scope: global
-PLT: references:
-PLT:   kind:   R_X86_64_PC32
-PLT:   target: [[PLTNAME:[-a-zA-Z0-9_]+]]
-
-PLT: name: main
-PLT: scope: global
-PLT: references:
-PLT:   kind: R_X86_64_PC32
-PLT:   target: [[PLTNAME]]
-
-// Make sure the target of main's relocation is a stub with a PC32 relocation.
-// This relocation is to the got atom, but you can't really write that check in
-// FileCheck.
-PLT: name:
-PLT: type: stub
-PLT: references
-PLT:   kind: R_X86_64_PC32
-
-// Make sure there's a got entry with a IRELATIVE relocation.
-PLT: type: got
-PLT: references:
-PLT:  kind: R_X86_64_IRELATIVE
-PLT:  target: hey
-
-CHECK: name: hey
-CHECK: scope: global
-CHECK: type: resolver
-
-
-// This is a horribly brittle test. We need a way to do arithmetic on captured
-// variables.
-BIN: {{[0-9a-f]+}}: ff 25 {{[0-9a-f]+}} {{[0-9a-f]+}} 00 00 jmpq *{{[0-9]+}}(%rip)
-BIN: .got.plt:
-BIN-NEXT: {{[0-9a-f]+}} 00000000 00000000
-
-RELATIVEADDEND:      Relocations [
-RELATIVEADDEND-NEXT:   Section (1) .rela.plt {
-RELATIVEADDEND-NEXT:     0x401000 R_X86_64_IRELATIVE - 0x400110
-RELATIVEADDEND-NEXT:   }
-RELATIVEADDEND-NEXT: ]
-
-SHARED: shared-library-atoms
-SHARED: name: hey
-SHARED-NOT: data

Removed: lld/trunk/test/old-elf/ignore-unknownoption.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/ignore-unknownoption.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/ignore-unknownoption.test (original)
+++ lld/trunk/test/old-elf/ignore-unknownoption.test (removed)
@@ -1,5 +0,0 @@
-# This test tests that lld is able to print unknown options that are not
-# recognized.
-RUN: not lld -flavor old-gnu -target x86_64 --gc-sections 2> %t
-RUN: FileCheck %s < %t
-CHECK: warning: ignoring unknown argument: --gc-sections

Removed: lld/trunk/test/old-elf/init_array-order.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/init_array-order.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/init_array-order.test (original)
+++ lld/trunk/test/old-elf/init_array-order.test (removed)
@@ -1,67 +0,0 @@
-#RUN: yaml2obj -format=elf %s > %t
-#RUN: lld -flavor old-gnu -target x86_64-linux %t --noinhibit-exec \
-#RUN:   -o %t1.out
-#RUN: llvm-objdump -s %t1.out | FileCheck %s
-
-!ELF
-FileHeader:
-  Class: ELFCLASS64
-  Data: ELFDATA2LSB
-  Type: ET_REL
-  Machine: EM_X86_64
-
-Sections:
-- Name: .text
-  Type: SHT_PROGBITS
-  Content: "1100000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC, SHF_EXECINSTR]
-- Name: .init_array.2
-  Type: SHT_INIT_ARRAY
-  Content: "0200000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC]
-- Name: .init_array.3
-  Type: SHT_INIT_ARRAY
-  Content: "0300000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC]
-- Name: .init_array
-  Type: SHT_INIT_ARRAY
-  Content: "9900000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC]
-- Name: .data
-  Type: SHT_PROGBITS
-  Content: "2200000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC, SHF_WRITE]
-- Name: .init_array.1
-  Type: SHT_INIT_ARRAY
-  Content: "0100000000000000"
-  AddressAlign: 8
-  Flags: [SHF_ALLOC]
-
-Symbols:
-  Local:
-  - Name: .text
-    Type: STT_SECTION
-    Section: .text
-  - Name: .data
-    Type: STT_SECTION
-    Section: .data
-  - Name: .init_array.3
-    Type: STT_SECTION
-    Section: .init_array.3
-  - Name: .init_array.2
-    Type: STT_SECTION
-    Section: .init_array.2
-  - Name: .init_array.1
-    Type: STT_SECTION
-    Section: .init_array.1
-  - Name: .init_array
-    Type: STT_SECTION
-    Section: .init_array
-
-#CHECK:  {{[0xa-f0-9]+}} 01000000 00000000 02000000 00000000
-#CHECK:  {{[0xa-f0-9]+}} 03000000 00000000 99000000 00000000

Removed: lld/trunk/test/old-elf/init_array.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/init_array.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/init_array.test (original)
+++ lld/trunk/test/old-elf/init_array.test (removed)
@@ -1,127 +0,0 @@
-# Test .init_array.
-# Generated from the following C code:
-#
-# static void
-# init () {}
-#
-# static void (*const init_array []) ()
-#  __attribute__ ((used, section (".init_array"), aligned (sizeof (void *))))
-#  = { init };
-#
-# int
-# main() { return (0); }
-#
-# Note: both STT_OBJECT and STT_SECTION for .init_array are commented in yaml
-# declaration to check if lld correct adds the object's .init_array when the
-# section has no symbol (some compilers may create object with this behavior,
-# specially for C++ global constructors).
-
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t -e=main
-#RUN: llvm-objdump -t -section-headers %t | FileCheck %s
-
-#CHECK: .init_array {{[0-9]+}} [[ADDR:[0-9]+]]
-#CHECK: [[ADDR]] l *ABS* {{[0-9]+}} .hidden __init_array_start
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E5B800000000C745FC000000005DC366666666662E0F1F840000000000554889E55DC3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .init_array
-    Type:            SHT_INIT_ARRAY
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         '0000000000000000'
-  - Name:            .rela.init_array
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .init_array
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          .text
-        Type:            R_X86_64_64
-        Addend:          32
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         004672656542534420636C616E672076657273696F6E20332E342E312028746167732F52454C454153455F33342F646F74312D66696E616C203230383033322920323031343035313200
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000017A5200017810011B0C070890010000180000001C000000000000001200000000410E108602430D060000001800000038000000000000000600000000410E108602430D06000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-      - Offset:          0x000000000000003C
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-        Addend:          32
-Symbols:
-  Local:
-    - Name:            init
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000020
-      Size:            0x0000000000000006
-#    - Name:            init_array
-#      Type:            STT_OBJECT
-#      Section:         .init_array
-#      Size:            0x0000000000000008
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-#    - Name:            .init_array
-#      Type:            STT_SECTION
-#      Section:         .init_array
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000012
-...

Removed: lld/trunk/test/old-elf/initfini-options.test-1.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/initfini-options.test-1.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/initfini-options.test-1.test (original)
+++ lld/trunk/test/old-elf/initfini-options.test-1.test (removed)
@@ -1,33 +0,0 @@
-# Check that if there are no -init/-fini options and _init/_fini symbols
-# are undefined the linker does not emit DT_INIT/DT_FINI tags.
-
-# RUN: yaml2obj -format=elf %s > %t.o
-# RUN: lld -flavor old-gnu -target x86_64 -shared --noinhibit-exec -o %t.so %t.o
-# RUN: llvm-readobj -dynamic-table %t.so | FileCheck %s
-
-# CHECK-NOT: 0x000000000000000C INIT 0x{{[0-9A-F]+}}
-# CHECK-NOT: 0x000000000000000D FINI 0x{{[0-9A-F]+}}
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  0x04
-    Size:          0x08
-
-Symbols:
-  Global:
-    - Name:        _start
-      Type:        STT_FUNC
-      Section:     .text
-      Size:        0x08
-    - Name:        _init
-    - Name:        _fini
-...

Removed: lld/trunk/test/old-elf/initfini-options.test-2.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/initfini-options.test-2.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/initfini-options.test-2.test (original)
+++ lld/trunk/test/old-elf/initfini-options.test-2.test (removed)
@@ -1,47 +0,0 @@
-# Check that if _init/_fini symbols are defined the linker emits
-# DT_INIT/DT_FINI tags point to these symbols.
-
-# RUN: yaml2obj -format=elf %s > %t.o
-# RUN: lld -flavor old-gnu -target x86_64 -shared -o %t.so %t.o
-# RUN: llvm-readobj -symbols -dynamic-table %t.so | FileCheck %s
-
-# CHECK:      Name: _init (8)
-# CHECK-NEXT: Value: {{[0x0-9a-f]+}}
-# CHECK:      Name: _fini (14)
-# CHECK-NEXT: Value: {{[0x0-9a-f]+}}
-#
-# CHECK: 0x000000000000000C INIT {{[0x0-9a-f]+}}
-# CHECK: 0x000000000000000D FINI {{[0x0-9a-f]+}}
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  0x04
-    Size:          0x18
-
-Symbols:
-  Global:
-    - Name:        _start
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0x0
-      Size:        0x8
-    - Name:        _init
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0x8
-      Size:        0x8
-    - Name:        _fini
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0xF
-      Size:        0x8
-...

Removed: lld/trunk/test/old-elf/initfini-options.test-3.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/initfini-options.test-3.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/initfini-options.test-3.test (original)
+++ lld/trunk/test/old-elf/initfini-options.test-3.test (removed)
@@ -1,53 +0,0 @@
-# Check that -init/-fini command line options override default function names
-# and the linker uses these name to search symbols and setup DT_INIT/DT_FINI.
-
-# RUN: yaml2obj -format=elf %s > %t.o
-# RUN: lld -flavor old-gnu -target x86_64 -shared -o %t.so %t.o \
-# RUN:     -init _init -init _start -fini _fini -fini _stop
-# RUN: llvm-readobj -symbols -dynamic-table %t.so | FileCheck %s
-
-# CHECK:      Name: _start (1)
-# CHECK-NEXT: Value: {{[0x0-9a-f]+}}
-# CHECK:      Name: _stop (8)
-# CHECK-NEXT: Value: {{[0x0-9a-f]+}}
-#
-# CHECK: 0x000000000000000C INIT {{[0x0-9a-f]+}}
-# CHECK: 0x000000000000000D FINI {{[0x0-9a-f]+}}
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  0x04
-    Size:          0x20
-
-Symbols:
-  Global:
-    - Name:        _start
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0x0
-      Size:        0x8
-    - Name:        _stop
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0x8
-      Size:        0x8
-    - Name:        _init
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0xF
-      Size:        0x8
-    - Name:        _fini
-      Type:        STT_FUNC
-      Section:     .text
-      Value:       0x18
-      Size:        0x8
-...

Removed: lld/trunk/test/old-elf/librarynotfound.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/librarynotfound.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/librarynotfound.test (original)
+++ lld/trunk/test/old-elf/librarynotfound.test (removed)
@@ -1,5 +0,0 @@
-# Tests the functionality of library not found
-RUN: not lld -flavor old-gnu -lfn 2> %t1
-RUN: FileCheck %s < %t1
-
-CHECK: Unable to find library -lfn

Removed: lld/trunk/test/old-elf/linker-as-ld.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linker-as-ld.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linker-as-ld.test (original)
+++ lld/trunk/test/old-elf/linker-as-ld.test (removed)
@@ -1,16 +0,0 @@
-REQUIRES: system-linker-elf
-
-RUN: mkdir -p %t.dir && cp `which lld` %t.dir/ld
-RUN: %t.dir/ld -o %t %p/Inputs/relocs.x86-64 \
-RUN:  -e _start -static
-RUN: llvm-readobj -t %t | FileCheck %s
-
-# Test linker run as "ld" on elf based system works like gnu linker.
-
-
-CHECK:        Symbol {
-CHECK:          Name: i
-CHECK-NEXT:     Value:
-CHECK-NEXT:     Size:
-CHECK-NEXT:     Binding:
-CHECK-NEXT:     Type: Object

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/externs.ls
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/externs.ls?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/externs.ls (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/externs.ls (removed)
@@ -1,3 +0,0 @@
-/* A simple valid linker script used for testing the EXTERN command.
- */
-EXTERN(_foo bar __baz)

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/invalid.ls
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/invalid.ls?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/invalid.ls (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/invalid.ls (removed)
@@ -1 +0,0 @@
-GROUP(

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/prog1.o.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/prog1.o.yaml?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/prog1.o.yaml (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/prog1.o.yaml (removed)
@@ -1,87 +0,0 @@
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E5B000E800000000BF01000000BA0E0000004889C6E80000000031C05DC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000007
-        Symbol:          prog2
-        Type:            R_X86_64_PC32
-        Addend:          -4
-      - Offset:          0x0000000000000019
-        Symbol:          write
-        Type:            R_X86_64_PC32
-        Addend:          -4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E302028687474703A2F2F6C6C766D2E6F72672F6769742F636C616E672E6769742036336134646334616430343938646139623934386330383263623735336430353735323938346638292028687474703A2F2F6C6C766D2E6F72672F6769742F6C6C766D2E67697420623838363135326664656538376564653738613565643965616638663664313839343033616266312900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C0708900100001C0000001C000000000000002100000000410E108602430D0600000000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000021
-    - Name:            prog2
-    - Name:            write
-...

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/prog2.o.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/prog2.o.yaml?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/prog2.o.yaml (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/prog2.o.yaml (removed)
@@ -1,88 +0,0 @@
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E548B800000000000000005DC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000006
-        Symbol:          .rodata.str1.1
-        Type:            R_X86_64_64
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .rodata.str1.1
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         48656C6C6F2C20776F726C64210A00
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E302028687474703A2F2F6C6C766D2E6F72672F6769742F636C616E672E6769742036336134646334616430343938646139623934386330383263623735336430353735323938346638292028687474703A2F2F6C6C766D2E6F72672F6769742F6C6C766D2E67697420623838363135326664656538376564653738613565643965616638663664313839343033616266312900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C0708900100001C0000001C000000000000001000000000410E108602430D0600000000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .rodata.str1.1
-      Type:            STT_SECTION
-      Section:         .rodata.str1.1
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            prog2
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000010
-...

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/prog3.o.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/prog3.o.yaml?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/prog3.o.yaml (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/prog3.o.yaml (removed)
@@ -1,51 +0,0 @@
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         B8010000000F05C3E800000000B83C0000000F05C3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000009
-        Symbol:          main
-        Type:            R_X86_64_PC32
-        Addend:          -4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            _start
-      Section:         .text
-      Value:           0x0000000000000008
-    - Name:            write
-      Section:         .text
-    - Name:            main
-...

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/simple-pic.o.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/simple-pic.o.yaml?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/simple-pic.o.yaml (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/simple-pic.o.yaml (removed)
@@ -1,32 +0,0 @@
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  4
-    Size:          16
-
-  - Name:          .data
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:  4
-    Size:          16
-
-Symbols:
-  Local:
-    - Name:        .data
-      Type:        STT_SECTION
-      Section:     .data
-    - Name:        .text
-      Type:        STT_SECTION
-      Section:     .text
-  Global:
-    - Name:        foo
-      Type:        STT_FUNC
-      Section:     .text
-      Size:        16

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/simple.o.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/simple.o.yaml?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/simple.o.yaml (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/simple.o.yaml (removed)
@@ -1,51 +0,0 @@
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         B80100000048C7C70100000048C7C60000000048C7C20E0000000F05C3E8DEFFFFFFB83C0000000F05C3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x000000000000000F
-        Symbol:          .data
-        Type:            R_X86_64_32S
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         48656C6C6F2C20576F726C64210A00
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-Symbols:
-  Local:
-    - Name:            main
-      Section:         .text
-    - Name:            msg
-      Section:         .data
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            _start
-      Section:         .text
-      Value:           0x000000000000001D
-...

Removed: lld/trunk/test/old-elf/linkerscript/Inputs/valid.ls
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/Inputs/valid.ls?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/Inputs/valid.ls (original)
+++ lld/trunk/test/old-elf/linkerscript/Inputs/valid.ls (removed)
@@ -1,6 +0,0 @@
-/* A simple valid linker script used for testing the -T/--script options.
- *
- * An unresolved symbol named '_entry_point' can be scanned for by the tests
- * to determine that the linker script was processed.
- */
-ENTRY(_entry_point)

Removed: lld/trunk/test/old-elf/linkerscript/externs.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/externs.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/externs.objtxt (original)
+++ lld/trunk/test/old-elf/linkerscript/externs.objtxt (removed)
@@ -1,21 +0,0 @@
-# Check symbols defined with the EXTERN command are added as undefined
-# symbols.
-
-# RUN: lld -flavor old-gnu -target x86_64 -T %p/Inputs/externs.ls -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-defined-atoms:
-  - name:            main
-    scope:           global
-    content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-
-# CHECK: undefined-atoms:
-# CHECK:   - name:            _foo
-# CHECK:     can-be-null:     at-buildtime
-# CHECK:   - name:            bar
-# CHECK:     can-be-null:     at-buildtime
-# CHECK:   - name:            __baz
-# CHECK:     can-be-null:     at-buildtime

Removed: lld/trunk/test/old-elf/linkerscript/filename-with-wildcards.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/filename-with-wildcards.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/filename-with-wildcards.test (original)
+++ lld/trunk/test/old-elf/linkerscript/filename-with-wildcards.test (removed)
@@ -1,49 +0,0 @@
-/*
-Tests a linker script that uses the SECTIONS command with rules containing
-wildcards that matching input object files.
-*/
-
-ENTRY(_start)
-
-SECTIONS
-{
-  . = 0x500000;
-  .foo : { *p1-wc.o(.text .rodata*) }
-  .bar : { *(.text .rodata*) }
-}
-
-/*
-RUN: mkdir -p %T
-RUN: yaml2obj -format=elf %p/Inputs/prog1.o.yaml -o=%T/p1-wc.o
-RUN: yaml2obj -format=elf %p/Inputs/prog2.o.yaml -o=%T/p2-wc.o
-RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/p3-wc.o
-RUN: cd %T
-
-RUN: lld -flavor old-gnu  -target x86_64 -T %s p1-wc.o p2-wc.o p3-wc.o \
-RUN:   -static -o %t1
-RUN: llvm-readobj -s %t1 | FileCheck -check-prefix CHECKSECTIONS %s
-
-CHECKSECTIONS:       Index: 1
-CHECKSECTIONS:       Name: .foo
-CHECKSECTIONS:       Address: 0x500000
-CHECKSECTIONS:       Size: 33
-
-CHECKSECTIONS:       Index: 2
-CHECKSECTIONS:       Name: .bar
-CHECKSECTIONS:       Address: 0x500030
-CHECKSECTIONS:       Size: 52
-
-RUN: llvm-readobj -symbols %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS:      Name: main
-CHECKSYMS-NEXT: Value: 0x500000
-
-CHECKSYMS:      Name: prog2
-CHECKSYMS-NEXT: Value: 0x500030
-
-CHECKSYMS:      Name: write
-CHECKSYMS-NEXT: Value: 0x500040
-
-CHECKSYMS:      Name: _start
-CHECKSYMS-NEXT: Value: 0x500048
-*/

Removed: lld/trunk/test/old-elf/linkerscript/invalid-script-cli-1.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/invalid-script-cli-1.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/invalid-script-cli-1.test (original)
+++ lld/trunk/test/old-elf/linkerscript/invalid-script-cli-1.test (removed)
@@ -1,10 +0,0 @@
-# Check that the -T/--script options issue an error when passed
-# filenames for files that do not exist.
-
-RUN: not lld -flavor old-gnu -target x86_64 -T idonotexist.ls 2> %t.err
-RUN: FileCheck %s < %t.err
-
-RUN: not lld -flavor old-gnu -target x86_64 --script=idonotexist.ls 2> %t.err
-RUN: FileCheck %s < %t.err
-
-CHECK: {{.*}}lld: cannot find file {{.*}}idonotexist.ls

Removed: lld/trunk/test/old-elf/linkerscript/invalid-script-cli-2.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/invalid-script-cli-2.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/invalid-script-cli-2.test (original)
+++ lld/trunk/test/old-elf/linkerscript/invalid-script-cli-2.test (removed)
@@ -1,6 +0,0 @@
-# Check that linker script are *not* picked up with -lscript.ls.
-
-RUN: not lld -flavor old-gnu -target x86_64 -L%p/Inputs/ -lvalid.ls 2> %t.err
-RUN: FileCheck %s < %t.err
-
-CHECK: {{.*}}: Unable to find library -lvalid.ls

Removed: lld/trunk/test/old-elf/linkerscript/invalid.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/invalid.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/invalid.test (original)
+++ lld/trunk/test/old-elf/linkerscript/invalid.test (removed)
@@ -1,5 +0,0 @@
-# Check for errors from invalid linker scripts
-RUN: not lld -flavor old-gnu -target x86_64 %p/Inputs/invalid.ls 2> %t.err
-RUN: FileCheck %s < %t.err
-
-CHECK: {{.*}}invalid.ls: Error parsing linker script

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-all-none.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-all-none.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-all-none.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-all-none.test (removed)
@@ -1,26 +0,0 @@
-/*
-Test when all segments are marked as NONE.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix NONE-ALL-PHDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :NONE
-  .data : { *(.data) }
-}
-
-/*
-NONE-ALL-PHDRS: .text {{[0-9a-f]+}} 0000000000000000
-NONE-ALL-PHDRS: .data {{[0-9a-f]+}} 000000000000002c
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-custom-none.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-custom-none.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-custom-none.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-custom-none.test (removed)
@@ -1,36 +0,0 @@
-/*
-Test when PHDRS contains custom NONE segment.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix CUSTOM-NONE-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix CUSTOM-NONE-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    NONE PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :NONE
-  .data : { *(.data) }
-}
-
-/*
-CUSTOM-NONE-SECS: .text {{[0-9a-f]+}} 00000000004000b0
-CUSTOM-NONE-SECS: .data {{[0-9a-f]+}} 00000000004000dc
-
-CUSTOM-NONE-HDRS: ProgramHeader {
-CUSTOM-NONE-HDRS: Type: PT_LOAD (0x1)
-CUSTOM-NONE-HDRS: VirtualAddress: 0x400000
-CUSTOM-NONE-HDRS: Flags [ (0x5)
-CUSTOM-NONE-HDRS: PF_R (0x4)
-CUSTOM-NONE-HDRS: PF_X (0x1)
-CUSTOM-NONE-HDRS: ]
-CUSTOM-NONE-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-default.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-default.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-default.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-default.test (removed)
@@ -1,82 +0,0 @@
-/*
-This group of tests checks usage of default headers during linking,
-when PHDRS command is not defined or defined empty in linker scripts.
-
-This test uses a single X86-64 input object, simple.o, created with the
-following X86-64 assembly code:
-
-*** simple.S:
-
-(command line clang -c simple.S -o simple.o)
-
-      .text
-      main:
-        mov $1, %eax
-        movq $1, %rdi
-        movq $msg, %rsi
-        movq $14, %rdx
-        syscall
-        ret
-
-        .globl _start
-      _start:
-        call  main
-        mov $60, %eax
-        syscall
-        ret
-
-      .data
-      msg: .asciz "Hello, World!\n"
-*/
-
-/*
-Prepare the object file to test on.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-*/
-
-/*
-Test when no linker script passed.
-
-RUN: lld -flavor old-gnu -target x86_64 %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix SECTIONS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix HEADERS %s
-
-SECTIONS: .text {{[0-9a-f]+}} 00000000004000b0
-SECTIONS: .data {{[0-9a-f]+}} 0000000000401000
-
-HEADERS: ProgramHeader {
-HEADERS: Type: PT_LOAD (0x1)
-HEADERS: VirtualAddress: 0x400000
-HEADERS: }
-HEADERS: ProgramHeader {
-HEADERS: Type: PT_LOAD (0x1)
-HEADERS: VirtualAddress: 0x401000
-HEADERS: }
-*/
-
-/*
-Test when linker script doesn't contain PHDRS and sections are not assigned to any segments.
-
-RUN: lld -flavor old-gnu -target x86_64 -T %p/phdrs/sections-no-phdrs.script %t.o -static -o %t2
-RUN: llvm-objdump -section-headers %t2 | FileCheck -check-prefix SECTIONS %s
-RUN: llvm-readobj -program-headers %t2 | FileCheck -check-prefix HEADERS %s
-*/
-
-/*
-Test when linker script contains empty PHDRS and sections are not assigned to any segments.
-
-RUN: lld -flavor old-gnu -target x86_64 -T %p/phdrs/sections-empty-phdrs.script %t.o -static -o %t3
-RUN: llvm-objdump -section-headers %t3 | FileCheck -check-prefix SECTIONS %s
-RUN: llvm-readobj -program-headers %t3 | FileCheck -check-prefix HEADERS %s
-*/
-
-/*
-Test when linker script contains empty PHDRS and sections are only assigned to NONE segments
-or not assigned at all.
-NOTE: Segments with the name NONE are ignored in such a case.
-
-RUN: lld -flavor old-gnu -target x86_64 -T %p/phdrs/sections-none-phdrs.script %t.o -static -o %t4
-RUN: llvm-objdump -section-headers %t4 | FileCheck -check-prefix SECTIONS %s
-RUN: llvm-readobj -program-headers %t4 | FileCheck -check-prefix HEADERS %s
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-different.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-different.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-different.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-different.test (removed)
@@ -1,45 +0,0 @@
-/*
-Test sections put to different segments.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix DIFF-PHDRS-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix DIFF-PHDRS-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-  text PT_LOAD;
-  data PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) } :data
-}
-
-/*
-DIFF-PHDRS-SECS: .text {{[0-9a-f]+}} 00000000004000e8
-DIFF-PHDRS-SECS: .data {{[0-9a-f]+}} 0000000000401000
-
-DIFF-PHDRS-HDRS: ProgramHeader {
-DIFF-PHDRS-HDRS: Type: PT_LOAD (0x1)
-DIFF-PHDRS-HDRS: VirtualAddress: 0x400000
-DIFF-PHDRS-HDRS: Flags [ (0x5)
-DIFF-PHDRS-HDRS: PF_R (0x4)
-DIFF-PHDRS-HDRS: PF_X (0x1)
-DIFF-PHDRS-HDRS: ]
-DIFF-PHDRS-HDRS: }
-DIFF-PHDRS-HDRS: ProgramHeader {
-DIFF-PHDRS-HDRS: Type: PT_LOAD (0x1)
-DIFF-PHDRS-HDRS: VirtualAddress: 0x401000
-DIFF-PHDRS-HDRS: Flags [ (0x6)
-DIFF-PHDRS-HDRS: PF_R (0x4)
-DIFF-PHDRS-HDRS: PF_W (0x2)
-DIFF-PHDRS-HDRS: ]
-DIFF-PHDRS-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-extra-program.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-extra-program.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-extra-program.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-extra-program.test (removed)
@@ -1,27 +0,0 @@
-/*
-Test extra program header generates error.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error
-RUN: FileCheck -check-prefix EXTRA-PROGRAM-PHDR %s < %t1-error
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR PHDRS;
-    header2 PT_PHDR PHDRS;
-    text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :NONE
-  .data : { *(.data) }
-}
-
-/*
-EXTRA-PROGRAM-PHDR: Extra program header is found
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-flags.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-flags.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-flags.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-flags.test (removed)
@@ -1,46 +0,0 @@
-/*
-Test sections put to different segments with FLAGS attribute set.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix FLAGS-PHDRS-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix FLAGS-PHDRS-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    text PT_LOAD FLAGS(0x5);
-    data PT_LOAD FLAGS(0x7);
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) } :data
-}
-
-/*
-FLAGS-PHDRS-SECS: .text {{[0-9a-f]+}} 0000000000401000
-FLAGS-PHDRS-SECS: .data {{[0-9a-f]+}} 00000000004000e8
-
-FLAGS-PHDRS-HDRS: ProgramHeader {
-FLAGS-PHDRS-HDRS: Type: PT_LOAD (0x1)
-FLAGS-PHDRS-HDRS: VirtualAddress: 0x400000
-FLAGS-PHDRS-HDRS: Flags [ (0x7)
-FLAGS-PHDRS-HDRS: PF_R (0x4)
-FLAGS-PHDRS-HDRS: PF_W (0x2)
-FLAGS-PHDRS-HDRS: PF_X (0x1)
-FLAGS-PHDRS-HDRS: ]
-FLAGS-PHDRS-HDRS: }
-FLAGS-PHDRS-HDRS: ProgramHeader {
-FLAGS-PHDRS-HDRS: Type: PT_LOAD (0x1)
-FLAGS-PHDRS-HDRS: VirtualAddress: 0x401000
-FLAGS-PHDRS-HDRS: Flags [ (0x5)
-FLAGS-PHDRS-HDRS: PF_R (0x4)
-FLAGS-PHDRS-HDRS: PF_X (0x1)
-FLAGS-PHDRS-HDRS: ]
-FLAGS-PHDRS-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-has-program.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-has-program.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-has-program.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-has-program.test (removed)
@@ -1,33 +0,0 @@
-/*
-Test when program segment is set it's generated.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix PROGRAM-PHDR %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR FILEHDR PHDRS;
-    text PT_LOAD PHDRS;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-PHDR: ProgramHeader {
-PROGRAM-PHDR: Type: PT_PHDR (0x6)
-PROGRAM-PHDR: VirtualAddress: 0x400040
-PROGRAM-PHDR: Flags [ (0x5)
-PROGRAM-PHDR: PF_R (0x4)
-PROGRAM-PHDR: PF_X (0x1)
-PROGRAM-PHDR: ]
-PROGRAM-PHDR: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-invalid.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-invalid.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-invalid.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-invalid.test (removed)
@@ -1,63 +0,0 @@
-/*
-This group of tests checks invalid cases of defining and using PHDRS
-command in linker scripts.
-
-This test uses a single X86-64 input object, simple.o, created with the
-following X86-64 assembly code:
-
-*** simple.S:
-
-(command line clang -c simple.S -o simple.o)
-
-      .text
-      main:
-        mov $1, %eax
-        movq $1, %rdi
-        movq $msg, %rsi
-        movq $14, %rdx
-        syscall
-        ret
-
-        .globl _start
-      _start:
-        call  main
-        mov $60, %eax
-        syscall
-        ret
-
-      .data
-      msg: .asciz "Hello, World!\n"
-*/
-
-/*
-Prepare the object file to test on.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-*/
-
-/*
-Test undefined header used when no PHDRS defined.
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %p/phdrs/undef-no-phdrs.script %t.o -static -o %t1 &> %t1-error
-RUN: FileCheck -check-prefix UNDEF-NO-PHDRS %s < %t1-error
-
-UNDEF-NO-PHDRS: Unknown header identifiers (missing in PHDRS command) are used
-*/
-
-/*
-Test undefined header used when PHDRS is empty.
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %p/phdrs/undef-empty-phdrs.script %t.o -static -o %t2 &> %t2-error
-RUN: FileCheck -check-prefix UNDEF-EMPTY-PHDRS %s < %t2-error
-
-UNDEF-EMPTY-PHDRS: Unknown header identifiers (missing in PHDRS command) are used
-*/
-
-/*
-Test undefined header used when PHDRS contains definitions.
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %p/phdrs/undef-id-phdrs.script %t.o -static -o %t3 &> %t3-error
-RUN: FileCheck -check-prefix UNDEF-ID-PHDRS %s < %t3-error
-
-UNDEF-ID-PHDRS: Unknown header identifiers (missing in PHDRS command) are used
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-misplaced-program.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-misplaced-program.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-misplaced-program.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-misplaced-program.test (removed)
@@ -1,26 +0,0 @@
-/*
-Test misplaced program header generates error.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error
-RUN: FileCheck -check-prefix MISPLACED-PROGRAM-PHDR %s < %t1-error
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    text PT_LOAD;
-    header PT_PHDR PHDRS;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :NONE
-  .data : { *(.data) }
-}
-
-/*
-MISPLACED-PROGRAM-PHDR: Program header must precede load segments
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-no-program.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-no-program.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-no-program.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-no-program.test (removed)
@@ -1,25 +0,0 @@
-/*
-Test when no program segment set it's not generated.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix PROGRAM-PHDR %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-PHDR-NOT: Type: PT_PHDR (0x6)
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-one-none.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-one-none.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-one-none.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-one-none.test (removed)
@@ -1,36 +0,0 @@
-/*
-Test when one segment is marked as NONE.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix NONE-PHDRS-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix NONE-PHDRS-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-  text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) } :NONE
-}
-
-/*
-NONE-PHDRS-SECS: .text {{[0-9a-f]+}} 00000000004000b0
-NONE-PHDRS-SECS: .data {{[0-9a-f]+}} 0000000000000000
-
-NONE-PHDRS-HDRS: ProgramHeader {
-NONE-PHDRS-HDRS: Type: PT_LOAD (0x1)
-NONE-PHDRS-HDRS: VirtualAddress: 0x400000
-NONE-PHDRS-HDRS: Flags [ (0x5)
-NONE-PHDRS-HDRS: PF_R (0x4)
-NONE-PHDRS-HDRS: PF_X (0x1)
-NONE-PHDRS-HDRS: ]
-NONE-PHDRS-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-program-flags.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-program-flags.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-program-flags.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-program-flags.test (removed)
@@ -1,33 +0,0 @@
-/*
-Test when program segment contains only FLAGS attribute.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix PROGRAM-FLAGS-PHDR %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR PHDRS FLAGS(0x7);
-    text PT_LOAD FILEHDR PHDRS;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-FLAGS-PHDR: ProgramHeader {
-PROGRAM-FLAGS-PHDR: Type: PT_PHDR (0x6)
-PROGRAM-FLAGS-PHDR: Flags [ (0x7)
-PROGRAM-FLAGS-PHDR: PF_R (0x4)
-PROGRAM-FLAGS-PHDR: PF_W (0x2)
-PROGRAM-FLAGS-PHDR: PF_X (0x1)
-PROGRAM-FLAGS-PHDR: ]
-PROGRAM-FLAGS-PHDR: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-program-good-phdrs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-program-good-phdrs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-program-good-phdrs.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-program-good-phdrs.test (removed)
@@ -1,34 +0,0 @@
-/*
-Test when program segment contains only PHDRS attribute.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix PROGRAM-PHDRS-PHDR %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR PHDRS;
-    text PT_LOAD PHDRS;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-PHDRS-PHDR: ProgramHeader {
-PROGRAM-PHDRS-PHDR: Type: PT_PHDR (0x6)
-PROGRAM-PHDRS-PHDR: VirtualAddress: 0x400040
-PROGRAM-PHDRS-PHDR: MemSize: 168
-PROGRAM-PHDRS-PHDR: Flags [ (0x5)
-PROGRAM-PHDRS-PHDR: PF_R (0x4)
-PROGRAM-PHDRS-PHDR: PF_X (0x1)
-PROGRAM-PHDRS-PHDR: ]
-PROGRAM-PHDRS-PHDR: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-program-no-phdrs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-program-no-phdrs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-program-no-phdrs.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-program-no-phdrs.test (removed)
@@ -1,26 +0,0 @@
-/*
-Test when program segment doesn't contain PHDRS attribute.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error
-RUN: FileCheck -check-prefix PROGRAM-PHDR-NO-PHDRS %s < %t1-error
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR;
-    text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-PHDR-NO-PHDRS: Program header has invalid PHDRS attribute
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-program-wrong-phdrs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-program-wrong-phdrs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-program-wrong-phdrs.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-program-wrong-phdrs.test (removed)
@@ -1,26 +0,0 @@
-/*
-Test when program segment contains PHDRS attribute not mapped to load segment.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: not lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error
-RUN: FileCheck -check-prefix PROGRAM-PHDR-WRONG-PHDRS %s < %t1-error
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    header PT_PHDR PHDRS;
-    text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-PROGRAM-PHDR-WRONG-PHDRS: Program header has invalid PHDRS attribute
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-same-flags.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-same-flags.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-same-flags.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-same-flags.test (removed)
@@ -1,35 +0,0 @@
-/*
-Test sections put to same segment with FLAGS attribute set.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix FLAGS-PHDRS-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix FLAGS-PHDRS-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-    text PT_LOAD FLAGS(0x4);
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-FLAGS-PHDRS-SECS: .text {{[0-9a-f]+}} 00000000004000b0
-FLAGS-PHDRS-SECS: .data {{[0-9a-f]+}} 00000000004000dc
-
-FLAGS-PHDRS-HDRS: ProgramHeader {
-FLAGS-PHDRS-HDRS: Type: PT_LOAD (0x1)
-FLAGS-PHDRS-HDRS: VirtualAddress: 0x400000
-FLAGS-PHDRS-HDRS: Flags [ (0x4)
-FLAGS-PHDRS-HDRS: PF_R (0x4)
-FLAGS-PHDRS-HDRS: ]
-FLAGS-PHDRS-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs-same.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs-same.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs-same.test (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs-same.test (removed)
@@ -1,36 +0,0 @@
-/*
-Test sections put to same segment.
-
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -T %s %t.o -static -o %t1
-RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix SAME-PHDRS-SECS %s
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix SAME-PHDRS-HDRS %s
-*/
-
-ENTRY(_start)
-
-PHDRS
-{
-  text PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :text
-  .data : { *(.data) }
-}
-
-/*
-SAME-PHDRS-SECS: .text {{[0-9a-f]+}} 00000000004000b0
-SAME-PHDRS-SECS: .data {{[0-9a-f]+}} 00000000004000dc
-
-SAME-PHDRS-HDRS: ProgramHeader {
-SAME-PHDRS-HDRS: Type: PT_LOAD (0x1)
-SAME-PHDRS-HDRS: VirtualAddress: 0x400000
-SAME-PHDRS-HDRS: Flags [ (0x5)
-SAME-PHDRS-HDRS: PF_R (0x4)
-SAME-PHDRS-HDRS: PF_X (0x1)
-SAME-PHDRS-HDRS: ]
-SAME-PHDRS-HDRS: }
-*/

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/sections-empty-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/sections-empty-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/sections-empty-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/sections-empty-phdrs.script (removed)
@@ -1,11 +0,0 @@
-ENTRY(_start)
-
-PHDRS
-{
-}
-
-SECTIONS
-{
-  .text : { *(.text) }
-  .data : { *(.data) }
-}

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/sections-no-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/sections-no-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/sections-no-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/sections-no-phdrs.script (removed)
@@ -1,7 +0,0 @@
-ENTRY(_start)
-
-SECTIONS
-{
-  .text : { *(.text) }
-  .data : { *(.data) }
-}

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/sections-none-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/sections-none-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/sections-none-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/sections-none-phdrs.script (removed)
@@ -1,11 +0,0 @@
-ENTRY(_start)
-
-PHDRS
-{
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :NONE
-  .data : { *(.data) }
-}

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/undef-empty-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/undef-empty-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/undef-empty-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/undef-empty-phdrs.script (removed)
@@ -1,11 +0,0 @@
-ENTRY(_start)
-
-PHDRS
-{
-}
-
-SECTIONS
-{
-  .text : { *(.text) }
-  .data : { *(.data) } :phdr
-}

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/undef-id-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/undef-id-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/undef-id-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/undef-id-phdrs.script (removed)
@@ -1,12 +0,0 @@
-ENTRY(_start)
-
-PHDRS
-{
-  phdr PT_LOAD;
-}
-
-SECTIONS
-{
-  .text : { *(.text) } :phdr_wrong
-  .data : { *(.data) }
-}

Removed: lld/trunk/test/old-elf/linkerscript/phdrs/undef-no-phdrs.script
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/phdrs/undef-no-phdrs.script?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/phdrs/undef-no-phdrs.script (original)
+++ lld/trunk/test/old-elf/linkerscript/phdrs/undef-no-phdrs.script (removed)
@@ -1,7 +0,0 @@
-ENTRY(_start)
-
-SECTIONS
-{
-  .text : { *(.text) } :phdr
-  .data : { *(.data) }
-}

Removed: lld/trunk/test/old-elf/linkerscript/sections-order.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/sections-order.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/sections-order.test (original)
+++ lld/trunk/test/old-elf/linkerscript/sections-order.test (removed)
@@ -1,113 +0,0 @@
-/*
-Tests a simple linker script that changes the order of output sections and
-also changes the address of output sections by using simple expressions.
-
-This test uses three X86-64 input objects, prog1.o, prog2.o and prog3.o,
-which were created with the following C or assembly code:
-
-*** prog1.o:
-
-(command line clang -c prog1.c -o prog1.o)
-
-const char *prog2();
-void write(int, const char *, int);
-
-int main() {
-  write(1, prog2(), 14);
-}
-
-*** prog2.o:
-
-(command line clang -c prog2.c -o prog2.o)
-
-const char *prog2() {
- return "Hello, world!\n";
-}
-
-*** prog3.o:
-
-(command line clang -c prog3.S -o prog3.o)
-
-      .globl write
-write:
-      mov $1, %eax
-      syscall
-      ret
-
-      .globl _start
-_start:
-      call	main
-      mov $60, %eax
-      syscall
-      ret
-
-We use the following linker script for this test:
-*/
-
-ENTRY(_start)
-
-SECTIONS
-{
-  . = 0x500000;
-  .text : { prog1.o(.text) }
-  .mystring : { prog2.o(.rodata.str1.1) }
-  . = . + 0x6000;
-  .text.2 : {prog3.o(.text) prog2.o(.text) }
-}
-
-/*
-RUN: mkdir -p %T
-RUN: yaml2obj -format=elf %p/Inputs/prog1.o.yaml -o=%T/prog1.o
-RUN: yaml2obj -format=elf %p/Inputs/prog2.o.yaml -o=%T/prog2.o
-RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/prog3.o
-RUN: cd %T
-
-RUN: lld -flavor old-gnu  -target x86_64 -T %s prog1.o prog2.o prog3.o \
-RUN:   -static -o %t1
-RUN: llvm-readobj -s %t1 | FileCheck -check-prefix CHECKSECTIONS %s
-
-CHECKSECTIONS:       Index: 1
-CHECKSECTIONS:       Name: .text
-CHECKSECTIONS:       Address: 0x500000
-CHECKSECTIONS:       Size: 33
-
-CHECKSECTIONS:       Index: 2
-CHECKSECTIONS:       Name: .mystring
-CHECKSECTIONS:       Address: 0x500021
-CHECKSECTIONS:       Size: 15
-
-CHECKSECTIONS:       Index: 3
-CHECKSECTIONS:       Name: .text.2
-CHECKSECTIONS:       Address: 0x506030
-CHECKSECTIONS:       Size: 48
-
-RUN: llvm-readobj -symbols %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS:      Name: main
-CHECKSYMS-NEXT: Value: 0x500000
-
-CHECKSYMS:      Name: write
-CHECKSYMS-NEXT: Value: 0x506030
-
-CHECKSYMS:      Name: _start
-CHECKSYMS-NEXT: Value: 0x506038
-
-CHECKSYMS:      Name: prog2
-CHECKSYMS-NEXT: Value: 0x506050
-
-RUN: llvm-readobj -program-headers %t1 | FileCheck -check-prefix CHECKPHDRS %s
-
-CHECKPHDRS:           Type: PT_LOAD (0x1)
-CHECKPHDRS:           Offset: 0x1000
-CHECKPHDRS-NEXT:      VirtualAddress: 0x500000
-CHECKPHDRS-NEXT:      PhysicalAddress: 0x500000
-CHECKPHDRS-NEXT:      FileSize: 48
-CHECKPHDRS-NEXT:      MemSize: 48
-
-CHECKPHDRS:           Type: PT_LOAD (0x1)
-CHECKPHDRS:           Offset: 0x2030
-CHECKPHDRS-NEXT:      VirtualAddress: 0x506030
-CHECKPHDRS-NEXT:      PhysicalAddress: 0x506030
-CHECKPHDRS-NEXT:      FileSize: 168
-CHECKPHDRS-NEXT:      MemSize: 168
-*/

Removed: lld/trunk/test/old-elf/linkerscript/sections-with-wildcards.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/sections-with-wildcards.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/sections-with-wildcards.test (original)
+++ lld/trunk/test/old-elf/linkerscript/sections-with-wildcards.test (removed)
@@ -1,88 +0,0 @@
-/*
-Tests a linker script that uses the SECTIONS command with rules containing
-wildcards and simple SORT directives. It also tests that the linker script
-evaluates the expressions in the same order as the one written in the script
-file.
-
-This test uses three X86-64 input objects, prog1.o, prog2.o and prog3.o,
-which were created with the following C or assembly code:
-
-*** prog1.o:
-
-(command line clang -c prog1.c -o prog1.o)
-
-const char *prog2();
-void write(int, const char *, int);
-
-int main() {
-  write(1, prog2(), 14);
-}
-
-*** prog2.o:
-
-(command line clang -c prog2.c -o prog2.o)
-
-const char *prog2() {
- return "Hello, world!\n";
-}
-
-*** prog3.o:
-
-(command line clang -c prog3.S -o prog3.o)
-
-      .globl write
-write:
-      mov $1, %eax
-      syscall
-      ret
-
-      .globl _start
-_start:
-      call	main
-      mov $60, %eax
-      syscall
-      ret
-
-We use the following linker script for this test:
-*/
-
-ENTRY(_start)
-
-SECTIONS
-{
-  my_start_addr = 0x500000;
-  my_symbol = my_start_addr;
-  . = my_symbol;
-  .foo : { SORT(*)(.text .rodata*) }
-}
-
-/*
-RUN: mkdir -p %T
-RUN: yaml2obj -format=elf %p/Inputs/prog1.o.yaml -o=%T/p1.o
-RUN: yaml2obj -format=elf %p/Inputs/prog2.o.yaml -o=%T/p2.o
-RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/p3.o
-RUN: cd %T
-
-RUN: lld -flavor old-gnu  -target x86_64 -T %s p1.o p2.o p3.o \
-RUN:   -static -o %t1
-RUN: llvm-readobj -s %t1 | FileCheck -check-prefix CHECKSECTIONS %s
-
-CHECKSECTIONS:       Index: 1
-CHECKSECTIONS:       Name: .foo
-CHECKSECTIONS:       Address: 0x500000
-CHECKSECTIONS:       Size: 101
-
-RUN: llvm-readobj -symbols %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS:      Name: main
-CHECKSYMS-NEXT: Value: 0x500000
-
-CHECKSYMS:      Name: prog2
-CHECKSYMS-NEXT: Value: 0x500030
-
-CHECKSYMS:      Name: write
-CHECKSYMS-NEXT: Value: 0x500050
-
-CHECKSYMS:      Name: _start
-CHECKSYMS-NEXT: Value: 0x500058
-*/

Removed: lld/trunk/test/old-elf/linkerscript/symbol-definition-so.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/symbol-definition-so.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/symbol-definition-so.test (original)
+++ lld/trunk/test/old-elf/linkerscript/symbol-definition-so.test (removed)
@@ -1,32 +0,0 @@
-/*
-We test whether we can define symbols in a linker script and have them exported
-to the output file symbol table. This test is the same as symbol-definition.test
-but make checking in case of shared library linking.
-
-We use the following linker script for this test:
-*/
-
-SECTIONS
-{
-  .text : { *(.text) }
-  MYSTRING = .;
-  .data : { *(.data) }
-}
-
-/*
-RUN: yaml2obj -format=elf %p/Inputs/simple-pic.o.yaml -o=%t.o
-
-RUN: lld -flavor old-gnu -target x86_64 -shared -T %s %t.o -o %t.so
-RUN: llvm-readobj -s -symbols %t.so | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS:      Name: .data
-CHECKSYMS-NEXT: Type: SHT_PROGBITS
-CHECKSYMS-NEXT: Flags [
-CHECKSYMS-NEXT:   SHF_ALLOC
-CHECKSYMS-NEXT:   SHF_WRITE
-CHECKSYMS-NEXT: ]
-CHECKSYMS-NEXT: Address: 0x401060
-
-CHECKSYMS:      Name: MYSTRING
-CHECKSYMS-NEXT: Value: 0x401060
-*/

Removed: lld/trunk/test/old-elf/linkerscript/symbol-definition.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/symbol-definition.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/symbol-definition.test (original)
+++ lld/trunk/test/old-elf/linkerscript/symbol-definition.test (removed)
@@ -1,54 +0,0 @@
-/*
-We test whether we can define symbols in a linker script and have them exported
-to the output file symbol table.
-
-This test uses a single X86-64 input object, simple.o, created with the
-following X86-64 assembly code:
-
-*** simple.S:
-
-(command line clang -c simple.S -o simple.o)
-
-      .text
-      main:
-        mov $1, %eax
-        movq $1, %rdi
-        movq $msg, %rsi
-        movq $14, %rdx
-        syscall
-        ret
-
-        .globl _start
-      _start:
-        call  main
-        mov $60, %eax
-        syscall
-        ret
-
-      .data
-      msg: .asciz "Hello, World!\n"
-
-
-We use the following linker script for this test:
-*/
-
-ENTRY(_start)
-
-SECTIONS
-{
-  . = 0x500000;
-  .text : { *(.text) }
-  MYSTRING = .;
-  .data : { *(.data) }
-}
-
-/*
-RUN: mkdir -p %T
-RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%T/simple.o
-
-RUN: lld -flavor old-gnu  -target x86_64 -T %s %T/simple.o -static -o %t1
-RUN: llvm-readobj -symbols %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS:      Name: MYSTRING
-CHECKSYMS-NEXT: Value: 0x501000
-*/

Removed: lld/trunk/test/old-elf/linkerscript/valid-script-cli.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/linkerscript/valid-script-cli.objtxt?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/linkerscript/valid-script-cli.objtxt (original)
+++ lld/trunk/test/old-elf/linkerscript/valid-script-cli.objtxt (removed)
@@ -1,23 +0,0 @@
-# Check that the linker script inputs are accepted properly.
-
-# RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/valid.ls -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-# RUN: lld -flavor old-gnu -target x86_64 -T %p/Inputs/valid.ls -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-# RUN: lld -flavor old-gnu -target x86_64 --script=%p/Inputs/valid.ls -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-# RUN: lld -flavor old-gnu -target x86_64 -L%p/Inputs/ -l:valid.ls -r %s \
-# RUN:     --output-filetype=yaml | FileCheck %s
-
-defined-atoms:
-  - name:            main
-    scope:           global
-    content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00, 00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-
-# CHECK: _entry_point

Removed: lld/trunk/test/old-elf/loginputfiles.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/loginputfiles.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/loginputfiles.test (original)
+++ lld/trunk/test/old-elf/loginputfiles.test (removed)
@@ -1,28 +0,0 @@
-# Tests functionality of -t
-#
-# Tests generated using the source files below
-# main file
-# int main()
-# {
-#   fn();
-#   return 0;
-# }
-#
-# archive file
-# int fn()
-# {
-#   return 0;
-# }
-#
-# int fn1()
-# {
-#   return 0;
-# }
-# gcc -c main.c fn.c fn1.c
-
-RUN: lld -flavor old-gnu -target x86_64-linux \
-RUN:   %p/Inputs/mainobj.x86_64 %p/Inputs/libfnarchive.a -t --noinhibit-exec 2>&1 | \
-RUN:   FileCheck -check-prefix INPUTFILES %s
-
-#INPUTFILES: mainobj.x86_64
-#INPUTFILES: libfnarchive.a(fn.o)

Removed: lld/trunk/test/old-elf/mergeatoms.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/mergeatoms.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/mergeatoms.test (original)
+++ lld/trunk/test/old-elf/mergeatoms.test (removed)
@@ -1,6 +0,0 @@
-# Tests that atoms are merged by testing it with --merge-strings option
-RUN: lld -flavor old-gnu -target x86_64-linux --merge-strings -o %t1 \
-RUN:    %p/Inputs/foo.o.x86-64 %p/Inputs/bar.o.x86-64 -e bar1
-RUN: llvm-objdump -s %t1 |  FileCheck -check-prefix=mergeAtoms %s
-
-mergeAtoms:   62617200 666f6f00 bar.foo.

Removed: lld/trunk/test/old-elf/mergeconstants.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/mergeconstants.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/mergeconstants.test (original)
+++ lld/trunk/test/old-elf/mergeconstants.test (removed)
@@ -1,20 +0,0 @@
-# The test checks for mergeable strings that appear in the object file
-RUN: lld -flavor old-gnu --merge-strings --output-filetype=yaml -target x86_64 \
-RUN:   %p/Inputs/constants-merge.x86-64 --noinhibit-exec \
-RUN:   | FileCheck -check-prefix=mergeAtoms %s
-
-mergeAtoms:  - ref-name:        [[CONSTANT:[-a-zA-Z0-9_]+]]
-mergeAtoms:    type:            constant
-mergeAtoms:    content:         [ 62, 61, 72, 66, 6F, 6F, 00 ]
-mergeAtoms:    merge:           by-content
-mergeAtoms:    section-choice:  custom-required
-mergeAtoms:    section-name:    .rodata.str1.1
-mergeAtoms:  - name:            foo
-mergeAtoms:    scope:           global
-mergeAtoms:    type:            data
-mergeAtoms:    content:         [ 00, 00, 00, 00, 00, 00, 00, 00 ]
-mergeAtoms:    alignment:       8
-mergeAtoms:    references:
-mergeAtoms:      - kind:            R_X86_64_64
-mergeAtoms:        offset:          3
-mergeAtoms:        target:          [[CONSTANT]]

Removed: lld/trunk/test/old-elf/mergeglobalatoms.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/mergeglobalatoms.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/mergeglobalatoms.test (original)
+++ lld/trunk/test/old-elf/mergeglobalatoms.test (removed)
@@ -1,11 +0,0 @@
-# ELF files can have mergeable strings which are global!, treat them as global
-# defined atoms
-RUN: lld -flavor old-gnu --output-filetype=yaml %p/Inputs/globalconst.o.x86-64 \
-RUN: --noinhibit-exec -target x86_64 | FileCheck -check-prefix=globalatoms %s
-
-globalatoms:  - name:            mystr
-globalatoms:    scope:           global
-globalatoms:    type:            constant
-globalatoms:    content:         [ 66, 6F, 6F, 62, 61, 72, 00 ]
-globalatoms:    section-choice:  custom-required
-globalatoms:    section-name:    .rodata.str1.1

Removed: lld/trunk/test/old-elf/no-unique-section-names.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/no-unique-section-names.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/no-unique-section-names.test (original)
+++ lld/trunk/test/old-elf/no-unique-section-names.test (removed)
@@ -1,19 +0,0 @@
-# Check handling object files with non-unique named sections.
-
-RUN: lld -flavor old-gnu -target x86_64-linux -shared -o %t \
-RUN:     %p/Inputs/no-unique-section-names.x86-64 
-RUN: llvm-objdump -s %p/Inputs/no-unique-section-names.x86-64 %t \
-RUN:   | FileCheck %s
-
-CHECK:      Contents of section .group:
-CHECK-NEXT:  0000 01000000 08000000
-CHECK-NEXT: Contents of section .text:
-CHECK-NEXT:  0000 [[A1:[0-9a-f]+]] [[A2:[0-9a-f]+]] [[A3:[0-9a-f]+]]
-CHECK-NEXT: Contents of section .group:
-CHECK-NEXT:  0000 01000000 0a000000
-CHECK-NEXT: Contents of section .text:
-CHECK-NEXT:  0000 [[B1:[0-9a-f]+]] [[B2:[0-9a-f]+]] [[B3:[0-9a-f]+]]
-
-CHECK:      Contents of section .text:
-CHECK:       {{[0-9a-f]+}} [[A1]] [[A2]] [[A3]]
-CHECK-NEXT:  {{[0-9a-f]+}} [[B1]] [[B2]] [[B3]]

Removed: lld/trunk/test/old-elf/note.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/note.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/note.test (original)
+++ lld/trunk/test/old-elf/note.test (removed)
@@ -1,50 +0,0 @@
-# Check that the linker is not ignoring input sections.
-# RUN: yaml2obj -format=elf %s > %t.obj
-# RUN: lld -flavor old-gnu -target x86_64 %t.obj -o %t.exe --noinhibit-exec
-# RUN: llvm-readobj -s %t.exe | FileCheck %s
-
-# CHECK: Section {
-# CHECK: Name: .note
-# CHECK-NEXT: Type: SHT_NOTE
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .note
-    Type:            SHT_NOTE
-    AddressAlign:    0x0000000000000001
-    Content:         '00'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .note
-      Type:            STT_SECTION
-      Section:         .note
-...

Removed: lld/trunk/test/old-elf/options/dynamic-linker.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/options/dynamic-linker.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/options/dynamic-linker.test (original)
+++ lld/trunk/test/old-elf/options/dynamic-linker.test (removed)
@@ -1,17 +0,0 @@
-# This tests the functionality of specifying dynamic-linker argument in the
-# command line
-RUN: lld -flavor old-gnu -target x86_64 --dynamic-linker="/xyz.so" \
-RUN:   %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t
-RUN: llvm-objdump -s %t | FileCheck -check-prefix=DYNAMICINTERP1 %s
-RUN: lld -flavor old-gnu -target x86_64 --dynamic-linker="" \
-RUN:   %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t1
-RUN: llvm-objdump -s %t1 | FileCheck -check-prefix=DYNAMICINTERP2 %s
-RUN: lld -flavor old-gnu -target x86_64 -dynamic-linker /xyz.so \
-RUN:   %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t2
-RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=DYNAMICINTERP1 %s
-
-DYNAMICINTERP1:Contents of section .interp:
-DYNAMICINTERP1: 400158 2f78797a 2e736f00                    /xyz.so.
-DYNAMICINTERP2:Contents of section .interp:
-DYNAMICINTERP2: 400158 00
-

Removed: lld/trunk/test/old-elf/options/target-specific-args.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/options/target-specific-args.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/options/target-specific-args.test (original)
+++ lld/trunk/test/old-elf/options/target-specific-args.test (removed)
@@ -1,5 +0,0 @@
-# Test of target specific options
-# RUN: lld -flavor old-gnu -target x86_64 --target1-rel \
-# RUN: %p/../Inputs/foo.o.x86-64 --noinhibit-exec -o %t 2>&1 | FileCheck %s
-
-# CHECK: warning: ignoring unsupported ARM/ELF specific argument: --target1-rel

Removed: lld/trunk/test/old-elf/phdr.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/phdr.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/phdr.test (original)
+++ lld/trunk/test/old-elf/phdr.test (removed)
@@ -1,99 +0,0 @@
-# This test checks emission for program header for ELF binaries
-RUN: lld -flavor old-gnu -target i386-linux -o %t1 -e main %p/Inputs/phdr.i386 \
-RUN:  && llvm-readobj -program-headers %t1 |  FileCheck -check-prefix=I386 %s
-RUN: lld -flavor old-gnu -target x86_64-linux -o %t1 -e _start %p/Inputs/relocs.x86-64 -static \
-RUN:  && llvm-objdump -p %t1 | FileCheck %s -check-prefix=X86_64
-
-
-I386:      ProgramHeaders [
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_PHDR (0x6)
-I386-NEXT:     Offset: 0x34
-I386-NEXT:     VirtualAddress: 0x34
-I386-NEXT:     PhysicalAddress: 0x34
-I386-NEXT:     FileSize: 224
-I386-NEXT:     MemSize: 224
-I386-NEXT:     Flags [ (0x5)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:       PF_X (0x1)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 8
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_INTERP (0x3)
-I386-NEXT:     Offset: 0x114
-I386-NEXT:     VirtualAddress: 0x114
-I386-NEXT:     PhysicalAddress: 0x114
-I386-NEXT:     FileSize: 28
-I386-NEXT:     MemSize: 28
-I386-NEXT:     Flags [ (0x4)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 1
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_LOAD (0x1)
-I386-NEXT:     Offset: 0x0
-I386-NEXT:     VirtualAddress: 0x0
-I386-NEXT:     PhysicalAddress: 0x0
-I386-NEXT:     FileSize: 556
-I386-NEXT:     MemSize: 556
-I386-NEXT:     Flags [ (0x5)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:       PF_X (0x1)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 4096
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_LOAD (0x1)
-I386-NEXT:     Offset: 0x1000
-I386-NEXT:     VirtualAddress: 0x1000
-I386-NEXT:     PhysicalAddress: 0x1000
-I386-NEXT:     FileSize: 260
-I386-NEXT:     MemSize: 260
-I386-NEXT:     Flags [ (0x6)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:       PF_W (0x2)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 4096
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_LOAD (0x1)
-I386-NEXT:     Offset: 0x4000
-I386-NEXT:     VirtualAddress: 0x4000
-I386-NEXT:     PhysicalAddress: 0x4000
-I386-NEXT:     FileSize: 4
-I386-NEXT:     MemSize: 8
-I386-NEXT:     Flags [ (0x6)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:       PF_W (0x2)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 16384
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_DYNAMIC (0x2)
-I386-NEXT:     Offset: 0x1FC
-I386-NEXT:     VirtualAddress: 0x1FC
-I386-NEXT:     PhysicalAddress: 0x1FC
-I386-NEXT:     FileSize: 48
-I386-NEXT:     MemSize: 48
-I386-NEXT:     Flags [ (0x4)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 4
-I386-NEXT:   }
-I386-NEXT:   ProgramHeader {
-I386-NEXT:     Type: PT_GNU_EH_FRAME (0x6474E550)
-I386-NEXT:     Offset: 0x1F4
-I386-NEXT:     VirtualAddress: 0x1F4
-I386-NEXT:     PhysicalAddress: 0x1F4
-I386-NEXT:     FileSize: 8
-I386-NEXT:     MemSize: 8
-I386-NEXT:     Flags [ (0x4)
-I386-NEXT:       PF_R (0x4)
-I386-NEXT:     ]
-I386-NEXT:     Alignment: 4
-I386-NEXT:   }
-
-X86_64: LOAD off    0x0000000000000000
-X86_64: LOAD off    0x0000000000001000

Removed: lld/trunk/test/old-elf/quickdata.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/quickdata.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/quickdata.test (original)
+++ lld/trunk/test/old-elf/quickdata.test (removed)
@@ -1,15 +0,0 @@
-RUN: lld -flavor old-gnu -target hexagon --output-filetype=yaml %p/Inputs/quickdata-test.elf-hexagon \
-RUN: --noinhibit-exec | FileCheck %s -check-prefix hexagon
-
-hexagon:  - name:            ac1
-hexagon:    scope:           global
-hexagon:    type:            zero-fill-quick
-hexagon:    size:            1
-hexagon:    merge:           as-tentative
-hexagon:  - name:            init
-hexagon:    scope:           global
-hexagon:    type:            quick-data
-hexagon:  - name:            bss1
-hexagon:    scope:           global
-hexagon:    type:            zero-fill-quick
-

Removed: lld/trunk/test/old-elf/reloc.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/reloc.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/reloc.test (original)
+++ lld/trunk/test/old-elf/reloc.test (removed)
@@ -1,38 +0,0 @@
-RUN: lld -flavor old-gnu -target i386 --merge-strings -r --output-filetype=yaml \
-RUN:   %p/Inputs/reloc-test.elf-i386 | FileCheck %s -check-prefix ELF-i386
-
-ELF-i386: defined-atoms:
-ELF-i386:   - ref-name:        [[STRNAMEA:[-a-zA-Z0-9_]+]]
-ELF-i386:     type:            constant
-ELF-i386:     content:         [ 68, 65, 6C, 6C, 6F, 20, 77, 6F, 72, 6C, 64, 00 ]
-ELF-i386:     merge:           by-content
-ELF-i386:   - ref-name:        [[STRNAMEB:[-a-zA-Z0-9_]+]]
-ELF-i386:     alignment:       16
-ELF-i386:     section-choice:  custom-required
-ELF-i386:     section-name:    .text.startup
-ELF-i386:     references:
-ELF-i386:       - kind:            layout-after
-ELF-i386:         offset:          0
-ELF-i386:         target:          main
-ELF-i386:   - name:            main
-ELF-i386:     scope:           global
-ELF-i386:     content:         [ 55, 89, E5, 83, E4, F0, 83, EC, 10, C7, 04, 24,
-ELF-i386:                        00, 00, 00, 00, E8, FC, FF, FF, FF, 31, C0, C9,
-ELF-i386:                        C3 ]
-ELF-i386:     alignment:       16
-ELF-i386:     section-choice:  custom-required
-ELF-i386:     section-name:    .text.startup
-ELF-i386:     references:
-ELF-i386:       - kind:            R_386_32
-ELF-i386:         offset:          12
-ELF-i386:         target:          [[STRNAMEA]]
-ELF-i386:       - kind:            R_386_PC32
-ELF-i386:         offset:          17
-ELF-i386:         target:          puts
-ELF-i386:         addend:          252
-ELF-i386: undefined-atoms:
-ELF-i386:   - name:            puts
-ELF-i386: absolute-atoms:
-ELF-i386:   - name:            test.c
-ELF-i386:     scope:           static
-ELF-i386:     value:           0x0000000000000000

Removed: lld/trunk/test/old-elf/responsefile.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/responsefile.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/responsefile.test (original)
+++ lld/trunk/test/old-elf/responsefile.test (removed)
@@ -1,6 +0,0 @@
-# RUN: not lld -flavor old-gnu --abc @%p/Inputs/responsefile --baz >& %t.log
-# RUN: FileCheck %s < %t.log
-
-CHECK: warning: ignoring unknown argument: --abc
-CHECK: warning: ignoring unknown argument: --inresponsefile
-CHECK: warning: ignoring unknown argument: --baz

Removed: lld/trunk/test/old-elf/rodata.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/rodata.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/rodata.test (original)
+++ lld/trunk/test/old-elf/rodata.test (removed)
@@ -1,5 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64-linux -o %t %p/Inputs/constdata.x86-64 \
-RUN:   -static -e _start
-RUN: llvm-objdump -s %t | FileCheck %s
-
-CHECK: Hellooooooooo

Removed: lld/trunk/test/old-elf/rosegment.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/rosegment.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/rosegment.test (original)
+++ lld/trunk/test/old-elf/rosegment.test (removed)
@@ -1,26 +0,0 @@
-# Tests that the option --rosegment produces an output file with a separate
-# segment created for read only data.
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/rodata.o -o %t1.elf \
-RUN: --noinhibit-exec
-RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/rodata.o --rosegment -o %t2.elf \
-RUN: --noinhibit-exec
-RUN: llvm-readobj -program-headers %t1.elf | FileCheck %s -check-prefix=NORO-SEGMENT
-RUN: llvm-readobj -program-headers %t2.elf | FileCheck %s -check-prefix=RO-SEGMENT
-
-#NORO-SEGMENT:    Type: PT_PHDR
-#NORO-SEGMENT:    Type: PT_INTERP
-#NORO-SEGMENT:    Type: PT_LOAD
-#NORO-SEGMENT:    Type: PT_LOAD
-#NORO-SEGMENT:    Type: PT_DYNAMIC
-#NORO-SEGMENT:    Type: PT_GNU_EH_FRAME
-
-#RO-SEGMENT:    Type: PT_PHDR
-#RO-SEGMENT:    Type: PT_INTERP
-#RO-SEGMENT:    Type: PT_LOAD
-#RO-SEGMENT:    Type: PT_LOAD
-#RO-SEGMENT:   Flags [
-#RO-SEGMENT:      PF_R (0x4)
-#RO-SEGMENT:    ]
-#RO-SEGMENT:    Type: PT_LOAD
-#RO-SEGMENT:    Type: PT_DYNAMIC
-#RO-SEGMENT:    Type: PT_GNU_EH_FRAME

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-new-members.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-new-members.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-new-members.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-new-members.test (removed)
@@ -1,151 +0,0 @@
-# Checks that the linker picks the first group in the output file when the file
-# have some members dont appear in the first group.
-# 1a.s
-# ------
-#
-#    .section .text,"axG",%progbits,foo_group,comdat
-#    .weak foo
-#foo:
-#    .word 0
-# 1b.s
-# -----
-#    .section .text,"axG",%progbits,foo_group,comdat
-#    .global foo
-#    .global bar
-#foo:
-#    .word 0
-#bar:
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.group1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.group1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGROUP < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGROUPSECTIONS
-#RUN: llvm-readobj -symbols  %t2.out | FileCheck %s -check-prefix=CHECKSYMBOLS
-#CHECKGROUP:  - name:            foo
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    merge:           as-weak
-#CHECKGROUP:    section-name:    .text
-#CHECKGROUP:  - name:            foo_group
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    type:            group-comdat
-#CHECKGROUP:    section-choice:  custom-required
-#CHECKGROUP:    section-name:    .group
-#CHECKGROUP:    permissions:     ---
-#CHECKGROUP:    references:
-#CHECKGROUP:      - kind:            group-child
-#CHECKGROUP:        offset:          0
-#CHECKGROUP:        target:          foo
-#CHECKGROUPSECTIONS:  Section {
-#CHECKGROUPSECTIONS:    Name: .text
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [ (0x6)
-#CHECKGROUPSECTIONS:      SHF_ALLOC (0x2)
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR (0x4)
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 2
-#CHECKGROUPSECTIONS:    AddressAlignment: 1
-#CHECKGROUPSECTIONS:  }
-#CHECKSYMBOLS:   Name: foo
-#CHECKSYMBOLS:   Type: Function
-#CHECKSYMBOLS:   Section: .text
-#CHECKSYMBOLS-NOT:   Name: bar
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo_group
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-Symbols:
-  Local:
-    - Name:            foo_group
-      Section:         .group
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Weak:
-    - Name:            foo
-      Section:         .text
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo_group
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-Symbols:
-  Local:
-    - Name:            foo_group
-      Section:         .group
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            bar
-      Section:         .text
-      Value:           0x0000000000000002
-    - Name:            foo
-      Section:         .text
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-simple.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-simple.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-simple.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-simple.test (removed)
@@ -1,144 +0,0 @@
-# Checks that the linker picks the first group in the output file when the file
-# have some members dont appear in the first group.
-# 1a.s
-# ------
-#    .section .text,"axG",%progbits,foo_group,comdat
-#    .weak foo
-#foo:
-#    .word 0
-# 1b.s
-# -----
-#    .section .text,"axG",%progbits,foo_group,comdat
-#    .global bar
-#bar:
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.group1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.group1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGROUP < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGROUPSECTIONS
-#RUN: llvm-readobj -symbols %t2.out | FileCheck %s -check-prefix=CHECKSYMBOLS
-#CHECKGROUP:  - name:            foo
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    merge:           as-weak
-#CHECKGROUP:    section-name:    .text
-#CHECKGROUP:  - name:            foo_group
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    type:            group-comdat
-#CHECKGROUP:    section-choice:  custom-required
-#CHECKGROUP:    section-name:    .group
-#CHECKGROUP:    permissions:     ---
-#CHECKGROUP:    references:
-#CHECKGROUP:      - kind:            group-child
-#CHECKGROUP:        offset:          0
-#CHECKGROUP:        target:          foo
-#CHECKGROUPSECTIONS:  Section {
-#CHECKGROUPSECTIONS:    Name: .text
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [ (0x6)
-#CHECKGROUPSECTIONS:      SHF_ALLOC (0x2)
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR (0x4)
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 2
-#CHECKGROUPSECTIONS:    AddressAlignment: 1
-#CHECKGROUPSECTIONS:  }
-#CHECKSYMBOLS:   Name: foo
-#CHECKSYMBOLS:   Type: Function
-#CHECKSYMBOLS:   Section: .text
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo_group
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-Symbols:
-  Local:
-    - Name:            foo_group
-      Section:         .group
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Weak:
-    - Name:            foo
-      Section:         .text
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo_group
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-Symbols:
-  Local:
-    - Name:            foo_group
-      Section:         .group
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            bar
-      Section:         .text
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member-other.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member-other.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member-other.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member-other.test (removed)
@@ -1,156 +0,0 @@
-# Tests that linker throws an error for an undefined symbol in the section
-# group, which is the same as the signature in the next input file.
-# comdat1.s
-# ------------
-# .section .foo,"axG", at progbits,g1,comdat
-# .word g1
-#comdat2.s
-#-----------
-#  .global g1
-#  .section .bar,"axG", at progbits,g1,comdat
-#g2:
-#   nop
-#  .section .car,"axG", at progbits,g1,comdat
-#g3:
-#   nop
-#
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.group1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.group1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec -o %t2.out 2>&1 | FileCheck %s
-#CHECK: Undefined symbol: {{.*}} g1
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-      - SectionOrType:   .rela.foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-  - Name:            .rela.foo
-    Type:            SHT_RELA
-    Flags:           [ SHF_GROUP ]
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .foo
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          g1
-        Type:            R_X86_64_16
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-    - Name:            .group
-      Type:            STT_SECTION
-      Section:         .group
-  Global:
-    - Name:            g1
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .bar
-      - SectionOrType:   .car
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '90'
-  - Name:            .car
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '90'
-Symbols:
-  Local:
-    - Name:            g2
-      Section:         .bar
-    - Name:            g3
-      Section:         .car
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .bar
-      Type:            STT_SECTION
-      Section:         .bar
-    - Name:            .car
-      Type:            STT_SECTION
-      Section:         .car
-    - Name:            .group
-      Type:            STT_SECTION
-      Section:         .group
-  Global:
-    - Name:            g1
-      Section:         .group
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-undef-member.test (removed)
@@ -1,142 +0,0 @@
-# Tests that linker throws an error for an undefined symbol in the section
-# group.
-#
-#comdata.s
-#------------
-#  .section .foo,"axG", at progbits,g1,comdat
-#  .word g1
-#
-#comdatb.s
-#------------
-#  .global g1
-#  .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#  nop
-#
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.group1a.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.group1b.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.group1a.o %t.group1b.o \
-#RUN: --noinhibit-exec -o %t2.out 2>&1 | FileCheck %s
-#CHECK: Undefined symbol: {{.*}} g1
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-      - SectionOrType:   .rela.foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-  - Name:            .rela.foo
-    Type:            SHT_RELA
-    Flags:           [ SHF_GROUP ]
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .foo
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          g1
-        Type:            R_X86_64_16
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-    - Name:            .group
-      Type:            STT_SECTION
-      Section:         .group
-  Global:
-    - Name:            g1
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '90'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-    - Name:            .group
-      Type:            STT_SECTION
-      Section:         .group
-  Global:
-    - Name:            g1
-      Section:         .foo
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-globalsymbols.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-globalsymbols.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-globalsymbols.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-globalsymbols.test (removed)
@@ -1,250 +0,0 @@
-# This tests that comdat weak symbol can be overridden by a global symbol.
-# comdat1.s
-#------------------------
-#	.weak g1
-#        .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#        nop
-#        .global g2
-#g2:
-#        nop
-#!
-#
-#comdat2.s << \!
-#-----------------
-#	.global g1
-#        .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#        nop
-#        .global g2
-#g2:
-#        nop
-#
-#cat > g1.c << \!
-#int g1() {
-#  return 0;
-#}
-#
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.comdat1.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.comdat2.o
-#RUN: yaml2obj -format=elf -docnum 3 %s -o %t.g1.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGROUP < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGROUPSECTIONS
-#RUN: llvm-readobj -symbols %t2.out | FileCheck %s -check-prefix=CHECKSYMBOLS
-#CHECKGROUP:  - name:            g2
-#CHECKGROUP:    content:         [ 90 ]
-#CHECKGROUP:    section-choice:  custom-required
-#CHECKGROUP:    section-name:    .foo
-#CHECKGROUP:  - name:            g1
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    content:         [ 55, 48, 89, E5, 31, C0, 5D, C3 ]
-#CHECKGROUP:    alignment:       16
-#CHECKGROUP:    section-name:    .text
-#CHECKGROUPSECTIONS:    Name: .text
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [
-#CHECKGROUPSECTIONS:      SHF_ALLOC
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 8
-#CHECKGROUPSECTIONS:    Name: .foo
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [
-#CHECKGROUPSECTIONS:      SHF_ALLOC
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 2
-#CHECKSYMBOLS:    Name: g2
-#CHECKSYMBOLS:    Section: .foo
-#CHECKSYMBOLS:    Name: g1
-#CHECKSYMBOLS:    Section: .text
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '9090'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g2
-      Section:         .foo
-      Value:           0x0000000000000001
-  Weak:
-    - Name:            g1
-      Section:         .foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '9090'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g1
-      Section:         .foo
-    - Name:            g2
-      Section:         .foo
-      Value:           0x0000000000000001
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E531C05DC3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232393535372920286C6C766D2F7472756E6B203232393536332900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C0708900100001C0000001C000000000000000800000000410E108602430D0600000000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            g1.c
-      Type:            STT_FILE
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            g1
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000008
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-external-reference.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-external-reference.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-external-reference.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-external-reference.test (removed)
@@ -1,236 +0,0 @@
-# This tests that comdat undef symbol is overridden by a global symbol.
-# comdat1.s
-#------------------------
-#        .global g1
-#        .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#	.word 5
-#
-#comdat2.s << \!
-#-----------------
-#	.global g1
-#        .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#        nop
-#
-#g1.c
-#-----------
-#extern int g1;
-#int fn() { return g1;}
-#
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.comdat1.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.comdat2.o
-#RUN: yaml2obj -format=elf -docnum 3 %s -o %t.g1.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGROUP < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGROUPSECTIONS
-#RUN: llvm-readobj -symbols %t2.out | FileCheck %s -check-prefix=CHECKSYMBOLS
-#CHECKGROUP:  - name:            g1
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    content:         [ 05, 00 ]
-#CHECKGROUP:    section-name:    .foo
-#CHECKGROUPSECTIONS:  Section {
-#CHECKGROUPSECTIONS:    Name: .foo
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [
-#CHECKGROUPSECTIONS:      SHF_ALLOC
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 2
-#CHECKGROUPSECTIONS:  }
-#CHECKSYMBOLS:    Name: g1
-#CHECKSYMBOLS:    Section: .foo
-#CHECKSYMBOLS:    Name: fn
-#CHECKSYMBOLS:    Section: .text
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0500'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g1
-      Section:         .foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '90'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g1
-      Section:         .foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E58B0425000000005DC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000007
-        Symbol:          g1
-        Type:            R_X86_64_32S
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232393535372920286C6C766D2F7472756E6B203232393536332900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C0708900100001C0000001C000000000000000D00000000410E108602430D0600000000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            global-g1.c
-      Type:            STT_FILE
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            fn
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            g1
-...

Removed: lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-signature.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-signature.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-signature.test (original)
+++ lld/trunk/test/old-elf/sectionGroups/sectiongroup-with-undef-signature.test (removed)
@@ -1,219 +0,0 @@
-# This tests that comdat undef symbol is overridden by a global symbol.
-# comdat1.s
-#------------------------
-# .section .foo,"axG", at progbits,g1,comdat
-# word g1
-#
-#comdat2.s << \!
-#-----------------
-#    .global g1
-#    .section .foo,"axG", at progbits,g1,comdat
-#g1:
-#        nop
-#
-#global-g1.c
-#-----------
-#int g1=10;
-#
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.comdat1.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.comdat2.o
-#RUN: yaml2obj -format=elf -docnum 3 %s -o %t.g1.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec --output-filetype=yaml -o %t2.out.yaml
-#RUN: lld -flavor old-gnu -target x86_64 %t.comdat1.o %t.comdat2.o \
-#RUN: %t.g1.o --noinhibit-exec -o %t2.out
-#RUN: FileCheck %s -check-prefix=CHECKGROUP < %t2.out.yaml
-#RUN: llvm-readobj -sections %t2.out | FileCheck %s -check-prefix=CHECKGROUPSECTIONS
-#RUN: llvm-readobj -symbols %t2.out | FileCheck %s -check-prefix=CHECKSYMBOLS
-#CHECKGROUP:  - name:            g1
-#CHECKGROUP:    scope:           global
-#CHECKGROUP:    content:         [ 0A, 00, 00, 00 ]
-#CHECKGROUP:    section-name:    .data
-#CHECKGROUPSECTIONS:    Name: .foo
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [
-#CHECKGROUPSECTIONS:      SHF_ALLOC
-#CHECKGROUPSECTIONS:      SHF_EXECINSTR
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 2
-#CHECKGROUPSECTIONS:    Name: .data
-#CHECKGROUPSECTIONS:    Type: SHT_PROGBITS
-#CHECKGROUPSECTIONS:    Flags [
-#CHECKGROUPSECTIONS:      SHF_ALLOC
-#CHECKGROUPSECTIONS:      SHF_WRITE
-#CHECKGROUPSECTIONS:    ]
-#CHECKGROUPSECTIONS:    Size: 4
-#CHECKSYMBOLS:    Name: g1
-#CHECKSYMBOLS:    Section: .data
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-      - SectionOrType:   .rela.foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '0000'
-  - Name:            .rela.foo
-    Type:            SHT_RELA
-    Flags:           [ SHF_GROUP ]
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .foo
-    Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          g1
-        Type:            R_X86_64_16
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g1
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            g1
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .foo
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000001
-    Content:         '90'
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .foo
-      Type:            STT_SECTION
-      Section:         .foo
-  Global:
-    - Name:            g1
-      Section:         .foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         0A000000
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232393535372920286C6C766D2F7472756E6B203232393536332900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-Symbols:
-  Local:
-    - Name:            global-g1.c
-      Type:            STT_FILE
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-  Global:
-    - Name:            g1
-      Type:            STT_OBJECT
-      Section:         .data
-      Size:            0x0000000000000004
-...

Removed: lld/trunk/test/old-elf/sections.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sections.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sections.test (original)
+++ lld/trunk/test/old-elf/sections.test (removed)
@@ -1,142 +0,0 @@
-# This test checks if sections are created properly in the output that appear in
-# the input
-RUN: lld -flavor old-gnu -target i386 -o %t1 %p/Inputs/section-test.i386 \
-RUN:    -static -e baz
-RUN: llvm-objdump -section-headers %t1 |  FileCheck -check-prefix=OBJDUMP %s
-RUN: llvm-readobj -h -s -t %t1 |  FileCheck -check-prefix=READOBJ %s
-
-OBJDUMP:  0               00000000 0000000000000000
-OBJDUMP:  1 .text         0000000a 0000000000000074 TEXT DATA
-OBJDUMP:  2 .data         00000004 0000000000001000 DATA
-OBJDUMP:  3 .special      00000004 0000000000001004 DATA
-OBJDUMP:  4 .anotherspecial 00000004 0000000000001008 DATA
-OBJDUMP:  5 .bss          00000004 000000000000100c BSS
-OBJDUMP:  6 .shstrtab     {{[0-9a-f]+}} 0000000000000000
-OBJDUMP:  7 .symtab       {{[0-9a-f]+}} 0000000000000000
-OBJDUMP:  8 .strtab       {{[0-9a-f]+}} 0000000000000000
-
-READOBJ: Format: ELF32-i386
-READOBJ: Arch: i386
-READOBJ: AddressSize: 32bit
-READOBJ: ElfHeader {
-READOBJ:   Ident {
-READOBJ:     DataEncoding: LittleEndian (0x1)
-READOBJ:   }
-READOBJ:   Machine: EM_386
-READOBJ: }
-
-READOBJ: Sections [
-READOBJ:   Section {
-READOBJ:     Index: 0
-READOBJ:     Name: (0)
-READOBJ:     Type: SHT_NULL
-READOBJ:     Flags [ (0x0)
-READOBJ:     ]
-READOBJ:     Address: 0x0
-READOBJ:     Size: 0
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 1
-READOBJ:     Name: .text
-READOBJ:     Type: SHT_PROGBITS
-READOBJ:     Flags [ (0x6)
-READOBJ:       SHF_ALLOC
-READOBJ:       SHF_EXECINSTR
-READOBJ:     ]
-READOBJ:     Address: 0x74
-READOBJ:     Size: 10
-READOBJ:     AddressAlignment: 4
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 2
-READOBJ:     Name: .data
-READOBJ:     Type: SHT_PROGBITS
-READOBJ:     Flags [ (0x3)
-READOBJ:       SHF_ALLOC
-READOBJ:       SHF_WRITE
-READOBJ:     ]
-READOBJ:     Address: 0x1000
-READOBJ:     Size: 4
-READOBJ:     AddressAlignment: 4
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 3
-READOBJ:     Name: .special
-READOBJ:     Type: SHT_PROGBITS
-READOBJ:     Flags [ (0x3)
-READOBJ:       SHF_ALLOC
-READOBJ:       SHF_WRITE
-READOBJ:     ]
-READOBJ:     Address: 0x1004
-READOBJ:     Size: 4
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 4
-READOBJ:     Name: .anotherspecial
-READOBJ:     Type: SHT_PROGBITS
-READOBJ:     Flags [ (0x3)
-READOBJ:       SHF_ALLOC
-READOBJ:       SHF_WRITE
-READOBJ:     ]
-READOBJ:     Address: 0x1008
-READOBJ:     Size: 4
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 5
-READOBJ:     Name: .bss
-READOBJ:     Type: SHT_NOBITS
-READOBJ:     Flags [ (0x3)
-READOBJ:       SHF_ALLOC
-READOBJ:       SHF_WRITE
-READOBJ:     ]
-READOBJ:     Address: 0x100C
-READOBJ:     Size: 4
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 6
-READOBJ:     Name: .shstrtab
-READOBJ:     Type: SHT_STRTAB
-READOBJ:     Flags [ (0x0)
-READOBJ:     ]
-READOBJ:     Address: 0x0
-READOBJ:     Link: 0
-READOBJ:     AddressAlignment: 1
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 7
-READOBJ:     Name: .symtab
-READOBJ:     Type: SHT_SYMTAB
-READOBJ:     Flags [ (0x0)
-READOBJ:     ]
-READOBJ:     Address: 0x0
-READOBJ:     Link: 8
-READOBJ:     AddressAlignment: 4
-READOBJ:     EntrySize: 16
-READOBJ:   }
-READOBJ:   Section {
-READOBJ:     Index: 8
-READOBJ:     Name: .strtab
-READOBJ:     Type: SHT_STRTAB
-READOBJ:     Flags [ (0x0)
-READOBJ:     ]
-READOBJ:     Address: 0x0
-READOBJ:   }
-READOBJ: ]
-
-READOBJ: Symbols [
-READOBJ:   Symbol {
-READOBJ:     Name: baz
-READOBJ:     Value: 0x74
-READOBJ:     Size: 10
-READOBJ:     Binding: Global
-READOBJ:     Type: Function
-READOBJ:     Section: .text
-READOBJ:   }
-READOBJ:   Symbol {
-READOBJ:     Name: y
-READOBJ:     Value: 0x1004
-READOBJ:     Size: 4
-READOBJ:     Binding: Global
-READOBJ:     Type: Object
-READOBJ:     Section: .special
-READOBJ:   }

Removed: lld/trunk/test/old-elf/sh_addralign.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/sh_addralign.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/sh_addralign.test (original)
+++ lld/trunk/test/old-elf/sh_addralign.test (removed)
@@ -1,37 +0,0 @@
-# Check handling of section alignment.
-# RUN: yaml2obj -format=elf %s > %t-obj
-# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj
-# RUN: llvm-objdump -h %t-exe | FileCheck %s
-
-# CHECK: 8 .data         00000000 0000000000402000 DATA
-
-!ELF
-FileHeader: !FileHeader
-  Class: ELFCLASS64
-  Data: ELFDATA2LSB
-  Type: ET_REL
-  Machine: EM_AARCH64
-
-Sections:
-- Name: .text
-  Type: SHT_PROGBITS
-  Content: ''
-  AddressAlign: 0
-  Flags: [SHF_ALLOC, SHF_EXECINSTR]
-- Name:            .bss
-  Type:            SHT_NOBITS
-  Flags:           [ SHF_WRITE, SHF_ALLOC ]
-  AddressAlign:    1
-  Size:            0x1000
-- Name: .data
-  Type: SHT_PROGBITS
-  Content: ''
-  AddressAlign: 4096
-  Flags: [SHF_ALLOC, SHF_WRITE]
-
-Symbols:
-  Global:
-    - Name: _start
-      Section: .text
-      Value: 0x0
-      Size: 4

Removed: lld/trunk/test/old-elf/shndx.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/shndx.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/shndx.test (original)
+++ lld/trunk/test/old-elf/shndx.test (removed)
@@ -1,18 +0,0 @@
-Test that we can handle shndx. The test file has a shndx despite having only
-a few sections. One might consider it invalid, but it has a clear interpretation
-and avoids needing 65K sections to test the corresponding code path.
-
-RUN: lld -target x86_64-pc-linux -flavor old-gnu %p/Inputs/shndx.o-x86_64 -o %t.so -shared
-RUN: llvm-readobj -s -t %t.so | FileCheck %s
-
-CHECK:       Name: .text
-CHECK-NEXT:  Type: SHT_PROGBITS (0x1)
-CHECK-NEXT:  Flags [ (0x6)
-CHECK-NEXT:    SHF_ALLOC (0x2)
-CHECK-NEXT:    SHF_EXECINSTR (0x4)
-CHECK-NEXT:  ]
-CHECK-NEXT:  Address: [[ADDR:.*]]
-
-// CHECK:      Symbol {
-// CHECK:        Name: foo
-// CHECK-NEXT:   Value: [[ADDR]]

Removed: lld/trunk/test/old-elf/soname.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/soname.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/soname.test (original)
+++ lld/trunk/test/old-elf/soname.test (removed)
@@ -1,6 +0,0 @@
-RUN: lld -flavor old-gnu -shared -target i386 -e main %p/Inputs/writersyms.o \
-RUN:   -o %t -soname libtest.so
-RUN: llvm-readobj -dynamic-table %t | FileCheck %s
-
-CHECK: LoadName: libtest.so
-CHECK: 0x0000000E SONAME LibrarySoname (libtest.so)

Removed: lld/trunk/test/old-elf/start-stop-sym.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/start-stop-sym.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/start-stop-sym.test (original)
+++ lld/trunk/test/old-elf/start-stop-sym.test (removed)
@@ -1,108 +0,0 @@
-# Check __start_XXX and __stop_XXX symbols handling where XXX
-# is a section name which can be represented as a C identifier.
-
-# RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o
-# RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o
-# RUN: lld -flavor old-gnu -target mipsel -static -e T0 -o %t.exe %t1.o %t2.o
-# RUN: llvm-objdump -s -t %t.exe | FileCheck %s
-
-# CHECK:      Contents of section .text:
-# CHECK-NEXT:  400080 a0004000 b4004000 00000000 00000000
-#                     ^ start of _csec section
-#                              ^ end of _csec section
-# CHECK-NEXT:  400090 a0004000 b4004000
-# CHECK-NEXT: Contents of section _csec:
-# CHECK-NEXT:  4000a0 00000000 00000000 00000000 00000000
-# CHECK-NEXT:  4000b0 00000000
-
-# CHECK: 004000a0  g  *ABS*  00000000 __start__csec
-# CHECK: 004000b4  g  *ABS*  00000000 __stop__csec
-
----
-FileHeader:
-  Class:    ELFCLASS32
-  Data:     ELFDATA2LSB
-  Type:     ET_REL
-  Machine:  EM_MIPS
-  Flags:    [EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  16
-    Size:          8
-
-  - Name:          .rel.text
-    Type:          SHT_REL
-    Link:          .symtab
-    AddressAlign:  4
-    Info:          .text
-    Relocations:
-      - Offset:  0
-        Symbol:  __start__csec
-        Type:    R_MIPS_32
-      - Offset:  4
-        Symbol:  __stop__csec
-        Type:    R_MIPS_32
-
-  - Name:          _csec
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC ]
-    AddressAlign:  16
-    Size:          4
-
-Symbols:
-  Weak:
-    - Name:     __start__csec
-    - Name:     __stop__csec
-  Global:
-    - Name:     T0
-      Type:     STT_FUNC
-      Section:  .text
-      Size:     8
-
----
-FileHeader:
-  Class:    ELFCLASS32
-  Data:     ELFDATA2LSB
-  Type:     ET_REL
-  Machine:  EM_MIPS
-  Flags:    [EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
-
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:  16
-    Size:          8
-
-  - Name:          .rel.text
-    Type:          SHT_REL
-    Link:          .symtab
-    AddressAlign:  4
-    Info:          .text
-    Relocations:
-      - Offset:  0
-        Symbol:  __start__csec
-        Type:    R_MIPS_32
-      - Offset:  4
-        Symbol:  __stop__csec
-        Type:    R_MIPS_32
-
-  - Name:          _csec
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC ]
-    AddressAlign:  16
-    Size:          4
-
-Symbols:
-  Weak:
-    - Name:     __start__csec
-    - Name:     __stop__csec
-  Global:
-    - Name:     T1
-      Type:     STT_FUNC
-      Section:  .text
-      Size:     8
-...

Removed: lld/trunk/test/old-elf/strip-all.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/strip-all.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/strip-all.test (original)
+++ lld/trunk/test/old-elf/strip-all.test (removed)
@@ -1,108 +0,0 @@
-# Tests the --strip-all (-s) flag.
-# We expect that .symtab and .strtab are stripped from the final executable.
-#
-# The following code was used to generate the object.
-# $ clang -c blah.c -o blah
-#
-# void
-# callMeMaybe(int *v)
-# {
-#	*v += 1;
-# }
-#
-# int
-# main(void)
-# {
-#
-#	int blah = 42;
-#	callMeMaybe(&blah);
-# }
-
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -e=main --strip-all -o %t1
-#RUN: llvm-objdump -section-headers %t1 | FileCheck %s
-
-#CHECK:  14 .shstrtab     0000007d 0000000000000000
-#CHECK-NOT:  15 .symtab       00000198 0000000000000000
-#CHECK-NOT:  16 .strtab       000000e4 0000000000000000
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E548897DF8488B7DF88B07050100000089075DC3660F1F840000000000554889E54883EC10488D7DFCC745FC2A000000E8C8FFFFFFB8000000004883C4105DC3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         004672656542534420636C616E672076657273696F6E20332E342E312028746167732F52454C454153455F33342F646F74312D66696E616C203230383033322920323031343035313200
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000017A5200017810011B0C070890010000180000001C000000000000001700000000410E108602430D060000001800000038000000000000002300000000410E108602430D06000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-      - Offset:          0x000000000000003C
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-        Addend:          32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            callMeMaybe
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000017
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000020
-      Size:            0x0000000000000023
-...

Removed: lld/trunk/test/old-elf/stripped-empty.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/stripped-empty.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/stripped-empty.test (original)
+++ lld/trunk/test/old-elf/stripped-empty.test (removed)
@@ -1,4 +0,0 @@
-RUN: lld -flavor old-gnu -shared -o test.so \
-RUN:   -target x86_64 %p/Inputs/stripped-empty.x86_64
-
-test that we handle files without a symbol table.

Removed: lld/trunk/test/old-elf/symbols.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/symbols.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/symbols.test (original)
+++ lld/trunk/test/old-elf/symbols.test (removed)
@@ -1,33 +0,0 @@
-# Tests the functionality of archive libraries reading
-# and resolution
-# Note: The binary files would not be required once we have support to generate
-# binary archives from textual(yaml) input
-#
-# Tests generated using the source files below
-# main file
-#
-#extern int __bss_start  __attribute__ ((weak));
-#int a;
-#int main()
-#{
-#  return 0;
-#}
-#
-
-RUN: lld -flavor old-gnu  -target i386 -e main %p/Inputs/writersyms.o -o %t1
-RUN: llvm-nm -n %t1 | FileCheck -check-prefix CHECKSYMS %s
-RUN: lld -flavor old-gnu -shared -target i386 -e main %p/Inputs/writersyms.o -o %t1
-RUN: llvm-nm -n %t1 | FileCheck -check-prefix CHECKSHAREDSYMS %s
-
-CHECKSYMS:  {{[0-9a-f]+}} a 1.c
-CHECKSYMS:  {{[0-9a-f]+}} T main
-CHECKSYMS:  {{[0-9a-f]+}} A __bss_start
-CHECKSYMS:  {{[0-9a-f]+}} B a
-CHECKSYMS:  {{[0-9a-f]+}} A __bss_end
-CHECKSYMS:  {{[0-9a-f]+}} A _end
-CHECKSYMS:  {{[0-9a-f]+}} A end
-
-CHECKSHAREDSYMS:  {{[0-9a-f]+}} a 1.c
-CHECKSHAREDSYMS:  {{[0-9a-f]+}} T main
-CHECKSHAREDSYMS:  {{[0-9a-f]+}} B a
-CHECKSHAREDSYMS:  {{[0-9a-f]+}} A _end

Removed: lld/trunk/test/old-elf/tls-tbss-size.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/tls-tbss-size.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/tls-tbss-size.test (original)
+++ lld/trunk/test/old-elf/tls-tbss-size.test (removed)
@@ -1,176 +0,0 @@
-# This test verify if external TLS non initialized variables (tbss) are
-# accounted in TBSS segment size
-
-# The input file 'test/elf/Inputs/tls-tbss-size.yaml' declares:
-#
-# __thread int t0;       
-# __thread int t1;
-# __thread int t2;
-# __thread int t3;        
-#
-# And the 'test/elf/tls-tbss-size.test' defines: 
-#
-# __thread int t4;                                                                          
-# __thread int t5;
-# __thread int t6;             
-# __thread int t7;
-#
-# __thread int t8 = 3;                 
-# __thread int t9 = 4;    
-# __thread int t10 = 5;
-# __thread int t11 = 6;                    
-
-#RUN: yaml2obj -format=elf -o=%t-t1.o %p/Inputs/tls-tbss-size.yaml
-#RUN: yaml2obj -format=elf -o=%t-t0.o %s
-#RUN: lld -flavor old-gnu -target x86_64-linux --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o
-#RUN: llvm-readobj --sections %t.exe | FileCheck %s
-                                          
-#CHECK: Sections [
-#CHECK:   Section {
-#CHECK:     Index: 9
-#CHECK:     Name: .tdata (71)
-#CHECK:     Size: 16
-#CHECK:   } 
-#CHECK:   Section {
-#CHECK:     Index: 10
-#CHECK:     Name: .tbss (78)
-#CHECK:     Size: 32
-#CHECK:   }
-
----
-FileHeader:      
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:        
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         488B050000000064C70001000000488B050000000064C70002000000488B050000000064C70003000000488B050000000064C7000400000064C70425000000000500000064C70425000000000600000064C70425000000000700000064C70425000000000800000031C0C3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:     
-      - Offset:          0x0000000000000003
-        Symbol:          t0
-        Type:            R_X86_64_GOTTPOFF
-        Addend:          -4
-      - Offset:          0x0000000000000011
-        Symbol:          t1
-        Type:            R_X86_64_GOTTPOFF
-        Addend:          -4
-      - Offset:          0x000000000000001F
-        Symbol:          t2
-        Type:            R_X86_64_GOTTPOFF
-        Addend:          -4
-      - Offset:          0x000000000000002D
-        Symbol:          t3
-        Type:            R_X86_64_GOTTPOFF
-        Addend:          -4
-      - Offset:          0x000000000000003C
-        Symbol:          t4
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000048
-        Symbol:          t5
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000054
-        Symbol:          t6
-        Type:            R_X86_64_TPOFF32
-      - Offset:          0x0000000000000060
-        Symbol:          t7
-        Type:            R_X86_64_TPOFF32
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .tdata
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
-    AddressAlign:    0x0000000000000004
-    Content:         '03000000040000000500000006000000'
-  - Name:            .tbss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC, SHF_TLS ]
-    AddressAlign:    0x0000000000000004
-    Size:            16
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000017A5200017810011B0C070890010000140000001C000000000000006B0000000000000000000000
-Symbols:         
-  Local:           
-    - Name:            .tbss
-      Type:            STT_TLS
-      Section:         .tbss
-    - Name:            .tdata
-      Type:            STT_TLS
-      Section:         .tdata
-    - Type:            STT_SECTION
-      Section:         .text
-  Global:          
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000006B
-    - Name:            t0
-      Type:            STT_TLS
-    - Name:            t1
-      Type:            STT_TLS
-    - Name:            t10
-      Type:            STT_TLS
-      Section:         .tdata
-      Value:           0x0000000000000008
-      Size:            0x0000000000000004
-    - Name:            t11
-      Type:            STT_TLS
-      Section:         .tdata
-      Value:           0x000000000000000C
-      Size:            0x0000000000000004
-    - Name:            t2
-      Type:            STT_TLS
-    - Name:            t3
-      Type:            STT_TLS
-    - Name:            t4
-      Type:            STT_TLS
-      Section:         .tbss
-      Size:            0x0000000000000004
-    - Name:            t5
-      Type:            STT_TLS
-      Section:         .tbss
-      Value:           0x0000000000000004
-      Size:            0x0000000000000004
-    - Name:            t6
-      Type:            STT_TLS
-      Section:         .tbss
-      Value:           0x0000000000000008
-      Size:            0x0000000000000004
-    - Name:            t7
-      Type:            STT_TLS
-      Section:         .tbss
-      Value:           0x000000000000000C
-      Size:            0x0000000000000004
-    - Name:            t8
-      Type:            STT_TLS
-      Section:         .tdata
-      Size:            0x0000000000000004
-    - Name:            t9
-      Type:            STT_TLS
-      Section:         .tdata
-      Value:           0x0000000000000004
-      Size:            0x0000000000000004
-...

Removed: lld/trunk/test/old-elf/tls.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/tls.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/tls.test (original)
+++ lld/trunk/test/old-elf/tls.test (removed)
@@ -1,43 +0,0 @@
-# REQUIRES: x86
-
-# This tests verifies that TLS variables have correct offsets
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static  \
-RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=YAML
-
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tls.x86-64 -o %t \
-RUN:   --noinhibit-exec -e main -static && llvm-objdump -d %t | FileCheck %s
-
-// Verify that the TLS accesses have the correct offsets.
-
-YAML:  name: main
-YAML:  references:
-YAML:    kind: R_X86_64_TPOFF32
-YAML:    offset: 9
-YAML:    target: tls1
-YAML:    kind: R_X86_64_TPOFF32
-YAML:    offset: 17
-YAML:    target: tls0
-YAML:    kind: R_X86_64_TPOFF32
-YAML:    offset: 25
-YAML:    target: tls2
-
-YAML:  name: GOTTPOFF
-YAML:  kind: R_X86_64_GOTTPOFF
-YAML:  target: [[GOTNAME:[a-zA-Z0-9_]+]]
-
-YAML:  type: got
-YAML:  references:
-YAML:   kind: R_X86_64_TPOFF64
-YAML:   target: tls2
-
-// main
-CHECK: addl %fs:-4
-CHECK: addl %fs:-8
-CHECK: addl %fs:-12
-
-// GOTTPOFF
-CHECK: movq {{[0-9]+}}(%rip)
-
-// TLSLD
-CHECK: movq %fs:0, %rax
-CHECK: leaq -8(%rax), %rax

Removed: lld/trunk/test/old-elf/tlsAddr.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/tlsAddr.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/tlsAddr.test (original)
+++ lld/trunk/test/old-elf/tlsAddr.test (removed)
@@ -1,7 +0,0 @@
-# This tests verifies that TLS variables have correct offsets
-# and that TBSS doesn't occupy memory
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/tlsAddr.x86-64 -static  \
-RUN: -o %t --noinhibit-exec
-RUN: llvm-objdump -section-headers %t | FileCheck -check-prefix=CHECKADDR %s
-
-CHECKADDR:   {{[0-9]+}} .data         00000000 0000000000401008 DATA

Removed: lld/trunk/test/old-elf/undef-from-dso-to-main.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/undef-from-dso-to-main.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/undef-from-dso-to-main.test (original)
+++ lld/trunk/test/old-elf/undef-from-dso-to-main.test (removed)
@@ -1,52 +0,0 @@
-# Tests that a reference from a DSO to a regular object
-# forces the final executable to export the symbol.
-
-#RUN: yaml2obj -format=elf %p/Inputs/undef2-so.o.yaml -o=%t.o.so
-#RUN: lld -flavor old-gnu  -target x86_64 -shared %t.o.so -o %T/libundef2.so
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu  -target x86_64 %t.o -L%T -lundef2 -o %t1
-#RUN: llvm-readobj -dyn-symbols %t1 | FileCheck -check-prefix CHECKSYMS %s
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000001
-    Content:         C3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Size:            4
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-  Global:
-    - Name:            myexportedsymbol
-      Type:            STT_OBJECT
-      Section:         .bss
-      Size:            0x0000000000000004
-    - Name:            _start
-      Section:         .text
-      Size:            0x0000000000000001
-
-#CHECKSYMS: myexportedsymbol

Removed: lld/trunk/test/old-elf/undef-from-main-dso.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/undef-from-main-dso.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/undef-from-main-dso.test (original)
+++ lld/trunk/test/old-elf/undef-from-main-dso.test (removed)
@@ -1,43 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64 -e main -o %t -L%p/Inputs \
-RUN:   %p/Inputs/undef.o -lundef
-RUN: llvm-readobj -relocations -symbols -dyn-symbols %t | FileCheck %s
-
-RUN: lld -flavor old-gnu -target x86_64 -e main -o %t -L%p/Inputs \
-RUN:   %p/Inputs/undef-pc32.o -lundef
-RUN: llvm-readobj -relocations -symbols -dyn-symbols %t | FileCheck %s
-
-# DSO source code:
-# int x[2] = { 1, 2 };
-#
-# Main binary source code:
-#
-# extern int x[2];
-#
-# int main(void)
-# {
-#    x[0] = 2;
-# }
-#
-
-CHECK:       Relocations [
-CHECK-NEXT:    Section ({{[0-9]+}}) .rela.dyn {
-CHECK-NEXT:      0x{{[1-9A-F][0-9A-F]*}} R_X86_64_COPY x 0x0
-CHECK-NEXT:    }
-CHECK-NEXT:  ]
-
-CHECK:         Name: x ({{[0-9]+}}
-CHECK-NEXT:    Value: 0x{{[1-9A-F][0-9A-F]*}}
-CHECK-NEXT:    Size: 8
-CHECK-NEXT:    Binding: Global (0x1)
-CHECK-NEXT:    Type: Object (0x1)
-CHECK-NEXT:    Other: 0
-CHECK-NEXT:    Section: .bss
-
-CHECK:         Name: x@ ({{[0-9]+}}
-CHECK-NEXT:    Value: 0x{{[1-9A-F][0-9A-F]*}}
-CHECK-NEXT:    Size: 8
-CHECK-NEXT:    Binding: Global (0x1)
-CHECK-NEXT:    Type: Object (0x1)
-CHECK-NEXT:    Other: 0
-CHECK-NEXT:    Section: .bss
-

Removed: lld/trunk/test/old-elf/weaksym.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/weaksym.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/weaksym.test (original)
+++ lld/trunk/test/old-elf/weaksym.test (removed)
@@ -1,7 +0,0 @@
-# Tests that a weak reference remains a weak reference,
-# even if a shared library defines the symbol weak as well.
-
-RUN: lld -flavor old-gnu  -target x86_64 -shared %p/Inputs/weaksym.o -L%p/Inputs -lweaksym -o %t1
-RUN: llvm-nm -n %t1 | FileCheck -check-prefix CHECKSYMS %s
-
-CHECKSYMS: w weaksym

Removed: lld/trunk/test/old-elf/wrap.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/wrap.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/wrap.test (original)
+++ lld/trunk/test/old-elf/wrap.test (removed)
@@ -1,276 +0,0 @@
-# This tests the functionality of using the --wrap option.
-# The test case is extracted by compiling and linking the following code.
-#
-#cat > main.c << \!
-#int main() {
-#  foo();
-#  return 0;
-#}
-#!
-#
-#cat > wrapfoo.c << \!
-#int __wrap_foo() {
-#  __real_foo();
-#  return 0;
-#}
-#!
-#
-#cat > realfoo.c << \!
-#int foo() {
-#  return 0;
-#}
-#!
-#
-#clang main.c wrapfoo.c realfoo.c -Xlinker --wrap -Xlinker foo
-#RUN: yaml2obj -format=elf -docnum 1 %s -o %t.main.o
-#RUN: yaml2obj -format=elf -docnum 2 %s -o %t.wrapfoo.o
-#RUN: yaml2obj -format=elf -docnum 3 %s -o %t.realfoo.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.main.o %t.wrapfoo.o %t.realfoo.o \
-#RUN: --wrap foo --wrap foo --noinhibit-exec --output-filetype=yaml -o %t2.out
-#RUN: lld -flavor old-gnu -target x86_64 %t.main.o %t.wrapfoo.o  \
-#RUN: --wrap foo --wrap foo --noinhibit-exec --output-filetype=yaml -o %t2.out.undef 2>&1 |  \
-#RUN: FileCheck %s -check-prefix=CHECKUNDEF
-#CHECKWRAP:  - name:            main
-#CHECKWRAP:    references:
-#CHECKWRAP:      - kind:            R_X86_64_PC32
-#CHECKWRAP:        target:          __wrap_foo
-#CHECKWRAP:  - name:            __wrap_foo
-#CHECKWRAP:    references:
-#CHECKWRAP:      - kind:            R_X86_64_PC32
-#CHECKWRAP:        target:          foo
-#CHECKUNDEF: Undefined symbol: {{.*}}main.o: foo
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         5031C0E80000000031C05AC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000004
-        Symbol:          foo
-        Type:            R_X86_64_PC32
-        Addend:          -4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232383733392920286C6C766D2F7472756E6B203232383734382900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C070890010000140000001C000000000000000C00000000410E1000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000C
-    - Name:            foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         5031C0E80000000031C05AC3
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .text
-    Relocations:
-      - Offset:          0x0000000000000004
-        Symbol:          __real_foo
-        Type:            R_X86_64_PC32
-        Addend:          -4
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232383733392920286C6C766D2F7472756E6B203232383734382900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C070890010000140000001C000000000000000C00000000410E1000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            __wrap_foo
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000C
-    - Name:            __real_foo
-...
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_GNU
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         31C0C3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         00636C616E672076657273696F6E20332E372E3020287472756E6B203232383733392920286C6C766D2F7472756E6B203232383734382900
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000037A5200017810011B0C070890010000140000001C00000000000000030000000000000000000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            foo
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000003
-...

Removed: lld/trunk/test/old-elf/x86-64-dynamic-relocs.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/x86-64-dynamic-relocs.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/x86-64-dynamic-relocs.test (original)
+++ lld/trunk/test/old-elf/x86-64-dynamic-relocs.test (removed)
@@ -1,26 +0,0 @@
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/relocs-dynamic.x86-64 \
-RUN:  --output-filetype=yaml --noinhibit-exec | FileCheck %s
-
-path:            <linker-internal>
-defined-atoms:
-  - name:            main
-    scope:           global
-    content:         [ E8, 00, 00, 00, 00, C3 ]
-    alignment:       16
-    section-choice:  custom-required
-    section-name:    .text
-    references:
-      - kind:            R_X86_64_PLT32
-        offset:          1
-        target:          foo
-        addend:          -4
-  - name:            foo
-    scope:           global
-    content:         [ C3 ]
-    alignment:       6 mod 16
-    section-choice:  custom-required
-    section-name:    .text
-
-# Don't generate a PLT/GOT entry for a PLT32 relocation to a non-shared symbol.
-CHECK-NOT: got
-CHECK-NOT: stub

Removed: lld/trunk/test/old-elf/x86-64-dynamic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/x86-64-dynamic.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/x86-64-dynamic.test (original)
+++ lld/trunk/test/old-elf/x86-64-dynamic.test (removed)
@@ -1,79 +0,0 @@
-# Checks that linking an object file with a shared object creates the necessary
-# PLT/GOT Entries
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 --output-filetype=yaml -o %t1 --noinhibit-exec
-RUN: FileCheck %s < %t1
-
-RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/use-shared-32s.x86-64 \
-RUN:   %p/Inputs/shared.so-x86-64 --output-filetype=yaml --noinhibit-exec \
-RUN: | FileCheck %s --check-prefix=32S
-
-CHECK:  - name:            main
-CHECK:    scope:           global
-CHECK:    references:
-CHECK:      - kind:            R_X86_64_PC32
-CHECK:        offset:          18
-CHECK:        target:          [[PLTNAME:[-a-zA-Z0-9_]+]]
-CHECK:        addend:          -4
-CHECK:      - kind:            R_X86_64_GOTPCREL
-CHECK:        offset:          25
-CHECK:        target:          [[GOTNAME:[-a-zA-Z0-9_]+]]
-CHECK:        addend:          -4
-
-        - name:            .PLT0
-CHECK:    type:            stub
-CHECK:    content:         [ FF, 35, 00, 00, 00, 00, FF, 25, 00, 00, 00, 00,
-CHECK:                       90, 90, 90, 90 ]
-CHECK:    alignment:       16
-CHECK:    section-choice:  custom-required
-CHECK:    section-name:    .plt
-CHECK:    references:
-CHECK:      - kind:            R_X86_64_PC32
-CHECK:        offset:          2
-              target:          __got0
-CHECK:        addend:          -4
-CHECK:      - kind:            R_X86_64_PC32
-CHECK:        offset:          8
-              target:          __got1
-CHECK:        addend:          -4
-        - name:            [[PLTNAME]]
-CHECK:    type:            stub
-CHECK:    content:         [ FF, 25, 00, 00, 00, 00, 68, 00, 00, 00, 00, E9,
-CHECK:                       00, 00, 00, 00 ]
-CHECK:    alignment:       16
-CHECK:    section-choice:  custom-required
-CHECK:    section-name:    .plt
-CHECK:    references:
-CHECK:      - kind:            R_X86_64_PC32
-CHECK:        offset:          2
-              target:          __got_foo
-CHECK:        addend:          -4
-CHECK:      - kind:            LLD_R_X86_64_GOTRELINDEX
-CHECK:        offset:          7
-              target:          __got_foo
-CHECK:      - kind:            R_X86_64_PC32
-CHECK:        offset:          12
-              target:          .PLT0
-CHECK:        addend:          -4
-
-// Don't check the GOT and PLT names as they are only present in assert builds.
-CHECK:    type:            got
-CHECK:    content:         [ 00, 00, 00, 00, 00, 00, 00, 00 ]
-CHECK:    section-choice:  custom-required
-CHECK:    section-name:    .got
-CHECK:    permissions:     rw-
-CHECK:    references:
-CHECK:      - kind:            R_X86_64_GLOB_DAT
-CHECK:        offset:          0
-CHECK:        target:          i
-
-CHECK:shared-library-atoms:
-CHECK:  - name:            foo
-CHECK:    load-name:       shared.so-x86-64
-
-32S: name: main
-32S: kind: R_X86_64_PC32
-32S: target: func
-32S: kind: R_X86_64_32S
-32S: kind: R_X86_64_PC32
-32S: type: stub

Removed: lld/trunk/test/old-elf/x86.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/x86.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/x86.test (original)
+++ lld/trunk/test/old-elf/x86.test (removed)
@@ -1,38 +0,0 @@
-# Source for input file: reloc-xb.x86
-# xb.S:
-# .section .text, "ax", @progbits
-# .align 0x4
-# .globl _start
-# _start:
-# .globl back
-# back:
-#   call target
-#
-# Source for input file: reloc-xt.x86
-# xt.S:
-# .section .text, "ax", @progbits
-#
-# .globl target
-# target:
-#     call back
-#
-# Assembled with: "as --32"
-
-RUN: lld -flavor old-gnu -target i386 -e back --output-filetype=yaml %p/Inputs/reloc-xb.x86 %p/Inputs/reloc-xt.x86 | FileCheck %s     -check-prefix x86-yaml
-
-x86-yaml:    - name:              back
-x86-yaml:      scope:             global
-x86-yaml:      content:           [ E8, FC, FF, FF, FF ]
-x86-yaml:      references:
-x86-yaml:      - kind:              R_386_PC32
-x86-yaml:        offset:            1
-x86-yaml:        target:            target
-
-x86-yaml:    - name:              target
-x86-yaml:      scope:             global
-x86-yaml:      content:           [ E8, FC, FF, FF, FF ]
-x86-yaml:      references:
-x86-yaml:      - kind:              R_386_PC32
-x86-yaml:        offset:            1
-x86-yaml:        target:            back
-

Removed: lld/trunk/test/old-elf/x86_64-kinds.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/x86_64-kinds.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/x86_64-kinds.test (original)
+++ lld/trunk/test/old-elf/x86_64-kinds.test (removed)
@@ -1,23 +0,0 @@
-REQUIRES: x86
-
-RUN: lld -flavor old-gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
-RUN:   -e _start -static
-RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS
-
-RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml -e _start -static \
-RUN:    %p/Inputs/relocs.x86-64 | FileCheck %s -check-prefix=X86_64
-
-RELOCS: ELF64-x86-64
-
-// R_X86_64_32S
-RELOCS: c7 04 25
-RELOCS-NOT: 00 00 00 00
-RELOCS: 05 00 00 00 movl
-
-// R_X86_64_PC32
-RELOCS: e8
-RELOCS-NOT: 00 00 00 00
-RELOCS: callq
-
-X86_64: R_X86_64_32S
-X86_64: R_X86_64_PC32

Removed: lld/trunk/test/old-elf/zoption_dtflags.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/zoption_dtflags.test?rev=262157&view=auto
==============================================================================
--- lld/trunk/test/old-elf/zoption_dtflags.test (original)
+++ lld/trunk/test/old-elf/zoption_dtflags.test (removed)
@@ -1,89 +0,0 @@
-# Test that -z {origin, now} options work.
-#
-#RUN: yaml2obj -format=elf %s -o=%t.o
-#RUN: lld -flavor old-gnu -target x86_64 %t.o -e=main -z now -z origin -o %t1
-#RUN: llvm-readobj -dynamic-table %t1 | FileCheck %s
-#
-#CHECK: 0x000000000000001E FLAGS                ORIGIN BIND_NOW
-#CHECK: 0x000000006FFFFFFB FLAGS_1              NOW ORIGIN
-
----
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  OSABI:           ELFOSABI_FREEBSD
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         554889E54883EC10C745FC00000000E81C000000B9000000008945F889C84883C4105DC36666662E0F1F840000000000554889E58B45FC5DC3
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE, SHF_ALLOC ]
-    AddressAlign:    0x0000000000000004
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_MERGE, SHF_STRINGS ]
-    AddressAlign:    0x0000000000000001
-    Content:         004672656542534420636C616E672076657273696F6E20332E342E312028746167732F52454C454153455F33342F646F74312D66696E616C203230383033322920323031343035313200
-  - Name:            .note.GNU-stack
-    Type:            SHT_PROGBITS
-    AddressAlign:    0x0000000000000001
-    Content:         ''
-  - Name:            .eh_frame
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000008
-    Content:         1400000000000000017A5200017810011B0C070890010000180000001C000000000000002400000000410E108602430D060000001800000038000000000000000900000000410E108602430D06000000
-  - Name:            .rela.eh_frame
-    Type:            SHT_RELA
-    Link:            .symtab
-    AddressAlign:    0x0000000000000008
-    Info:            .eh_frame
-    Relocations:
-      - Offset:          0x0000000000000020
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-      - Offset:          0x000000000000003C
-        Symbol:          .text
-        Type:            R_X86_64_PC32
-        Addend:          48
-Symbols:
-  Local:
-    - Name:            local
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000030
-      Size:            0x0000000000000009
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .data
-      Type:            STT_SECTION
-      Section:         .data
-    - Name:            .bss
-      Type:            STT_SECTION
-      Section:         .bss
-    - Name:            .comment
-      Type:            STT_SECTION
-      Section:         .comment
-    - Name:            .note.GNU-stack
-      Type:            STT_SECTION
-      Section:         .note.GNU-stack
-    - Name:            .eh_frame
-      Type:            STT_SECTION
-      Section:         .eh_frame
-  Global:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000024
-...

Modified: lld/trunk/unittests/DriverTests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/CMakeLists.txt?rev=262158&r1=262157&r2=262158&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/CMakeLists.txt (original)
+++ lld/trunk/unittests/DriverTests/CMakeLists.txt Sat Feb 27 18:10:58 2016
@@ -1,6 +1,5 @@
 add_lld_unittest(DriverTests
   UniversalDriverTest.cpp
-  GnuLdDriverTest.cpp
   DarwinLdDriverTest.cpp
   )
 

Removed: lld/trunk/unittests/DriverTests/GnuLdDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/GnuLdDriverTest.cpp?rev=262157&view=auto
==============================================================================
--- lld/trunk/unittests/DriverTests/GnuLdDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/GnuLdDriverTest.cpp (removed)
@@ -1,299 +0,0 @@
-//===- lld/unittest/GnuLdDriverTest.cpp -----------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// \brief GNU ld driver tests.
-///
-//===----------------------------------------------------------------------===//
-
-#include "DriverTest.h"
-#include "lld/ReaderWriter/ELFLinkingContext.h"
-#include "llvm/Support/MemoryBuffer.h"
-
-using namespace llvm;
-using namespace lld;
-
-namespace {
-
-class GnuLdParserTest
-    : public ParserTest<GnuLdDriver, std::unique_ptr<ELFLinkingContext>> {
-protected:
-  const LinkingContext *linkingContext() override { return _ctx.get(); }
-};
-
-class LinkerScriptTest : public testing::Test {
-protected:
-  void SetUp() override {
-    llvm::Triple triple(llvm::sys::getDefaultTargetTriple());
-    _ctx = GnuLdDriver::createELFLinkingContext(triple);
-  }
-
-  void parse(StringRef script, bool nostdlib = false) {
-    std::unique_ptr<MemoryBuffer> mb = MemoryBuffer::getMemBuffer(
-      script, "foo.so");
-    std::string s;
-    raw_string_ostream out(s);
-    std::error_code ec =
-        GnuLdDriver::evalLinkerScript(*_ctx, std::move(mb), out, nostdlib);
-    EXPECT_FALSE(ec);
-  }
-
-  std::unique_ptr<ELFLinkingContext> _ctx;
-};
-
-} // anonymous namespace
-
-TEST_F(GnuLdParserTest, Empty) {
-  EXPECT_FALSE(parse("ld", nullptr));
-  EXPECT_EQ(linkingContext(), nullptr);
-  EXPECT_EQ("No input files\n", errorMessage());
-}
-
-// -o
-
-TEST_F(GnuLdParserTest, Output) {
-  EXPECT_TRUE(parse("ld", "a.o", "-o", "foo", nullptr));
-  EXPECT_EQ("foo", _ctx->outputPath());
-}
-
-TEST_F(GnuLdParserTest, OutputDefault) {
-  EXPECT_TRUE(parse("ld", "abc.o", nullptr));
-  EXPECT_EQ("a.out", _ctx->outputPath());
-}
-
-// --noinhibit-exec
-
-TEST_F(GnuLdParserTest, NoinhibitExec) {
-  EXPECT_TRUE(parse("ld", "a.o", "--noinhibit-exec", nullptr));
-  EXPECT_TRUE(_ctx->allowRemainingUndefines());
-}
-
-// --entry
-
-TEST_F(GnuLdParserTest, Entry) {
-  EXPECT_TRUE(parse("ld", "a.o", "--entry", "foo", nullptr));
-  EXPECT_EQ("foo", _ctx->entrySymbolName());
-}
-
-TEST_F(GnuLdParserTest, EntryShort) {
-  EXPECT_TRUE(parse("ld", "a.o", "-e", "foo", nullptr));
-  EXPECT_EQ("foo", _ctx->entrySymbolName());
-}
-
-TEST_F(GnuLdParserTest, EntryJoined) {
-  EXPECT_TRUE(parse("ld", "a.o", "--entry=foo", nullptr));
-  EXPECT_EQ("foo", _ctx->entrySymbolName());
-}
-
-// --export-dynamic
-
-TEST_F(GnuLdParserTest, ExportDynamic) {
-  EXPECT_TRUE(parse("ld", "a.o", "--export-dynamic", nullptr));
-  EXPECT_TRUE(_ctx->shouldExportDynamic());
-}
-
-TEST_F(GnuLdParserTest, NoExportDynamic) {
-  EXPECT_TRUE(parse("ld", "a.o", "--no-export-dynamic", nullptr));
-  EXPECT_FALSE(_ctx->shouldExportDynamic());
-}
-
-// --init
-
-TEST_F(GnuLdParserTest, Init) {
-  EXPECT_TRUE(parse("ld", "a.o", "-init", "foo", "-init", "bar", nullptr));
-  EXPECT_EQ("bar", _ctx->initFunction());
-}
-
-TEST_F(GnuLdParserTest, InitJoined) {
-  EXPECT_TRUE(parse("ld", "a.o", "-init=foo", nullptr));
-  EXPECT_EQ("foo", _ctx->initFunction());
-}
-
-// --soname
-
-TEST_F(GnuLdParserTest, SOName) {
-  EXPECT_TRUE(parse("ld", "a.o", "--soname=foo", nullptr));
-  EXPECT_EQ("foo", _ctx->sharedObjectName());
-}
-
-TEST_F(GnuLdParserTest, SONameSingleDash) {
-  EXPECT_TRUE(parse("ld", "a.o", "-soname=foo", nullptr));
-  EXPECT_EQ("foo", _ctx->sharedObjectName());
-}
-
-TEST_F(GnuLdParserTest, SONameH) {
-  EXPECT_TRUE(parse("ld", "a.o", "-h", "foo", nullptr));
-  EXPECT_EQ("foo", _ctx->sharedObjectName());
-}
-
-// -rpath
-
-TEST_F(GnuLdParserTest, Rpath) {
-  EXPECT_TRUE(parse("ld", "a.o", "-rpath", "foo:bar", nullptr));
-  EXPECT_EQ(2, _ctx->getRpathList().size());
-  EXPECT_EQ("foo", _ctx->getRpathList()[0]);
-  EXPECT_EQ("bar", _ctx->getRpathList()[1]);
-}
-
-TEST_F(GnuLdParserTest, RpathEq) {
-  EXPECT_TRUE(parse("ld", "a.o", "-rpath=foo", nullptr));
-  EXPECT_EQ(1, _ctx->getRpathList().size());
-  EXPECT_EQ("foo", _ctx->getRpathList()[0]);
-}
-
-// --defsym
-
-TEST_F(GnuLdParserTest, DefsymDecimal) {
-  EXPECT_TRUE(parse("ld", "a.o", "--defsym=sym=1000", nullptr));
-  assert(_ctx.get());
-  auto map = _ctx->getAbsoluteSymbols();
-  EXPECT_EQ((size_t)1, map.size());
-  EXPECT_EQ((uint64_t)1000, map["sym"]);
-}
-
-TEST_F(GnuLdParserTest, DefsymHexadecimal) {
-  EXPECT_TRUE(parse("ld", "a.o", "--defsym=sym=0x1000", nullptr));
-  auto map = _ctx->getAbsoluteSymbols();
-  EXPECT_EQ((size_t)1, map.size());
-  EXPECT_EQ((uint64_t)0x1000, map["sym"]);
-}
-
-TEST_F(GnuLdParserTest, DefsymAlias) {
-  EXPECT_TRUE(parse("ld", "a.o", "--defsym=sym=abc", nullptr));
-  auto map = _ctx->getAliases();
-  EXPECT_EQ((size_t)1, map.size());
-  EXPECT_EQ("abc", map["sym"]);
-}
-
-TEST_F(GnuLdParserTest, DefsymOctal) {
-  EXPECT_TRUE(parse("ld", "a.o", "--defsym=sym=0777", nullptr));
-  auto map = _ctx->getAbsoluteSymbols();
-  EXPECT_EQ((size_t)1, map.size());
-  EXPECT_EQ((uint64_t)0777, map["sym"]);
-}
-
-TEST_F(GnuLdParserTest, DefsymMisssingSymbol) {
-  EXPECT_FALSE(parse("ld", "a.o", "--defsym==0", nullptr));
-}
-
-TEST_F(GnuLdParserTest, DefsymMisssingValue) {
-  EXPECT_FALSE(parse("ld", "a.o", "--defsym=sym=", nullptr));
-}
-
-// --as-needed
-
-TEST_F(GnuLdParserTest, AsNeeded) {
-  EXPECT_TRUE(parse("ld", "a.o", "--as-needed", "b.o", "c.o",
-                    "--no-as-needed", "d.o", nullptr));
-  std::vector<std::unique_ptr<Node>> &nodes = _ctx->getNodes();
-  EXPECT_EQ((size_t)4, nodes.size());
-  EXPECT_FALSE(cast<FileNode>(nodes[0].get())->asNeeded());
-  EXPECT_TRUE(cast<FileNode>(nodes[1].get())->asNeeded());
-  EXPECT_TRUE(cast<FileNode>(nodes[2].get())->asNeeded());
-  EXPECT_FALSE(cast<FileNode>(nodes[3].get())->asNeeded());
-}
-
-// Emulation
-
-TEST_F(GnuLdParserTest, Emulation) {
-  EXPECT_TRUE(parse("mips-linux-gnu-ld", "a.o", "-m", "elf64ltsmip", nullptr));
-  EXPECT_EQ(Triple::mips64el, _ctx->getTriple().getArch());
-  EXPECT_TRUE(
-      parse("mips64el-linux-gnu-ld", "a.o", "-m", "elf32btsmip", nullptr));
-  EXPECT_EQ(Triple::mips, _ctx->getTriple().getArch());
-  EXPECT_TRUE(
-      parse("mipsel-linux-gnu-ld", "a.o", "-m", "elf32btsmipn32", nullptr));
-  EXPECT_EQ(Triple::mips, _ctx->getTriple().getArch());
-  EXPECT_TRUE(
-      parse("mips-linux-gnu-ld", "a.o", "-m", "elf32ltsmipn32", nullptr));
-  EXPECT_EQ(Triple::mipsel, _ctx->getTriple().getArch());
-}
-
-// Linker script
-
-TEST_F(LinkerScriptTest, Input) {
-  parse("INPUT(/x /y)");
-  std::vector<std::unique_ptr<Node>> &nodes = _ctx->getNodes();
-  EXPECT_EQ((size_t)2, nodes.size());
-  EXPECT_EQ("/x", cast<FileNode>(nodes[0].get())->getFile()->path());
-  EXPECT_EQ("/y", cast<FileNode>(nodes[1].get())->getFile()->path());
-}
-
-TEST_F(LinkerScriptTest, Group) {
-  parse("GROUP(/x /y)");
-  std::vector<std::unique_ptr<Node>> &nodes = _ctx->getNodes();
-  EXPECT_EQ((size_t)3, nodes.size());
-  EXPECT_EQ("/x", cast<FileNode>(nodes[0].get())->getFile()->path());
-  EXPECT_EQ("/y", cast<FileNode>(nodes[1].get())->getFile()->path());
-  EXPECT_EQ(2, cast<GroupEnd>(nodes[2].get())->getSize());
-}
-
-TEST_F(LinkerScriptTest, SearchDir) {
-  parse("SEARCH_DIR(\"/foo/bar\")");
-  std::vector<StringRef> paths = _ctx->getSearchPaths();
-  EXPECT_EQ((size_t)1, paths.size());
-  EXPECT_EQ("/foo/bar", paths[0]);
-}
-
-TEST_F(LinkerScriptTest, Entry) {
-  parse("ENTRY(blah)");
-  EXPECT_EQ("blah", _ctx->entrySymbolName());
-}
-
-TEST_F(LinkerScriptTest, Output) {
-  parse("OUTPUT(\"/path/to/output\")");
-  EXPECT_EQ("/path/to/output", _ctx->outputPath());
-}
-
-// Test that search paths are ignored when nostdlib is set.
-TEST_F(LinkerScriptTest, IgnoreSearchDirNoStdLib) {
-  parse("SEARCH_DIR(\"/foo/bar\")", true /*nostdlib*/);
-  std::vector<StringRef> paths = _ctx->getSearchPaths();
-  EXPECT_EQ((size_t)0, paths.size());
-}
-
-TEST_F(LinkerScriptTest, ExprEval) {
-  parse("SECTIONS { symbol = 0x4000 + 0x40; \n"
-        ". = (symbol >= 0x4040)? (0x5001 * 2 & 0xFFF0) << 1 : 0}");
-
-  EXPECT_EQ((size_t)1, _ctx->linkerScriptSema().getLinkerScripts().size());
-
-  script::LinkerScript *ls =
-      _ctx->linkerScriptSema().getLinkerScripts()[0]->get();
-  EXPECT_EQ((size_t)1, ls->_commands.size());
-
-  auto *secs = dyn_cast<const script::Sections>(*ls->_commands.begin());
-  EXPECT_TRUE(secs != nullptr);
-  EXPECT_EQ(2, secs->end() - secs->begin());
-
-  auto command = secs->begin();
-  auto *sa1 = dyn_cast<const script::SymbolAssignment>(*command);
-  EXPECT_TRUE(sa1 != nullptr);
-  EXPECT_EQ(script::SymbolAssignment::Simple, sa1->assignmentKind());
-  EXPECT_EQ(script::SymbolAssignment::Default, sa1->assignmentVisibility());
-
-  ++command;
-  auto *sa2 = dyn_cast<const script::SymbolAssignment>(*command);
-  EXPECT_TRUE(sa2 != nullptr);
-  EXPECT_EQ(script::SymbolAssignment::Simple, sa2->assignmentKind());
-  EXPECT_EQ(script::SymbolAssignment::Default, sa2->assignmentVisibility());
-
-  script::Expression::SymbolTableTy mySymbolTable;
-  auto ans = sa1->expr()->evalExpr(mySymbolTable);
-  EXPECT_FALSE(ans.getError());
-  int64_t result = *ans;
-  EXPECT_EQ(0x4040, result);
-  mySymbolTable[sa1->symbol()] = result;
-
-  auto ans2 = sa2->expr()->evalExpr(mySymbolTable);
-  EXPECT_FALSE(ans2.getError());
-  result = *ans2;
-  EXPECT_EQ(0x14000, result);
-  EXPECT_EQ(0, sa2->symbol().compare(StringRef(".")));
-}

Modified: lld/trunk/unittests/DriverTests/UniversalDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/UniversalDriverTest.cpp?rev=262158&r1=262157&r2=262158&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/UniversalDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/UniversalDriverTest.cpp Sat Feb 27 18:10:58 2016
@@ -21,13 +21,12 @@ using namespace llvm;
 using namespace lld;
 
 TEST(UniversalDriver, flavor) {
-  const char *args[] = {"ld", "-flavor", "old-gnu"};
+  const char *args[] = {"ld", "-flavor", "gnu"};
 
   std::string diags;
   raw_string_ostream os(diags);
   UniversalDriver::link(args, os);
   EXPECT_EQ(os.str().find("failed to determine driver flavor"),
             std::string::npos);
-  EXPECT_NE(os.str().find("No input files"),
-            std::string::npos);
+  EXPECT_NE(os.str().find("no input files"), std::string::npos);
 }




More information about the llvm-commits mailing list