Index: lib/Driver/UniversalDriver.cpp =================================================================== --- lib/Driver/UniversalDriver.cpp +++ lib/Driver/UniversalDriver.cpp @@ -68,11 +68,11 @@ enum class Flavor { invalid, - gnu_ld, // -flavor gnu - gnu_ld2, // -flavor gnu2 - win_link, // -flavor link - darwin_ld, // -flavor darwin - core // -flavor core OR -core + old_gnu_ld, // -flavor old-gnu + gnu_ld2, // -flavor gnu2 + win_link, // -flavor link + darwin_ld, // -flavor darwin + core // -flavor core OR -core }; struct ProgramNameParts { @@ -84,14 +84,14 @@ static Flavor strToFlavor(StringRef str) { return llvm::StringSwitch(str) - .Case("gnu", Flavor::gnu_ld) + .Case("old-gnu", Flavor::old_gnu_ld) .Case("gnu2", Flavor::gnu_ld2) .Case("ld.lld2", Flavor::gnu_ld2) .Case("link", Flavor::win_link) .Case("lld-link", Flavor::win_link) .Case("darwin", Flavor::darwin_ld) .Case("core", Flavor::core) - .Case("ld", Flavor::gnu_ld) + .Case("ld", Flavor::old_gnu_ld) .Default(Flavor::invalid); } @@ -153,7 +153,7 @@ return Flavor::darwin_ld; #endif // On a ELF based systems, if linker binary is named "ld", use gnu driver. - return Flavor::gnu_ld; + return Flavor::old_gnu_ld; } #endif @@ -202,7 +202,7 @@ // Switch to appropriate driver. switch (flavor) { - case Flavor::gnu_ld: + case Flavor::old_gnu_ld: return GnuLdDriver::linkELF(args, diagnostics); case Flavor::gnu_ld2: elf2::link(args); Index: test/Driver/def-lib-search.test =================================================================== --- test/Driver/def-lib-search.test +++ test/Driver/def-lib-search.test @@ -1,7 +1,7 @@ # Check that search paths explicitly provided by the -L option # are used in search before default paths. -RUN: not lld -flavor gnu -target x86_64 -t -ltest \ +RUN: not lld -flavor old-gnu -target x86_64 -t -ltest \ RUN: --sysroot=%p/Inputs -L%p/Inputs 2> %t RUN: FileCheck %s < %t Index: test/Driver/flavor-option.test =================================================================== --- test/Driver/flavor-option.test +++ test/Driver/flavor-option.test @@ -2,7 +2,7 @@ # argument in the command line (bug 20975); # b) UniversalDriver correctly removes -flavor along with its value and the # underlying linker does not get a corrupted command line (bug 20977). -RUN: lld --help -flavor gnu | FileCheck %s +RUN: lld --help -flavor old-gnu | FileCheck %s CHECK: --noinhibit-exec CHECK: --output-filetype Index: test/Driver/lib-search.test =================================================================== --- test/Driver/lib-search.test +++ test/Driver/lib-search.test @@ -1,16 +1,16 @@ -RUN: not lld -flavor gnu -t -ltest -L%p/Inputs 2> %t.err +RUN: not lld -flavor old-gnu -t -ltest -L%p/Inputs 2> %t.err RUN: FileCheck %s < %t.err -RUN: not lld -flavor gnu -target x86_64--netbsd -t -ltest \ +RUN: not lld -flavor old-gnu -target x86_64--netbsd -t -ltest \ RUN: --sysroot=%p/Inputs 2> %t2 RUN: FileCheck -check-prefix=NETBSD-AMD64 %s < %t2 -RUN: not lld -flavor gnu -target x86_64--netbsd -nostdlib -t -ltest \ +RUN: not lld -flavor old-gnu -target x86_64--netbsd -nostdlib -t -ltest \ RUN: --sysroot=%p/Inputs 2> %t3 RUN: FileCheck -check-prefix=NETBSD-AMD64-NS %s < %t3 -RUN: not lld -flavor gnu -target i386--netbsd -t -ltest \ +RUN: not lld -flavor old-gnu -target i386--netbsd -t -ltest \ RUN: --sysroot=%p/Inputs 2> %t4 RUN: FileCheck -check-prefix=NETBSD-I386 %s < %t4 -RUN: not lld -flavor gnu -target x86_64--netbsd -m elf_i386 -t -ltest \ +RUN: not lld -flavor old-gnu -target x86_64--netbsd -m elf_i386 -t -ltest \ RUN: --sysroot=%p/Inputs 2> %t5 RUN: FileCheck -check-prefix=NETBSD-AMD64_32 %s < %t5 Index: test/Driver/so-whole-archive.test =================================================================== --- test/Driver/so-whole-archive.test +++ test/Driver/so-whole-archive.test @@ -3,8 +3,8 @@ # RUN: yaml2obj -format=elf -docnum=1 %s > %t-so.o # RUN: yaml2obj -format=elf -docnum=2 %s > %t-exe.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t-exe.o --whole-archive %t.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t-exe.o --whole-archive %t.so # so.o --- Index: test/Driver/trivial-driver.test =================================================================== --- test/Driver/trivial-driver.test +++ test/Driver/trivial-driver.test @@ -1,5 +1,5 @@ # This test, tests the Gnu lld option --help -RUN: lld -flavor gnu --help | FileCheck %s +RUN: lld -flavor old-gnu --help | FileCheck %s CHECK: --noinhibit-exec CHECK: --output-filetype Index: test/Driver/undef-basic.objtxt =================================================================== --- test/Driver/undef-basic.objtxt +++ test/Driver/undef-basic.objtxt @@ -1,4 +1,4 @@ -# RUN: lld -flavor gnu -u undefinedsymbol -e entrysymbol %s \ +# RUN: lld -flavor old-gnu -u undefinedsymbol -e entrysymbol %s \ # RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s # Index: test/elf/AArch64/defsym.test =================================================================== --- test/elf/AArch64/defsym.test +++ test/elf/AArch64/defsym.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target aarch64--linux-gnu --defsym=main=fn \ +RUN: lld -flavor old-gnu -target aarch64--linux-gnu --defsym=main=fn \ RUN: --noinhibit-exec %p/Inputs/fn.o -o %t RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/AArch64/dontignorezerosize-sections.test =================================================================== --- test/elf/AArch64/dontignorezerosize-sections.test +++ test/elf/AArch64/dontignorezerosize-sections.test @@ -1,5 +1,5 @@ # This tests that lld is not ignoring zero sized sections -RUN: lld -flavor gnu -target aarch64--linux-gnu %p/Inputs/zerosizedsection.o \ +RUN: lld -flavor old-gnu -target aarch64--linux-gnu %p/Inputs/zerosizedsection.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t RUN: FileCheck %s < %t Index: test/elf/AArch64/dynamicvars.test =================================================================== --- test/elf/AArch64/dynamicvars.test +++ test/elf/AArch64/dynamicvars.test @@ -2,7 +2,7 @@ # values. # RUN: yaml2obj --format elf -docnum 1 %s -o %t.o -# RUN: lld -flavor gnu -target aarch64 -e main %t.o -o %t1 --noinhibit-exec +# RUN: lld -flavor old-gnu -target aarch64 -e main %t.o -o %t1 --noinhibit-exec # RUN: llvm-readobj -sections -symbols %t1 | FileCheck %s Index: test/elf/AArch64/dynlib-nointerp-section.test =================================================================== --- test/elf/AArch64/dynlib-nointerp-section.test +++ test/elf/AArch64/dynlib-nointerp-section.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target aarch64--linux-gnu %p/Inputs/no-interp-section.o \ +RUN: lld -flavor old-gnu -target aarch64--linux-gnu %p/Inputs/no-interp-section.o \ RUN: -o %t -shared RUN: llvm-objdump -section-headers %t | FileCheck %s Index: test/elf/AArch64/general-dyn-tls-0.test =================================================================== --- test/elf/AArch64/general-dyn-tls-0.test +++ test/elf/AArch64/general-dyn-tls-0.test @@ -25,7 +25,7 @@ #RUN: yaml2obj -format=elf %p/Inputs/general-dyn-tls-0.yaml -o=%t-t1.o #RUN: yaml2obj -format=elf %s -o %t-t0.o -#RUN: lld -flavor gnu -target arm64 --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o +#RUN: lld -flavor old-gnu -target arm64 --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o #RUN: llvm-readobj -relocations %t.exe | FileCheck %s -check-prefix=CHECKRELOCATION #RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/AArch64/initfini.test =================================================================== --- test/elf/AArch64/initfini.test +++ test/elf/AArch64/initfini.test @@ -3,7 +3,7 @@ # corresponds to the the .init_array/.fini_array sections # in the output ELF. -RUN: lld -flavor gnu -target aarch64--linux-gnu %p/Inputs/initfini.o \ +RUN: lld -flavor old-gnu -target aarch64--linux-gnu %p/Inputs/initfini.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t RUN: FileCheck %s < %t Index: test/elf/AArch64/initial-exec-tls-0.test =================================================================== --- test/elf/AArch64/initial-exec-tls-0.test +++ test/elf/AArch64/initial-exec-tls-0.test @@ -29,7 +29,7 @@ #RUN: yaml2obj -format=elf %p/Inputs/initial-exec-tls-1.yaml -o=%t-t1.o #RUN: yaml2obj -format=elf %s -o %t-t0.o -#RUN: lld -flavor gnu -target arm64 --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o +#RUN: lld -flavor old-gnu -target arm64 --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o #RUN: llvm-readobj -relocations %t.exe | FileCheck %s -check-prefix=CHECKRELOCATION #RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/AArch64/local-tls.test =================================================================== --- test/elf/AArch64/local-tls.test +++ test/elf/AArch64/local-tls.test @@ -1,7 +1,7 @@ # Check for correct offsets when handling relocations for local TLS # access (R_AARCH64_TLSLE_ADD_TPREL_HI12, R_AARCH64_TLSLE_ADD_TPREL_LO12_NC) # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 --noinhibit-exec -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 --noinhibit-exec -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/AArch64/rel-abs16-overflow.test =================================================================== --- test/elf/AArch64/rel-abs16-overflow.test +++ test/elf/AArch64/rel-abs16-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ABS16 relocation overflow. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK: Relocation out of range in file {{.*}}: reference from data1+0 to data1+0 of type 259 (R_AARCH64_ABS16) Index: test/elf/AArch64/rel-abs16.test =================================================================== --- test/elf/AArch64/rel-abs16.test +++ test/elf/AArch64/rel-abs16.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ABS16 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AArch64/rel-abs32-overflow.test =================================================================== --- test/elf/AArch64/rel-abs32-overflow.test +++ test/elf/AArch64/rel-abs32-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ABS32 relocation overflow. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK-DAG: Relocation out of range in file {{.*}}: reference from data1+0 to data2+34359738369 of type 258 (R_AARCH64_ABS32) # CHECK-DAG: Relocation out of range in file {{.*}}: reference from data2+0 to data1+34359738369 of type 258 (R_AARCH64_ABS32) Index: test/elf/AArch64/rel-abs32.test =================================================================== --- test/elf/AArch64/rel-abs32.test +++ test/elf/AArch64/rel-abs32.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ABS32 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AArch64/rel-abs64.test =================================================================== --- test/elf/AArch64/rel-abs64.test +++ test/elf/AArch64/rel-abs64.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ABS64 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AArch64/rel-adr_prel_lo21-overflow.test =================================================================== --- test/elf/AArch64/rel-adr_prel_lo21-overflow.test +++ test/elf/AArch64/rel-adr_prel_lo21-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ADR_PREL_PG_HI21 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # CHECK: Relocation out of range in file {{.*}}: reference from _start+0 to data1+1048577 of type 274 (R_AARCH64_ADR_PREL_LO21) Index: test/elf/AArch64/rel-adr_prel_lo21.test =================================================================== --- test/elf/AArch64/rel-adr_prel_lo21.test +++ test/elf/AArch64/rel-adr_prel_lo21.test @@ -2,7 +2,7 @@ # Check handling of R_AARCH64_ADR_PREL_LO21 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -d -t %t-exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/AArch64/rel-adr_prel_pg_hi21-overflow.test =================================================================== --- test/elf/AArch64/rel-adr_prel_pg_hi21-overflow.test +++ test/elf/AArch64/rel-adr_prel_pg_hi21-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_ADR_PREL_PG_HI21 relocation overflow. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # CHECK-DAG: Relocation out of range in file {{.*}}: reference from _start+0 to data1+2147483649 of type 275 (R_AARCH64_ADR_PREL_PG_HI21) Index: test/elf/AArch64/rel-adr_prel_pg_hi21.test =================================================================== --- test/elf/AArch64/rel-adr_prel_pg_hi21.test +++ test/elf/AArch64/rel-adr_prel_pg_hi21.test @@ -2,7 +2,7 @@ # Check handling of R_AARCH64_ADR_PREL_PG_HI21 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -d -t %t-exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/AArch64/rel-bad.test =================================================================== --- test/elf/AArch64/rel-bad.test +++ test/elf/AArch64/rel-bad.test @@ -1,6 +1,6 @@ # Check handling of a bad relocation (in this case dynamic in a static object). # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK: Unhandled reference type in file {{.*}}: reference from data1+4 to data1+0 of type 1024 (R_AARCH64_COPY) Index: test/elf/AArch64/rel-prel16-overflow.test =================================================================== --- test/elf/AArch64/rel-prel16-overflow.test +++ test/elf/AArch64/rel-prel16-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_PREL16 relocation overflow. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK: Relocation out of range in file {{.*}}: reference from data1+0 to data2+524289 of type 262 (R_AARCH64_PREL16) # CHECK: Relocation out of range in file {{.*}}: reference from data2+0 to data1+524289 of type 262 (R_AARCH64_PREL16) Index: test/elf/AArch64/rel-prel16.test =================================================================== --- test/elf/AArch64/rel-prel16.test +++ test/elf/AArch64/rel-prel16.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_PREL16 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AArch64/rel-prel32-overflow.test =================================================================== --- test/elf/AArch64/rel-prel32-overflow.test +++ test/elf/AArch64/rel-prel32-overflow.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_PREL32 relocation overflow. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target arm64 -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK: Relocation out of range in file {{.*}}: reference from data1+0 to data2+34359738369 of type 261 (R_AARCH64_PREL32) # CHECK: Relocation out of range in file {{.*}}: reference from data2+0 to data1+34359738369 of type 261 (R_AARCH64_PREL32) Index: test/elf/AArch64/rel-prel32.test =================================================================== --- test/elf/AArch64/rel-prel32.test +++ test/elf/AArch64/rel-prel32.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_PREL32 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AArch64/rel-prel64.test =================================================================== --- test/elf/AArch64/rel-prel64.test +++ test/elf/AArch64/rel-prel64.test @@ -1,6 +1,6 @@ # Check handling of R_AARCH64_PREL64 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target arm64 -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/AMDGPU/hsa.test =================================================================== --- test/elf/AMDGPU/hsa.test +++ test/elf/AMDGPU/hsa.test @@ -1,5 +1,5 @@ # RUN: yaml2obj -format=elf %s > %t.obj -# RUN: lld -flavor gnu -target amdgcn--hsa %t.obj -o %t.exe --noinhibit-exec +# RUN: lld -flavor old-gnu -target amdgcn--hsa %t.obj -o %t.exe --noinhibit-exec # RUN: llvm-readobj -h -program-headers -s -symbols %t.exe | FileCheck %s # CHECK: ElfHeader { Index: test/elf/ARM/arm-symbols.test =================================================================== --- test/elf/ARM/arm-symbols.test +++ test/elf/ARM/arm-symbols.test @@ -4,7 +4,7 @@ # 3. Symbol content. # RUN: yaml2obj -format=elf %s > %t-a.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-a.o -o %t-a # RUN: llvm-readobj -symbols %t-a | FileCheck -check-prefix=SYM-ADDR %s # RUN: llvm-readobj -symbols %t-a | FileCheck -check-prefix=SYM-SIZE %s Index: test/elf/ARM/defsym.test =================================================================== --- test/elf/ARM/defsym.test +++ test/elf/ARM/defsym.test @@ -1,7 +1,7 @@ # Check that defined symbols are present in the generated executable # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm-linux-gnu --defsym=main=fn \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu --defsym=main=fn \ # RUN: -Bstatic --noinhibit-exec %t-o.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/ARM/dynamic-symbols.test =================================================================== --- test/elf/ARM/dynamic-symbols.test +++ test/elf/ARM/dynamic-symbols.test @@ -1,7 +1,7 @@ # Check that proper dynamic symbols are present in the generated executable # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-o.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=STATIC %s @@ -9,7 +9,7 @@ # STATIC-NOT: Name: _DYNAMIC # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=EXEC-DYN %s @@ -29,7 +29,7 @@ # EXEC-DYN-NEXT: Section: Absolute (0xFFF1) # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -shared --noinhibit-exec %t-o.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=SHARED %s Index: test/elf/ARM/entry-point.test =================================================================== --- test/elf/ARM/entry-point.test +++ test/elf/ARM/entry-point.test @@ -1,6 +1,6 @@ # 1. Check entry point address for ARM code - should be even. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm.o -o %t-arm # RUN: llvm-readobj -file-headers %t-arm | FileCheck -check-prefix=ARM-ENTRY %s # @@ -8,7 +8,7 @@ # 2. Check entry point address for Thumb code - should be odd. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-thm.o -o %t-thm # RUN: llvm-readobj -file-headers %t-thm | FileCheck -check-prefix=THM-ENTRY %s # @@ -16,7 +16,7 @@ # 3. Check wrong entry point address align for ARM code. # RUN: yaml2obj -format=elf -docnum 3 %s > %t-arm-wrong.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm-wrong.o -o %t-arm-wrong 2> %t-error # FileCheck -check-prefix=ARM-WRONG %s < %t-error # Index: test/elf/ARM/exidx.test =================================================================== --- test/elf/ARM/exidx.test +++ test/elf/ARM/exidx.test @@ -1,6 +1,6 @@ # .ARM.exidx contents checking # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target arm-none-linux-eabi -static -o %t %t.o +# RUN: lld -flavor old-gnu -target arm-none-linux-eabi -static -o %t %t.o # RUN: llvm-objdump -s -t -section-headers %t | FileCheck %s # # CHECK: Sections: Index: test/elf/ARM/header-flags.test =================================================================== --- test/elf/ARM/header-flags.test +++ test/elf/ARM/header-flags.test @@ -2,7 +2,7 @@ # 1. Check header flags for statically linked executable with default options. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t.o -o %t # RUN: llvm-readobj -file-headers %t | FileCheck -check-prefix=STATIC-DEF %s # @@ -11,7 +11,7 @@ # 2. Check header flags for dynamically linked executable with default options. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t.o -o %t # RUN: llvm-readobj -file-headers %t | FileCheck -check-prefix=EXEC-DYN-DEF %s # @@ -20,7 +20,7 @@ # 3. Check header flags for shared object with default options. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -shared \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -shared \ # RUN: --noinhibit-exec %t.o -o %t # RUN: llvm-readobj -file-headers %t | FileCheck -check-prefix=SHARED-DEF %s # Index: test/elf/ARM/mapping-code-model.test =================================================================== --- test/elf/ARM/mapping-code-model.test +++ test/elf/ARM/mapping-code-model.test @@ -3,7 +3,7 @@ # 1. ARM <=> Thumb generates both veneers. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-a-arm.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu --defsym=main=f_a \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu --defsym=main=f_a \ # RUN: -Bstatic --noinhibit-exec %t-a-arm.o %t-t-thm.o -o %t # RUN: llvm-objdump -t %t | FileCheck -check-prefix=INTER %s @@ -14,7 +14,7 @@ # 2. Thumb <=> Thumb doesn't generate veneers. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-a-thm.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu --defsym=main=f_t \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu --defsym=main=f_t \ # RUN: -Bstatic --noinhibit-exec %t-t-thm.o %t-a-thm.o -o %t # RUN: llvm-objdump -t %t | FileCheck -check-prefix=THUMB %s Index: test/elf/ARM/mapping-symbols.test =================================================================== --- test/elf/ARM/mapping-symbols.test +++ test/elf/ARM/mapping-symbols.test @@ -1,7 +1,7 @@ # Check that mapping symbols have zero size, local binding and none type. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-a.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-t.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-a.o %t-t.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/ARM/missing-symbol.test =================================================================== --- test/elf/ARM/missing-symbol.test +++ test/elf/ARM/missing-symbol.test @@ -1,7 +1,7 @@ # Check that _MISSING_SYMBOL_ symbol is not resolved # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2>&1 | FileCheck %s # CHECK: Undefined symbol: {{.*}}: _MISSING_SYMBOL_ Index: test/elf/ARM/plt-dynamic.test =================================================================== --- test/elf/ARM/plt-dynamic.test +++ test/elf/ARM/plt-dynamic.test @@ -2,7 +2,7 @@ # # 1. ARM code generates PLT entries. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-arm.o -lfn -L%p/Inputs -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=ARM %s @@ -23,7 +23,7 @@ # 2. Thumb code generates PLT entries with veneers. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-thm.o -lfn -L%p/Inputs -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM %s @@ -43,7 +43,7 @@ # 3. Thumb code generates PLT entries without veneers when bl->blx is done. # RUN: yaml2obj -format=elf -docnum 3 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-thm.o -lfn -L%p/Inputs -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-BLX %s @@ -61,7 +61,7 @@ # Generation of mapping symbols. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-arm.o -lfn -L%p/Inputs -o %t-arm # RUN: llvm-readobj -symbols %t-arm | FileCheck -check-prefix=ARM-MAPPING %s @@ -70,7 +70,7 @@ # ARM-MAPPING: Name: {{[$]?[a]?[.]?}}__plt_fn # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: --noinhibit-exec %t-thm.o -lfn -L%p/Inputs -o %t-thm # RUN: llvm-readobj -symbols %t-thm | FileCheck -check-prefix=THM-MAPPING %s Index: test/elf/ARM/plt-ifunc-interwork.test =================================================================== --- test/elf/ARM/plt-ifunc-interwork.test +++ test/elf/ARM/plt-ifunc-interwork.test @@ -3,7 +3,7 @@ # # 1. ARM code generates PLT without transition veneer. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-f1-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-arm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=ARM-ONE %s @@ -15,7 +15,7 @@ # 2. Thumb code generates PLT with transition veneer. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-f1-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-thm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-ONE %s @@ -28,21 +28,21 @@ # 3. ARM + Thumb code generate same single PLT with transition veneer. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-f1-arm.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-f1-thm-for-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-arm.o %t-f1-thm-for-arm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-ONE %s # 4. Thumb + ARM code generate same single PLT with transition veneer. # RUN: yaml2obj -format=elf -docnum 3 %s > %t-f1-thm-for-arm.o # RUN: yaml2obj -format=elf -docnum 1 %s > %t-f1-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-thm-for-arm.o %t-f1-arm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-ONE %s # 5. ARM + ARM code generate two PLTs without transition veneers. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-f1-arm.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-f2-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-arm.o %t-f2-arm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=ARM-TWO %s @@ -57,7 +57,7 @@ # 6. ARM + Thumb code generate two PLTs without and with transition veneer. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-f1-arm.o # RUN: yaml2obj -format=elf -docnum 5 %s > %t-f2-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-arm.o %t-f2-thm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=ARM-THM-TWO %s @@ -72,7 +72,7 @@ # 7. Thumb + ARM code generate two PLTs with and without transition veneer. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-f1-thm.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-f2-arm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-thm.o %t-f2-arm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-ARM-TWO %s @@ -87,7 +87,7 @@ # 8. Thumb + Thumb code generate two PLTs with transition veneers. # RUN: yaml2obj -format=elf -docnum 2 %s > %t-f1-thm.o # RUN: yaml2obj -format=elf -docnum 5 %s > %t-f2-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-thm.o %t-f2-thm.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-TWO %s @@ -101,7 +101,7 @@ # 9. Thumb code generates PLT without transition veneer when bl->blx is done. # RUN: yaml2obj -format=elf -docnum 6 %s > %t-f1-thm-c.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-f1-thm-c.o -o %t # RUN: llvm-objdump -s %t | FileCheck -check-prefix=THM-BL %s Index: test/elf/ARM/plt-ifunc-mapping.test =================================================================== --- test/elf/ARM/plt-ifunc-mapping.test +++ test/elf/ARM/plt-ifunc-mapping.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/ARM/rel-abs32.test =================================================================== --- test/elf/ARM/rel-abs32.test +++ test/elf/ARM/rel-abs32.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_ABS32 relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-arm-call.test =================================================================== --- test/elf/ARM/rel-arm-call.test +++ test/elf/ARM/rel-arm-call.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_CALL relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -14,7 +14,7 @@ # CHECK: 00400088 g F .text {{[0-9a-f]+}} main # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-arm-jump24-veneer-b.test =================================================================== --- test/elf/ARM/rel-arm-jump24-veneer-b.test +++ test/elf/ARM/rel-arm-jump24-veneer-b.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s @@ -27,7 +27,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s Index: test/elf/ARM/rel-arm-jump24-veneer-bl.test =================================================================== --- test/elf/ARM/rel-arm-jump24-veneer-bl.test +++ test/elf/ARM/rel-arm-jump24-veneer-bl.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s @@ -26,7 +26,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s Index: test/elf/ARM/rel-arm-jump24.test =================================================================== --- test/elf/ARM/rel-arm-jump24.test +++ test/elf/ARM/rel-arm-jump24.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_JUMP24 relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -14,7 +14,7 @@ # CHECK: 00400090 g F .text {{[0-9a-f]+}} main # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-arm-mov.test =================================================================== --- test/elf/ARM/rel-arm-mov.test +++ test/elf/ARM/rel-arm-mov.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_MOVW_ABS_NC and R_ARM_MOVT_ABS relocation pair. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-arm-prel31.test =================================================================== --- test/elf/ARM/rel-arm-prel31.test +++ test/elf/ARM/rel-arm-prel31.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_PREL31 relocation. # RUN: yaml2obj -format=elf -docnum=1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec --defsym=main=__gxx_personality_v0 %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -10,7 +10,7 @@ # CHECK: 00400054 g F .text {{[0-9a-f]+}} __gxx_personality_v0 # RUN: yaml2obj -format=elf -docnum=2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec --defsym=main=__gxx_personality_v0 %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-arm-target1.test =================================================================== --- test/elf/ARM/rel-arm-target1.test +++ test/elf/ARM/rel-arm-target1.test @@ -2,7 +2,7 @@ # # 1. R_ARM_TARGET1 is equal to R_ARM_ABS32 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-abs32.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec --target1-abs %t-abs32.o -o %t-abs32 # RUN: llvm-objdump -s -t %t-abs32 | FileCheck -check-prefix=CHECK-ABS32 %s # @@ -15,7 +15,7 @@ # 2. R_ARM_TARGET1 is equal to R_ARM_REL32 # Check handling of R_ARM_REL32 relocation. # RUN: yaml2obj -format=elf %s -docnum 2 > %t-rel32.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec --target1-rel %t-rel32.o -o %t-rel32 # RUN: llvm-objdump -s -t %t-rel32 | FileCheck -check-prefix=CHECK-REL32 %s # Index: test/elf/ARM/rel-arm-thm-interwork.test =================================================================== --- test/elf/ARM/rel-arm-thm-interwork.test +++ test/elf/ARM/rel-arm-thm-interwork.test @@ -1,7 +1,7 @@ # Check ARM <=> Thumb interwork. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # Check R_ARM_CALL veneer to call Thumb code Index: test/elf/ARM/rel-base-prel.test =================================================================== --- test/elf/ARM/rel-base-prel.test +++ test/elf/ARM/rel-base-prel.test @@ -3,7 +3,7 @@ # for other cases. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-copy.test =================================================================== --- test/elf/ARM/rel-copy.test +++ test/elf/ARM/rel-copy.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_COPY relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-o.o -lobj -L%p/Inputs -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s # RUN: llvm-readobj -relocations %t | FileCheck -check-prefix=READOBJ %s Index: test/elf/ARM/rel-glob-dat.test =================================================================== --- test/elf/ARM/rel-glob-dat.test +++ test/elf/ARM/rel-glob-dat.test @@ -1,7 +1,7 @@ # Check handling of R_ARM_GLOB_DAT relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -shared \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -shared \ # RUN: --noinhibit-exec %t-o.o -lfn -L%p/Inputs -o %t # RUN: llvm-readobj -relocations %t | FileCheck %s Index: test/elf/ARM/rel-got-brel.test =================================================================== --- test/elf/ARM/rel-got-brel.test +++ test/elf/ARM/rel-got-brel.test @@ -1,7 +1,7 @@ # Check handling of R_ARM_GOT_BREL relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-group-relocs.test =================================================================== --- test/elf/ARM/rel-group-relocs.test +++ test/elf/ARM/rel-group-relocs.test @@ -2,7 +2,7 @@ # R_ARM_LDR_PC_G2). # # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: -e plt_func %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-ifunc.test =================================================================== --- test/elf/ARM/rel-ifunc.test +++ test/elf/ARM/rel-ifunc.test @@ -1,6 +1,6 @@ # Check handling of IFUNC (gnu_indirect_function). # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-jump-slot.test =================================================================== --- test/elf/ARM/rel-jump-slot.test +++ test/elf/ARM/rel-jump-slot.test @@ -1,7 +1,7 @@ # Check handling of R_ARM_JUMP_SLOT relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -shared \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -shared \ # RUN: --noinhibit-exec %t-o.o -lfn -L%p/Inputs -o %t # RUN: llvm-readobj -relocations %t | FileCheck %s Index: test/elf/ARM/rel-rel32.test =================================================================== --- test/elf/ARM/rel-rel32.test +++ test/elf/ARM/rel-rel32.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_REL32 relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s Index: test/elf/ARM/rel-thm-call.test =================================================================== --- test/elf/ARM/rel-thm-call.test +++ test/elf/ARM/rel-thm-call.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_THM_CALL relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -14,7 +14,7 @@ # CHECK: 00400080 g F .text {{[0-9a-f]+}} main # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-thm-jump11.test =================================================================== --- test/elf/ARM/rel-thm-jump11.test +++ test/elf/ARM/rel-thm-jump11.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_THM_JUMP11 relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -11,7 +11,7 @@ # CHECK: 004001a4 g F .text 00000004 __gnu_h2f_alternative # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-thm-jump24-veneer.test =================================================================== --- test/elf/ARM/rel-thm-jump24-veneer.test +++ test/elf/ARM/rel-thm-jump24-veneer.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s @@ -26,7 +26,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s Index: test/elf/ARM/rel-thm-jump24.test =================================================================== --- test/elf/ARM/rel-thm-jump24.test +++ test/elf/ARM/rel-thm-jump24.test @@ -1,6 +1,6 @@ # Check handling of R_ARM_THM_JUMP24 relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s @@ -14,7 +14,7 @@ # CHECK: 00400084 g F .text {{[0-9a-f]+}} main # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: not lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: not lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t 2> %t-error # RUN: FileCheck -check-prefix=OVERFLOW %s < %t-error Index: test/elf/ARM/rel-thm-mov.test =================================================================== --- test/elf/ARM/rel-thm-mov.test +++ test/elf/ARM/rel-thm-mov.test @@ -1,7 +1,7 @@ # 1. Check handling of R_ARM_THM_MOVW_ABS_NC and R_THM_ARM_MOVT_ABS relocation pair. # 2. Check that instructions are not cropped for symbols that address Thumb code. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck %s # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=INSN-CROP %s Index: test/elf/ARM/rel-tls-ie32.test =================================================================== --- test/elf/ARM/rel-tls-ie32.test +++ test/elf/ARM/rel-tls-ie32.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-tls.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-tlsv.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-tls.o %t-tlsv.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s @@ -19,7 +19,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-tls.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-tlsv.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-tls.o %t-tlsv.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s Index: test/elf/ARM/rel-tls-le32.test =================================================================== --- test/elf/ARM/rel-tls-le32.test +++ test/elf/ARM/rel-tls-le32.test @@ -1,7 +1,7 @@ # Check handling of R_ARM_TLS_LE32 relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s @@ -13,7 +13,7 @@ # STATIC: 00000000 g .tdata 00000004 i # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s Index: test/elf/ARM/rel-v4bx.test =================================================================== --- test/elf/ARM/rel-v4bx.test +++ test/elf/ARM/rel-v4bx.test @@ -2,7 +2,7 @@ # Check handling of R_ARM_V4BX relocation. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi \ # RUN: --noinhibit-exec %t-o.o -o %t # RUN: llvm-objdump -d -triple=armv4t %t | FileCheck %s Index: test/elf/ARM/thm-symbols.test =================================================================== --- test/elf/ARM/thm-symbols.test +++ test/elf/ARM/thm-symbols.test @@ -4,7 +4,7 @@ # 3. Symbol content. # RUN: yaml2obj -format=elf %s > %t-t.o -# RUN: lld -flavor gnu -target arm-linux-gnu \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu \ # RUN: -Bstatic --noinhibit-exec %t-t.o -o %t-t # RUN: llvm-readobj -symbols %t-t | FileCheck -check-prefix=SYM-ADDR %s # RUN: llvm-readobj -symbols %t-t | FileCheck -check-prefix=SYM-SIZE %s Index: test/elf/ARM/two-got-for-symbol.test =================================================================== --- test/elf/ARM/two-got-for-symbol.test +++ test/elf/ARM/two-got-for-symbol.test @@ -2,7 +2,7 @@ # R_ARM_GLOB_DAT may be present for the same symbol in the linked binary. # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -shared \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -shared \ # RUN: --noinhibit-exec %t-o.o -lfn -L%p/Inputs -o %t # RUN: llvm-readobj -relocations %t | FileCheck %s Index: test/elf/ARM/undef-lazy-symbol.test =================================================================== --- test/elf/ARM/undef-lazy-symbol.test +++ test/elf/ARM/undef-lazy-symbol.test @@ -1,7 +1,7 @@ # Check that _GLOBAL_OFFSET_TABLE_ symbol is resolved # RUN: yaml2obj -format=elf -docnum 1 %s > %t-got.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-got.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=GOT %s @@ -16,7 +16,7 @@ # Check that __exidx_start/_end symbols are resolved # RUN: yaml2obj -format=elf -docnum 2 %s > %t-exidx.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --defsym=main=fn --noinhibit-exec %t-exidx.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=EXIDX %s @@ -40,7 +40,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-got.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-exidx.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-got.o %t-exidx.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=SYMS %s Index: test/elf/ARM/veneer-mapping.test =================================================================== --- test/elf/ARM/veneer-mapping.test +++ test/elf/ARM/veneer-mapping.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-arm.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm.o -# RUN: lld -flavor gnu -target arm-linux-gnu --defsym=main=fa \ +# RUN: lld -flavor old-gnu -target arm-linux-gnu --defsym=main=fa \ # RUN: -Bstatic --noinhibit-exec %t-arm.o %t-thm.o -o %t # RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/ARM/weak-branch.test =================================================================== --- test/elf/ARM/weak-branch.test +++ test/elf/ARM/weak-branch.test @@ -1,7 +1,7 @@ # Check weak references fixup. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-jmp11.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-jmp11.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=JMP11-CHECK %s @@ -18,7 +18,7 @@ # JMP11-CHECK: 00000000 w *UND* 00000000 __gnu_h2f_internal # RUN: yaml2obj -format=elf -docnum 2 %s > %t-thm-call.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-thm-call.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=THM-CALL-CHECK %s @@ -33,7 +33,7 @@ # THM-CALL-CHECK: 00000000 w *UND* 00000000 weak_fn # RUN: yaml2obj -format=elf -docnum 3 %s > %t-arm-call.o -# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \ +# RUN: lld -flavor old-gnu -target arm -m armelf_linux_eabi -Bstatic \ # RUN: --noinhibit-exec %t-arm-call.o -o %t # RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=ARM-CALL-CHECK %s Index: test/elf/Hexagon/dynlib-data.test =================================================================== --- test/elf/Hexagon/dynlib-data.test +++ test/elf/Hexagon/dynlib-data.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj-data.o \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/dynobj-data.o \ RUN: -o %t --noinhibit-exec -shared RUN: llvm-objdump -s %t > %t1 RUN: FileCheck -check-prefix=CHECKRELOCS %s < %t1 Index: test/elf/Hexagon/dynlib-gotoff.test =================================================================== --- test/elf/Hexagon/dynlib-gotoff.test +++ test/elf/Hexagon/dynlib-gotoff.test @@ -1,5 +1,5 @@ # This tests GOT's and PLT's for dynamic libraries for Hexagon -RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj.o \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/dynobj.o \ RUN: -o %t --output-filetype=yaml -shared --noinhibit-exec RUN: FileCheck -check-prefix=CHECKGOTPLT %s < %t Index: test/elf/Hexagon/dynlib-hash.test =================================================================== --- test/elf/Hexagon/dynlib-hash.test +++ test/elf/Hexagon/dynlib-hash.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj.o \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/dynobj.o \ RUN: -o %t --noinhibit-exec -shared RUN: llvm-objdump -s %t > %t1 RUN: FileCheck -check-prefix=CHECKHASH %s < %t1 Index: test/elf/Hexagon/dynlib-rela.test =================================================================== --- test/elf/Hexagon/dynlib-rela.test +++ test/elf/Hexagon/dynlib-rela.test @@ -1,5 +1,5 @@ # Tests that the relocation sections have the right alignment. -RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 RUN: llvm-readobj -sections %t1 > %t2 RUN: FileCheck -check-prefix=SECTIONS %s < %t2 Index: test/elf/Hexagon/dynlib-syms.test =================================================================== --- test/elf/Hexagon/dynlib-syms.test +++ test/elf/Hexagon/dynlib-syms.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj.o \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/dynobj.o \ RUN: -o %t --noinhibit-exec -shared RUN: llvm-nm -n -M %t > %t1 RUN: FileCheck -check-prefix=CHECKSYMS %s < %t1 Index: test/elf/Hexagon/dynlib.test =================================================================== --- test/elf/Hexagon/dynlib.test +++ test/elf/Hexagon/dynlib.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/use-shared.hexagon -shared -o %t1 RUN: llvm-readobj -dyn-symbols %t1 > %t2 RUN: FileCheck -check-prefix=DYNSYMS %s < %t2 RUN: llvm-readobj -program-headers %t1 | FileCheck %s Index: test/elf/Hexagon/hexagon-got-plt-order.test =================================================================== --- test/elf/Hexagon/hexagon-got-plt-order.test +++ test/elf/Hexagon/hexagon-got-plt-order.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/got-plt-order.o -o %t -shared +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/got-plt-order.o -o %t -shared RUN: llvm-objdump -section-headers %t | FileCheck %s CHECK: .got Index: test/elf/Hexagon/hexagon-plt-setup.test =================================================================== --- test/elf/Hexagon/hexagon-plt-setup.test +++ test/elf/Hexagon/hexagon-plt-setup.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/use-shared.hexagon \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/use-shared.hexagon \ RUN: --output-filetype=yaml --noinhibit-exec -o %t2 RUN: FileCheck %s < %t2 Index: test/elf/Hexagon/maxalignment.test =================================================================== --- test/elf/Hexagon/maxalignment.test +++ test/elf/Hexagon/maxalignment.test @@ -1,7 +1,7 @@ # This tests that we lld is able to get the contentType properly for archives # when they intermittently get loaded at an address whose alignment is 2 -RUN: lld -flavor gnu -target hexagon --whole-archive %p/Inputs/libMaxAlignment.a \ +RUN: lld -flavor old-gnu -target hexagon --whole-archive %p/Inputs/libMaxAlignment.a \ RUN: --noinhibit-exec -static -o %t RUN: llvm-nm %t | FileCheck %s Index: test/elf/Hexagon/rela-order.test =================================================================== --- test/elf/Hexagon/rela-order.test +++ test/elf/Hexagon/rela-order.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/dynobj.o -shared \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/dynobj.o -shared \ RUN: --noinhibit-exec -o %t RUN: llvm-objdump -section-headers %t | FileCheck %s Index: test/elf/Hexagon/sda-base.test =================================================================== --- test/elf/Hexagon/sda-base.test +++ test/elf/Hexagon/sda-base.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/sda-base.o -o %t1 --noinhibit-exec +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/sda-base.o -o %t1 --noinhibit-exec RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=sdabase sdabase: 00002000 A _SDA_BASE_ Index: test/elf/Hexagon/zerofillquick-sdata.test =================================================================== --- test/elf/Hexagon/zerofillquick-sdata.test +++ test/elf/Hexagon/zerofillquick-sdata.test @@ -1,7 +1,7 @@ # This tests that a typeZeroFillFast atom is associated with a section that has # the correct memory size. -RUN: lld -flavor gnu -target hexagon %p/Inputs/sdata1.o %p/Inputs/sdata2.o \ +RUN: lld -flavor old-gnu -target hexagon %p/Inputs/sdata1.o %p/Inputs/sdata2.o \ RUN: -o %t --noinhibit-exec -static RUN: llvm-readobj -sections %t | FileCheck -check-prefix=CHECKSECTIONSANDSIZE %s Index: test/elf/Mips/abi-flags-01.test =================================================================== --- test/elf/Mips/abi-flags-01.test +++ test/elf/Mips/abi-flags-01.test @@ -1,7 +1,7 @@ # Check rejecting .MIPS.abiflags section with a wrong version. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: {{.*}}abi-flags-01.test.tmp.o: .MIPS.abiflags section has unsupported version '1' Index: test/elf/Mips/abi-flags-02.test =================================================================== --- test/elf/Mips/abi-flags-02.test +++ test/elf/Mips/abi-flags-02.test @@ -6,7 +6,7 @@ # settings as the input section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -s -program-headers -mips-abi-flags %t.so | FileCheck %s # CHECK: Section { Index: test/elf/Mips/abi-flags-03.test =================================================================== --- test/elf/Mips/abi-flags-03.test +++ test/elf/Mips/abi-flags-03.test @@ -9,7 +9,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t3.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o %t2.o %t3.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t1.o %t2.o %t3.o # RUN: llvm-readobj -mips-abi-flags %t.so | FileCheck %s # CHECK: MIPS ABI Flags { Index: test/elf/Mips/abi-flags-04.test =================================================================== --- test/elf/Mips/abi-flags-04.test +++ test/elf/Mips/abi-flags-04.test @@ -11,7 +11,7 @@ # RUN: yaml2obj -format=elf -docnum 3 %s > %t-64.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-64a.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1 %t-xx.o %t-double.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1 %t-xx.o %t-double.o # RUN: llvm-readobj -mips-abi-flags %t1 | FileCheck -check-prefix=XX-DOUBLE %s # XX-DOUBLE: FP ABI: Hard float (double precision) (0x1) @@ -19,7 +19,7 @@ # XX-DOUBLE: CPR1 size: 32 # XX-DOUBLE: Flags 1 [ (0x0) -# RUN: lld -flavor gnu -target mipsel -shared -o %t2 %t-xx.o %t-64.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2 %t-xx.o %t-64.o # RUN: llvm-readobj -mips-abi-flags %t2 | FileCheck -check-prefix=XX-64 %s # XX-64: FP ABI: Hard float (32-bit CPU, 64-bit FPU) (0x6) @@ -28,7 +28,7 @@ # XX-64: Flags 1 [ (0x1) # XX-64: ODDSPREG (0x1) -# RUN: lld -flavor gnu -target mipsel -shared -o %t3 %t-xx.o %t-64a.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t3 %t-xx.o %t-64a.o # RUN: llvm-readobj -mips-abi-flags %t3 | FileCheck -check-prefix=XX-64A %s # XX-64A: FP ABI: Hard float compat (32-bit CPU, 64-bit FPU) (0x7) @@ -36,7 +36,7 @@ # XX-64A: CPR1 size: 64 # XX-64A: Flags 1 [ (0x0) -# RUN: lld -flavor gnu -target mipsel -shared -o %t4 %t-64.o %t-64a.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t4 %t-64.o %t-64a.o # RUN: llvm-readobj -mips-abi-flags %t4 | FileCheck -check-prefix=64-64A %s # 64-64A: FP ABI: Hard float (32-bit CPU, 64-bit FPU) (0x6) Index: test/elf/Mips/abi-flags-05.test =================================================================== --- test/elf/Mips/abi-flags-05.test +++ test/elf/Mips/abi-flags-05.test @@ -13,57 +13,57 @@ # RUN: yaml2obj -format=elf -docnum 5 %s > %t-64.o # RUN: yaml2obj -format=elf -docnum 6 %s > %t-64a.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1 %t-xx.o %t-sgl.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1 %t-xx.o %t-sgl.o 2>&1 \ # RUN: | FileCheck -check-prefix=XX-SINGLE-WARN %s # XX-SINGLE-WARN: FP ABI {{-mfpxx|-msingle-float}} is incompatible with {{-msingle-float|-mfpxx}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t2 %t-xx.o %t-soft.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2 %t-xx.o %t-soft.o 2>&1 \ # RUN: | FileCheck -check-prefix=XX-SOFT-WARN %s # XX-SOFT-WARN: FP ABI {{-mfpxx|-msoft-float}} is incompatible with {{-msoft-float|-mfpxx}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t3 %t-dbl.o %t-sgl.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t3 %t-dbl.o %t-sgl.o 2>&1 \ # RUN: | FileCheck -check-prefix=DOUBLE-SINGLE-WARN %s # DOUBLE-SINGLE-WARN: FP ABI {{-mdouble-float|-msingle-float}} is incompatible with {{-msingle-float|-mdouble-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t4 %t-dbl.o %t-soft.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t4 %t-dbl.o %t-soft.o 2>&1 \ # RUN: | FileCheck -check-prefix=DOUBLE-SOFT-WARN %s # DOUBLE-SOFT-WARN: FP ABI {{-mdouble-float|-msoft-float}} is incompatible with {{-msoft-float|-mdouble-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t5 %t-dbl.o %t-64.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t5 %t-dbl.o %t-64.o 2>&1 \ # RUN: | FileCheck -check-prefix=DOUBLE-64-WARN %s # DOUBLE-64-WARN: FP ABI {{-mdouble-float|-mgp32 -mfp64}} is incompatible with {{-mgp32 -mfp64|-mdouble-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t6 %t-dbl.o %t-64a.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t6 %t-dbl.o %t-64a.o 2>&1 \ # RUN: | FileCheck -check-prefix=DOUBLE-64A-WARN %s # DOUBLE-64A-WARN: FP ABI {{-mdouble-float|-mgp32 -mfp64 -mno-odd-spreg}} is incompatible with {{-mgp32 -mfp64 -mno-odd-spreg|-mdouble-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t7 %t-sgl.o %t-soft.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t7 %t-sgl.o %t-soft.o 2>&1 \ # RUN: | FileCheck -check-prefix=SINGLE-SOFT-WARN %s # SINGLE-SOFT-WARN: FP ABI {{-msingle-float|-msoft-float}} is incompatible with {{-msoft-float|-msingle-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t8 %t-sgl.o %t-64.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t8 %t-sgl.o %t-64.o 2>&1 \ # RUN: | FileCheck -check-prefix=SINGLE-64-WARN %s # SINGLE-64-WARN: FP ABI {{-msingle-float|-mgp32 -mfp64}} is incompatible with {{-mgp32 -mfp64|-msingle-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t9 %t-sgl.o %t-64a.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t9 %t-sgl.o %t-64a.o 2>&1 \ # RUN: | FileCheck -check-prefix=SINGLE-64A-WARN %s # SINGLE-64A-WARN: FP ABI {{-msingle-float|-mgp32 -mfp64 -mno-odd-spreg}} is incompatible with {{-mgp32 -mfp64 -mno-odd-spreg|-msingle-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t10 %t-soft.o %t-64.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t10 %t-soft.o %t-64.o 2>&1 \ # RUN: | FileCheck -check-prefix=SOFT-64-WARN %s # SOFT-64-WARN: FP ABI {{-msoft-float|-mgp32 -mfp64}} is incompatible with {{-mgp32 -mfp64|-msoft-float}} -# RUN: lld -flavor gnu -target mipsel -shared -o %t11 %t-soft.o %t-64a.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t11 %t-soft.o %t-64a.o 2>&1 \ # RUN: | FileCheck -check-prefix=SOFT-64A-WARN %s # SOFT-64A-WARN: FP ABI {{-msoft-float|-mgp32 -mfp64 -mno-odd-spreg}} is incompatible with {{-mgp32 -mfp64 -mno-odd-spreg|-msoft-float}} Index: test/elf/Mips/abi-flags-06.test =================================================================== --- test/elf/Mips/abi-flags-06.test +++ test/elf/Mips/abi-flags-06.test @@ -7,7 +7,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-abi.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-elf.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-abi.o %t-elf.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-abi.o %t-elf.o # RUN: llvm-readobj -mips-abi-flags %t.so | FileCheck %s # CHECK: MIPS ABI Flags { Index: test/elf/Mips/abi-flags-07.test =================================================================== --- test/elf/Mips/abi-flags-07.test +++ test/elf/Mips/abi-flags-07.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t1.o %t2.o # RUN: llvm-readobj -mips-abi-flags %t.so | FileCheck %s # CHECK: There is no .MIPS.abiflags section in the file. Index: test/elf/Mips/abi-flags-08.test =================================================================== --- test/elf/Mips/abi-flags-08.test +++ test/elf/Mips/abi-flags-08.test @@ -4,11 +4,11 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-isa.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-ext.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-ases.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t-isa.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t-isa.o 2>&1 \ # RUN: | FileCheck -check-prefix=ISA-ERR %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t-ext.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t-ext.o 2>&1 \ # RUN: | FileCheck -check-prefix=EXT-ERR %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t3.so %t-ases.o 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t3.so %t-ases.o 2>&1 \ # RUN: | FileCheck -check-prefix=ASE-ERR %s # RUN: llvm-readobj -mips-abi-flags %t1.so %t2.so %t3.so \ # RUN: | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/abi-flags-09.test =================================================================== --- test/elf/Mips/abi-flags-09.test +++ test/elf/Mips/abi-flags-09.test @@ -2,7 +2,7 @@ # It should go right after the PT_INTERP segment. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # CHECK: ProgramHeader { Index: test/elf/Mips/abi-flags-10.test =================================================================== --- test/elf/Mips/abi-flags-10.test +++ test/elf/Mips/abi-flags-10.test @@ -2,7 +2,7 @@ # if there is a SHT_MIPS_ABIFLAGS section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # CHECK: ProgramHeaders [ Index: test/elf/Mips/abi-flags-11.test =================================================================== --- test/elf/Mips/abi-flags-11.test +++ test/elf/Mips/abi-flags-11.test @@ -2,7 +2,7 @@ # It should go right after the PT_INTERP segment. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # CHECK: ProgramHeader { Index: test/elf/Mips/base-address-64.test =================================================================== --- test/elf/Mips/base-address-64.test +++ test/elf/Mips/base-address-64.test @@ -2,7 +2,7 @@ # equal to 0x400000 and the MIPS_BASE_ADDRESS dynamic tag's value should # be the same. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el --noinhibit-exec -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el --noinhibit-exec -o %t.exe %t.o # RUN: llvm-readobj -dynamic-table -program-headers %t.exe | FileCheck %s # CHECK: DynamicSection [ (15 entries) Index: test/elf/Mips/base-address.test =================================================================== --- test/elf/Mips/base-address.test +++ test/elf/Mips/base-address.test @@ -2,7 +2,7 @@ # equal to 0x400000 and the MIPS_BASE_ADDRESS dynamic tag's value should # be the same. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel --noinhibit-exec -o %t.exe %t.o # RUN: llvm-readobj -dynamic-table -program-headers %t.exe | FileCheck %s # CHECK: DynamicSection [ (15 entries) Index: test/elf/Mips/ctors-order.test =================================================================== --- test/elf/Mips/ctors-order.test +++ test/elf/Mips/ctors-order.test @@ -3,9 +3,9 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-crtbeginS.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-crtendS.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-obj.o -# RUN: lld -flavor gnu -target mipsel -shared --output-filetype=yaml \ +# RUN: lld -flavor old-gnu -target mipsel -shared --output-filetype=yaml \ # RUN: %t-crtbeginS.o %t-obj.o %t-crtendS.o | FileCheck %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-crtbeginS.o %t-obj.o %t-crtendS.o # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/driver-hash-style.test =================================================================== --- test/elf/Mips/driver-hash-style.test +++ test/elf/Mips/driver-hash-style.test @@ -4,9 +4,9 @@ # because it is the only style supported by MIPS ABI. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o -# RUN: not lld -flavor gnu -target mips --hash-style=both %t.o -o %t.exe 2>&1 \ +# RUN: not lld -flavor old-gnu -target mips --hash-style=both %t.o -o %t.exe 2>&1 \ # RUN: | FileCheck %s -# RUN: not lld -flavor gnu -target mips --hash-style=gnu %t.o -o %t.exe 2>&1 \ +# RUN: not lld -flavor old-gnu -target mips --hash-style=gnu %t.o -o %t.exe 2>&1 \ # RUN: | FileCheck %s # CHECK: error: .gnu.hash is incompatible with the MIPS ABI Index: test/elf/Mips/dt-textrel-64.test =================================================================== --- test/elf/Mips/dt-textrel-64.test +++ test/elf/Mips/dt-textrel-64.test @@ -2,9 +2,9 @@ # .dynamic section contains the DT_TEXTREL tag. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dynamic-table %t.exe | FileCheck %s # CHECK: 0x{{[0-9A-F]+}} TEXTREL Index: test/elf/Mips/dt-textrel.test =================================================================== --- test/elf/Mips/dt-textrel.test +++ test/elf/Mips/dt-textrel.test @@ -2,9 +2,9 @@ # .dynamic section contains the DT_TEXTREL tag. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dynamic-table %t.exe | FileCheck %s # CHECK: 0x{{[0-9A-F]+}} TEXTREL Index: test/elf/Mips/dynamic-linking.test =================================================================== --- test/elf/Mips/dynamic-linking.test +++ test/elf/Mips/dynamic-linking.test @@ -3,17 +3,17 @@ # Check _DYNAMIC_LINKING symbol definition. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o -# RUN: lld -flavor gnu -target mips %t.o -o %t.exe +# RUN: lld -flavor old-gnu -target mips %t.o -o %t.exe # RUN: llvm-nm %t.exe | FileCheck -check-prefix=EXE-DYN %s # EXE-DYN: 00000001 A _DYNAMIC_LINKING -# RUN: lld -flavor gnu -target mips -static %t.o -o %t.exe +# RUN: lld -flavor old-gnu -target mips -static %t.o -o %t.exe # RUN: llvm-nm -just-symbol-name %t.exe | FileCheck -check-prefix=EXE-STATIC %s # EXE-STATIC-NOT: _DYNAMIC_LINKING -# RUN: lld -flavor gnu -target mips -shared %t.o -o %t.so +# RUN: lld -flavor old-gnu -target mips -shared %t.o -o %t.so # RUN: llvm-nm -just-symbol-name %t.so | FileCheck -check-prefix=DYNLIB %s # DYNLIB-NOT: _DYNAMIC_LINKING Index: test/elf/Mips/dynamic-sym.test =================================================================== --- test/elf/Mips/dynamic-sym.test +++ test/elf/Mips/dynamic-sym.test @@ -1,7 +1,7 @@ # Check _DYNAMIC symbol's value # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -e T0 -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -e T0 -o %t.so %t.o # RUN: llvm-objdump -h -t %t.so | FileCheck -check-prefix=SHARED %s # SHARED: Sections: @@ -11,7 +11,7 @@ # SHARED: SYMBOL TABLE: # SHARED: [[ADDR]] g .dynamic 00000000 _DYNAMIC -# RUN: lld -flavor gnu -target mipsel -e main -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e main -e T0 -o %t.exe %t.o # RUN: llvm-objdump -h -t %t.exe | FileCheck -check-prefix=EXE %s # EXE: Sections: Index: test/elf/Mips/dynlib-dynamic.test =================================================================== --- test/elf/Mips/dynlib-dynamic.test +++ test/elf/Mips/dynlib-dynamic.test @@ -2,7 +2,7 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o # RUN: llvm-readobj -dynamic-table %t.so | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/dynlib-dynsym-micro.test =================================================================== --- test/elf/Mips/dynlib-dynsym-micro.test +++ test/elf/Mips/dynlib-dynsym-micro.test @@ -6,11 +6,11 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t-so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t-so %t.o # RUN: llvm-readobj -dyn-symbols %t-so | FileCheck -check-prefix=CHECK-DYN %s # Build shared library (yaml format) -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec \ # RUN: --output-filetype=yaml -o %t-yaml %t.o # RUN: FileCheck -check-prefix=CHECK-GOT %s < %t-yaml Index: test/elf/Mips/dynlib-dynsym.test =================================================================== --- test/elf/Mips/dynlib-dynsym.test +++ test/elf/Mips/dynlib-dynsym.test @@ -2,11 +2,11 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t-so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t-so %t.o # RUN: llvm-readobj -dyn-symbols %t-so | FileCheck -check-prefix=CHECK-DYN %s # Build shared library (yaml format) -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec \ # RUN: --output-filetype=yaml -o %t-yaml %t.o # RUN: FileCheck -check-prefix=CHECK-GOT %s < %t-yaml Index: test/elf/Mips/dynlib-fileheader-64.test =================================================================== --- test/elf/Mips/dynlib-fileheader-64.test +++ test/elf/Mips/dynlib-fileheader-64.test @@ -2,7 +2,7 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s # CHECK: Format: ELF64-mips Index: test/elf/Mips/dynlib-fileheader-micro-64.test =================================================================== --- test/elf/Mips/dynlib-fileheader-micro-64.test +++ test/elf/Mips/dynlib-fileheader-micro-64.test @@ -2,7 +2,7 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s # CHECK: Format: ELF64-mips Index: test/elf/Mips/dynlib-fileheader-micro.test =================================================================== --- test/elf/Mips/dynlib-fileheader-micro.test +++ test/elf/Mips/dynlib-fileheader-micro.test @@ -2,7 +2,7 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/dynlib-fileheader.test =================================================================== --- test/elf/Mips/dynlib-fileheader.test +++ test/elf/Mips/dynlib-fileheader.test @@ -2,7 +2,7 @@ # Build shared library # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/dynsym-table-1.test =================================================================== --- test/elf/Mips/dynsym-table-1.test +++ test/elf/Mips/dynsym-table-1.test @@ -8,9 +8,9 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-bar.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-foo.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-main.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t-bar.so %t-bar.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t-foo.so %t-foo.o %t-bar.so -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe --as-needed \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-bar.so %t-bar.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-foo.so %t-foo.o %t-bar.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe --as-needed \ # RUN: %t-main.o %t-foo.so %t-bar.so # RUN: llvm-readobj -dt -dynamic-table %t.exe | FileCheck %s Index: test/elf/Mips/dynsym-table-2.test =================================================================== --- test/elf/Mips/dynsym-table-2.test +++ test/elf/Mips/dynsym-table-2.test @@ -6,8 +6,8 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-bar.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-foo.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t-bar.so %t-bar.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t-foo.so %t-foo.o %t-bar.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-bar.so %t-bar.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-foo.so %t-foo.o %t-bar.so # RUN: llvm-readobj -dt -dynamic-table %t-foo.so | FileCheck %s # CHECK: DynamicSymbols [ Index: test/elf/Mips/e-flags-merge-1-64.test =================================================================== --- test/elf/Mips/e-flags-merge-1-64.test +++ test/elf/Mips/e-flags-merge-1-64.test @@ -2,7 +2,7 @@ # file has unsupported ASE flags. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-mips16.o -# RUN: not lld -flavor gnu -target mips64el -e T -o %t.exe %t-mips16.o 2>&1 | \ +# RUN: not lld -flavor old-gnu -target mips64el -e T -o %t.exe %t-mips16.o 2>&1 | \ # RUN: FileCheck -check-prefix=MIPS16 %s # MIPS16: Unsupported extension: MIPS16 Index: test/elf/Mips/e-flags-merge-1.test =================================================================== --- test/elf/Mips/e-flags-merge-1.test +++ test/elf/Mips/e-flags-merge-1.test @@ -2,11 +2,11 @@ # or unsupported ABI and ARCH flags or unsupported ASE flags. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-no-abi.o -# RUN: not lld -flavor gnu -target mipsel -e T -o %t.exe %t-no-abi.o 2>&1 | \ +# RUN: not lld -flavor old-gnu -target mipsel -e T -o %t.exe %t-no-abi.o 2>&1 | \ # RUN: FileCheck -check-prefix=INVALID-ABI %s # RUN: yaml2obj -format=elf -docnum 2 %s > %t-mips16.o -# RUN: not lld -flavor gnu -target mipsel -e T -o %t.exe %t-mips16.o 2>&1 | \ +# RUN: not lld -flavor old-gnu -target mipsel -e T -o %t.exe %t-mips16.o 2>&1 | \ # RUN: FileCheck -check-prefix=MIPS16 %s # INVALID-ABI: Unsupported ABI Index: test/elf/Mips/e-flags-merge-10.test =================================================================== --- test/elf/Mips/e-flags-merge-10.test +++ test/elf/Mips/e-flags-merge-10.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32r2.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-32r6.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-32r2.o %t-32r6.o 2>&1 | FileCheck %s # CHECK: Linking modules with incompatible ISA Index: test/elf/Mips/e-flags-merge-11.test =================================================================== --- test/elf/Mips/e-flags-merge-11.test +++ test/elf/Mips/e-flags-merge-11.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-64r2.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64r6.o -# RUN: not lld -flavor gnu -target mips64el -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mips64el -shared -o %t.so \ # RUN: %t-64r2.o %t-64r6.o 2>&1 | FileCheck %s # CHECK: Linking modules with incompatible ISA Index: test/elf/Mips/e-flags-merge-12.test =================================================================== --- test/elf/Mips/e-flags-merge-12.test +++ test/elf/Mips/e-flags-merge-12.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o32.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-n32.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-o32.o %t-n32.o 2>&1 | FileCheck %s # CHECK: Linking modules with incompatible ABI Index: test/elf/Mips/e-flags-merge-2-64.test =================================================================== --- test/elf/Mips/e-flags-merge-2-64.test +++ test/elf/Mips/e-flags-merge-2-64.test @@ -2,7 +2,7 @@ # file to the generated executable # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -e T -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Flags [ (0x62000001) Index: test/elf/Mips/e-flags-merge-2.test =================================================================== --- test/elf/Mips/e-flags-merge-2.test +++ test/elf/Mips/e-flags-merge-2.test @@ -2,7 +2,7 @@ # file to the generated executable # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Flags [ (0x52001001) Index: test/elf/Mips/e-flags-merge-3-64.test =================================================================== --- test/elf/Mips/e-flags-merge-3-64.test +++ test/elf/Mips/e-flags-merge-3-64.test @@ -5,20 +5,20 @@ # RUN: yaml2obj -format=elf -docnum 3 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-both.o -# RUN: lld -flavor gnu -target mips64el -e T1 -o %t-abi1.exe \ +# RUN: lld -flavor old-gnu -target mips64el -e T1 -o %t-abi1.exe \ # RUN: %t-none.o %t-pic.o 2>&1 | FileCheck -check-prefix=ABI-CALLS-WARN %s # RUN: llvm-readobj -file-headers %t-abi1.exe \ # RUN: | FileCheck -check-prefix=ABI-CALLS1 %s -# RUN: lld -flavor gnu -target mips64el -e T1 -o %t-abi2.exe \ +# RUN: lld -flavor old-gnu -target mips64el -e T1 -o %t-abi2.exe \ # RUN: %t-cpic.o %t-none.o 2>&1 | FileCheck -check-prefix=ABI-CALLS-WARN %s # RUN: llvm-readobj -file-headers %t-abi2.exe \ # RUN: | FileCheck -check-prefix=ABI-CALLS2 %s -# RUN: lld -flavor gnu -target mips64el -e T2 -o %t-cpic.exe %t-cpic.o %t-pic.o +# RUN: lld -flavor old-gnu -target mips64el -e T2 -o %t-cpic.exe %t-cpic.o %t-pic.o # RUN: llvm-readobj -file-headers %t-cpic.exe | FileCheck -check-prefix=CPIC %s -# RUN: lld -flavor gnu -target mips64el -e T3 -o %t-both.exe %t-pic.o %t-both.o +# RUN: lld -flavor old-gnu -target mips64el -e T3 -o %t-both.exe %t-pic.o %t-both.o # RUN: llvm-readobj -file-headers %t-both.exe | FileCheck -check-prefix=BOTH %s # ABI-CALLS-WARN: lld warning: linking abicalls and non-abicalls files Index: test/elf/Mips/e-flags-merge-3.test =================================================================== --- test/elf/Mips/e-flags-merge-3.test +++ test/elf/Mips/e-flags-merge-3.test @@ -5,20 +5,20 @@ # RUN: yaml2obj -format=elf -docnum 3 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-both.o -# RUN: lld -flavor gnu -target mipsel -e T1 -o %t-abi1.exe \ +# RUN: lld -flavor old-gnu -target mipsel -e T1 -o %t-abi1.exe \ # RUN: %t-none.o %t-pic.o 2>&1 | FileCheck -check-prefix=ABI-CALLS-WARN %s # RUN: llvm-readobj -file-headers %t-abi1.exe \ # RUN: | FileCheck -check-prefix=ABI-CALLS1 %s -# RUN: lld -flavor gnu -target mipsel -e T1 -o %t-abi2.exe \ +# RUN: lld -flavor old-gnu -target mipsel -e T1 -o %t-abi2.exe \ # RUN: %t-cpic.o %t-none.o 2>&1 | FileCheck -check-prefix=ABI-CALLS-WARN %s # RUN: llvm-readobj -file-headers %t-abi2.exe \ # RUN: | FileCheck -check-prefix=ABI-CALLS2 %s -# RUN: lld -flavor gnu -target mipsel -e T2 -o %t-cpic.exe %t-cpic.o %t-pic.o +# RUN: lld -flavor old-gnu -target mipsel -e T2 -o %t-cpic.exe %t-cpic.o %t-pic.o # RUN: llvm-readobj -file-headers %t-cpic.exe | FileCheck -check-prefix=CPIC %s -# RUN: lld -flavor gnu -target mipsel -e T3 -o %t-both.exe %t-pic.o %t-both.o +# RUN: lld -flavor old-gnu -target mipsel -e T3 -o %t-both.exe %t-pic.o %t-both.o # RUN: llvm-readobj -file-headers %t-both.exe | FileCheck -check-prefix=BOTH %s # ABI-CALLS-WARN: lld warning: linking abicalls and non-abicalls files Index: test/elf/Mips/e-flags-merge-4-64.test =================================================================== --- test/elf/Mips/e-flags-merge-4-64.test +++ test/elf/Mips/e-flags-merge-4-64.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 2 %s > %t-noreorder.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-micro.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so \ +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so \ # RUN: %t-none.o %t-noreorder.o %t-micro.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s Index: test/elf/Mips/e-flags-merge-4.test =================================================================== --- test/elf/Mips/e-flags-merge-4.test +++ test/elf/Mips/e-flags-merge-4.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 2 %s > %t-noreorder.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-micro.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-none.o %t-noreorder.o %t-micro.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s Index: test/elf/Mips/e-flags-merge-5-64.test =================================================================== --- test/elf/Mips/e-flags-merge-5-64.test +++ test/elf/Mips/e-flags-merge-5-64.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o -# RUN: not lld -flavor gnu -target mips64el -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mips64el -shared -o %t.so \ # RUN: %t-32.o %t-64.o 2>&1 | FileCheck %s # CHECK: ELF64 expected, but got ELF32 Index: test/elf/Mips/e-flags-merge-5.test =================================================================== --- test/elf/Mips/e-flags-merge-5.test +++ test/elf/Mips/e-flags-merge-5.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-32.o %t-64.o 2>&1 | FileCheck %s # CHECK: ELF32 expected, but got ELF64 Index: test/elf/Mips/e-flags-merge-6-64.test =================================================================== --- test/elf/Mips/e-flags-merge-6-64.test +++ test/elf/Mips/e-flags-merge-6-64.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 3 %s > %t-m64.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-m64r2.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so \ +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so \ # RUN: %t-m64.o %t-m5.o %t-m64r2.o %t-m3.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s Index: test/elf/Mips/e-flags-merge-6.test =================================================================== --- test/elf/Mips/e-flags-merge-6.test +++ test/elf/Mips/e-flags-merge-6.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 3 %s > %t-m32.o # RUN: yaml2obj -format=elf -docnum 4 %s > %t-m32r2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-m32.o %t-m2.o %t-m32r2.o %t-m1.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s Index: test/elf/Mips/e-flags-merge-7-64.test =================================================================== --- test/elf/Mips/e-flags-merge-7-64.test +++ test/elf/Mips/e-flags-merge-7-64.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-2008.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-legacy.o -# RUN: not lld -flavor gnu -target mips64el -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mips64el -shared -o %t.so \ # RUN: %t-2008.o %t-legacy.o 2>&1 | FileCheck %s # CHECK: Linking -mnan=2008 and -mnan=legacy modules Index: test/elf/Mips/e-flags-merge-7.test =================================================================== --- test/elf/Mips/e-flags-merge-7.test +++ test/elf/Mips/e-flags-merge-7.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-2008.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-legacy.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-2008.o %t-legacy.o 2>&1 | FileCheck %s # CHECK: Linking -mnan=2008 and -mnan=legacy modules Index: test/elf/Mips/e-flags-merge-8.test =================================================================== --- test/elf/Mips/e-flags-merge-8.test +++ test/elf/Mips/e-flags-merge-8.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-64r2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-32.o %t-64.o %t-64r2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-32.o %t-64.o %t-64r2.o # RUN: llvm-readobj -file-headers %t.so | FileCheck %s # CHECK: Flags [ (0x80001100) Index: test/elf/Mips/e-flags-merge-9.test =================================================================== --- test/elf/Mips/e-flags-merge-9.test +++ test/elf/Mips/e-flags-merge-9.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32r2.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so \ # RUN: %t-32r2.o %t-64.o 2>&1 | FileCheck %s # CHECK: Linking modules with incompatible ISA Index: test/elf/Mips/entry-name.test =================================================================== --- test/elf/Mips/entry-name.test +++ test/elf/Mips/entry-name.test @@ -1,6 +1,6 @@ # Check name of executable entry symbol. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel --noinhibit-exec -o %t.exe %t.o # RUN: llvm-nm %t.exe | FileCheck %s # CHECK: U __start Index: test/elf/Mips/exe-dynamic.test =================================================================== --- test/elf/Mips/exe-dynamic.test +++ test/elf/Mips/exe-dynamic.test @@ -2,11 +2,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dynamic-table %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-dynsym-micro.test =================================================================== --- test/elf/Mips/exe-dynsym-micro.test +++ test/elf/Mips/exe-dynsym-micro.test @@ -5,11 +5,11 @@ # Build executable # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t.o # RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck -check-prefix=CHECK-DYN %s # Build executabl (yaml format)e -# RUN: lld -flavor gnu -target mipsel -e glob \ +# RUN: lld -flavor old-gnu -target mipsel -e glob \ # RUN: --output-filetype=yaml -o %t.yaml %t.o # RUN: FileCheck -check-prefix=CHECK-GOT %s < %t.yaml Index: test/elf/Mips/exe-dynsym.test =================================================================== --- test/elf/Mips/exe-dynsym.test +++ test/elf/Mips/exe-dynsym.test @@ -3,11 +3,11 @@ # Build executable # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t.o # RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck -check-prefix=CHECK-DYN %s # Build executabl (yaml format)e -# RUN: lld -flavor gnu -target mipsel -e glob \ +# RUN: lld -flavor old-gnu -target mipsel -e glob \ # RUN: --output-filetype=yaml -o %t.yaml %t.o # RUN: FileCheck -check-prefix=CHECK-GOT %s < %t.yaml Index: test/elf/Mips/exe-fileheader-02.test =================================================================== --- test/elf/Mips/exe-fileheader-02.test +++ test/elf/Mips/exe-fileheader-02.test @@ -2,7 +2,7 @@ # file without EF_MIPS_PIC in the ELF header. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-fileheader-03.test =================================================================== --- test/elf/Mips/exe-fileheader-03.test +++ test/elf/Mips/exe-fileheader-03.test @@ -2,7 +2,7 @@ # file with FP_64 / FP_64A floating point abi flags. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-fileheader-64.test =================================================================== --- test/elf/Mips/exe-fileheader-64.test +++ test/elf/Mips/exe-fileheader-64.test @@ -2,7 +2,7 @@ # Build executable # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e glob -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mips64el -e glob -o %t.exe %t-o.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF64-mips Index: test/elf/Mips/exe-fileheader-be-64.test =================================================================== --- test/elf/Mips/exe-fileheader-be-64.test +++ test/elf/Mips/exe-fileheader-be-64.test @@ -1,7 +1,7 @@ # Check ELF Header for non-pic big-endian 64-bit executable file. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64 -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF64-mips Index: test/elf/Mips/exe-fileheader-be.test =================================================================== --- test/elf/Mips/exe-fileheader-be.test +++ test/elf/Mips/exe-fileheader-be.test @@ -1,7 +1,7 @@ # Check ELF Header for non-pic big-endian 32-bit executable file. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-fileheader-micro-64.test =================================================================== --- test/elf/Mips/exe-fileheader-micro-64.test +++ test/elf/Mips/exe-fileheader-micro-64.test @@ -2,7 +2,7 @@ # Build executable # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e glob -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mips64el -e glob -o %t.exe %t-o.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF64-mips Index: test/elf/Mips/exe-fileheader-micro.test =================================================================== --- test/elf/Mips/exe-fileheader-micro.test +++ test/elf/Mips/exe-fileheader-micro.test @@ -3,7 +3,7 @@ # Build executable # RUN: yaml2obj -format=elf %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-fileheader-n32.test =================================================================== --- test/elf/Mips/exe-fileheader-n32.test +++ test/elf/Mips/exe-fileheader-n32.test @@ -1,7 +1,7 @@ # Check ELF Header for N32 ABI executable file. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t.o # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-fileheader.test =================================================================== --- test/elf/Mips/exe-fileheader.test +++ test/elf/Mips/exe-fileheader.test @@ -2,11 +2,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # CHECK: Format: ELF32-mips Index: test/elf/Mips/exe-got-micro.test =================================================================== --- test/elf/Mips/exe-got-micro.test +++ test/elf/Mips/exe-got-micro.test @@ -4,11 +4,11 @@ # # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob \ +# RUN: lld -flavor old-gnu -target mipsel -e glob \ # RUN: --output-filetype=yaml -o %t.exe %t-o.o %t.so # RUN: FileCheck -check-prefix=GOT %s < %t.exe Index: test/elf/Mips/exe-got.test =================================================================== --- test/elf/Mips/exe-got.test +++ test/elf/Mips/exe-got.test @@ -4,11 +4,11 @@ # # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob \ +# RUN: lld -flavor old-gnu -target mipsel -e glob \ # RUN: --output-filetype=yaml -o %t.exe %t-o.o %t.so # RUN: FileCheck -check-prefix=GOT %s < %t.exe Index: test/elf/Mips/got-page-32-micro.test =================================================================== --- test/elf/Mips/got-page-32-micro.test +++ test/elf/Mips/got-page-32-micro.test @@ -2,9 +2,9 @@ # in case of O32 ABI. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols -dyn-symbols -mips-plt-got %t.exe \ # RUN: | FileCheck -check-prefix=GOT %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/got-page-32.test =================================================================== --- test/elf/Mips/got-page-32.test +++ test/elf/Mips/got-page-32.test @@ -1,9 +1,9 @@ # Check handling of R_MIPS_GOT_DISP / PAGE / OFST relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols -dyn-symbols -mips-plt-got %t.exe \ # RUN: | FileCheck -check-prefix=GOT %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/got-page-64-micro.test =================================================================== --- test/elf/Mips/got-page-64-micro.test +++ test/elf/Mips/got-page-64-micro.test @@ -2,9 +2,9 @@ # in case of N64 ABI. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols -dyn-symbols -mips-plt-got %t.exe \ # RUN: | FileCheck -check-prefix=GOT %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/got-page-64.test =================================================================== --- test/elf/Mips/got-page-64.test +++ test/elf/Mips/got-page-64.test @@ -1,9 +1,9 @@ # Check handling of R_MIPS_GOT_DISP / PAGE / OFST relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols -dyn-symbols -mips-plt-got %t.exe \ # RUN: | FileCheck -check-prefix=GOT %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/got16-2.test =================================================================== --- test/elf/Mips/got16-2.test +++ test/elf/Mips/got16-2.test @@ -2,7 +2,7 @@ # symbols when addresses of local data cross 64 KBytes border. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t-exe %t-obj # RUN: llvm-objdump -s %t-exe | FileCheck %s # CHECK: Contents of section .got: Index: test/elf/Mips/got16-micro.test =================================================================== --- test/elf/Mips/got16-micro.test +++ test/elf/Mips/got16-micro.test @@ -3,10 +3,10 @@ # Check handling of global/local R_MICROMIPS_GOT16 relocations. # RUN: llvm-mc -triple=mipsel -mattr=micromips -relocation-model=pic \ # RUN: -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec \ # RUN: --output-filetype=yaml %t.o \ # RUN: | FileCheck -check-prefix YAML %s -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t2 %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t2 %t.o # RUN: llvm-objdump -t -disassemble -mattr=micromips %t2 \ # RUN: | FileCheck -check-prefix RAW %s Index: test/elf/Mips/got16.test =================================================================== --- test/elf/Mips/got16.test +++ test/elf/Mips/got16.test @@ -2,10 +2,10 @@ # Check handling of global/local GOT16 relocations. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec \ # RUN: --output-filetype=yaml %t.o \ # RUN: | FileCheck -check-prefix YAML %s -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t2 %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t2 %t.o # RUN: llvm-objdump -t -disassemble %t2 | FileCheck -check-prefix RAW %s # Function glob Index: test/elf/Mips/gotsym.test =================================================================== --- test/elf/Mips/gotsym.test +++ test/elf/Mips/gotsym.test @@ -1,7 +1,7 @@ # Check _gp_disp and GOT_OFFSET_TABLE value # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o # RUN: llvm-objdump -h -t %t.so | FileCheck -check-prefix=SHARED %s # SHARED: Sections: @@ -12,7 +12,7 @@ # SHARED: 00008ff0 g *ABS* 00000000 _gp # SHARED: 00008ff0 g *ABS* 00000000 _gp_disp -# RUN: lld -flavor gnu -target mipsel -e main --noinhibit-exec -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e main --noinhibit-exec -o %t.exe %t.o # RUN: llvm-objdump -h -t %t.exe | FileCheck -check-prefix=EXE %s # EXE: Sections: Index: test/elf/Mips/gp-sym-1-micro.test =================================================================== --- test/elf/Mips/gp-sym-1-micro.test +++ test/elf/Mips/gp-sym-1-micro.test @@ -2,9 +2,9 @@ # use "gp" value as target. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols %t.exe | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/gp-sym-1.test =================================================================== --- test/elf/Mips/gp-sym-1.test +++ test/elf/Mips/gp-sym-1.test @@ -1,9 +1,9 @@ # Check that relocations against __gnu_local_gp use "gp" value as target. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -symbols %t.exe | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/gp-sym-2.test =================================================================== --- test/elf/Mips/gp-sym-2.test +++ test/elf/Mips/gp-sym-2.test @@ -9,11 +9,11 @@ # XFAIL: * # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t-1.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-1.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t-1.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t-1.so # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=EXE %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t-2.so %t-o.o %t-1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t-2.so %t-o.o %t-1.so # RUN: llvm-readobj -r %t-2.so | FileCheck -check-prefix=SO %s # EXE: Relocations [ Index: test/elf/Mips/hilo16-1.test =================================================================== --- test/elf/Mips/hilo16-1.test +++ test/elf/Mips/hilo16-1.test @@ -3,7 +3,7 @@ # Check handling multiple HI16 relocation followed by a single LO16 relocation. # RUN: llvm-mc -arch=mipsel -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -d -t %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/hilo16-2.test =================================================================== --- test/elf/Mips/hilo16-2.test +++ test/elf/Mips/hilo16-2.test @@ -7,7 +7,7 @@ # where AHL = (AHI << 16) + ALO # RUN: llvm-mc -arch=mipsel -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/hilo16-3-overflow.test =================================================================== --- test/elf/Mips/hilo16-3-overflow.test +++ test/elf/Mips/hilo16-3-overflow.test @@ -1,7 +1,7 @@ # Check R_MIPS_HI16 relocation overflow handling. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from T0+0 to _gp_disp+2147483648 of type 5 (R_MIPS_HI16) Index: test/elf/Mips/hilo16-3.test =================================================================== --- test/elf/Mips/hilo16-3.test +++ test/elf/Mips/hilo16-3.test @@ -5,7 +5,7 @@ # where AHL = (AHI << 16) + ALO # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-objdump -s -t %t.so | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/hilo16-4.test =================================================================== --- test/elf/Mips/hilo16-4.test +++ test/elf/Mips/hilo16-4.test @@ -2,7 +2,7 @@ # Check pairing of R_MIPS_HI16 and R_MIPS_LO16 relocations. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -e glob1 -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -e glob1 -o %t-exe %t-obj # RUN: llvm-objdump -t -disassemble %t-exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/hilo16-5.test =================================================================== --- test/elf/Mips/hilo16-5.test +++ test/elf/Mips/hilo16-5.test @@ -2,9 +2,9 @@ # there is orphaned R_MIPS_HI16 relocation. # RUN: yaml2obj -format=elf -o %t-so.o -docnum 1 %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -o %t-o.o -docnum 2 %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so 2>&1 \ +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so 2>&1 \ # RUN: | FileCheck -check-prefix=DIAG %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=DATA %s Index: test/elf/Mips/hilo16-8-micro.test =================================================================== --- test/elf/Mips/hilo16-8-micro.test +++ test/elf/Mips/hilo16-8-micro.test @@ -4,7 +4,7 @@ # relocations for a regular symbol. # RUN: llvm-mc -arch=mipsel -filetype=obj -mattr=micromips -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -d -mattr=micromips %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/hilo16-9-micro.test =================================================================== --- test/elf/Mips/hilo16-9-micro.test +++ test/elf/Mips/hilo16-9-micro.test @@ -2,7 +2,7 @@ # relocations for the _gp_disp symbol. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-objdump -s -t %t.so | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/initfini-micro.test =================================================================== --- test/elf/Mips/initfini-micro.test +++ test/elf/Mips/initfini-micro.test @@ -2,7 +2,7 @@ # use adjusted values with set the last bit. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -symbols -dynamic-table %t.so | FileCheck %s # CHECK: Name: _init (1) Index: test/elf/Mips/interpreter-64.test =================================================================== --- test/elf/Mips/interpreter-64.test +++ test/elf/Mips/interpreter-64.test @@ -1,6 +1,6 @@ # Check program interpreter setup. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -e main -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e main -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .interp: Index: test/elf/Mips/interpreter-n32.test =================================================================== --- test/elf/Mips/interpreter-n32.test +++ test/elf/Mips/interpreter-n32.test @@ -1,7 +1,7 @@ # Check program interpreter setup in case of N32 ABI. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .interp: Index: test/elf/Mips/interpreter.test =================================================================== --- test/elf/Mips/interpreter.test +++ test/elf/Mips/interpreter.test @@ -1,6 +1,6 @@ # Check program interpreter setup. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e main -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e main -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .interp: Index: test/elf/Mips/invalid-reginfo.test =================================================================== --- test/elf/Mips/invalid-reginfo.test +++ test/elf/Mips/invalid-reginfo.test @@ -1,7 +1,7 @@ # Check that LLD shows an error if .reginfo section has invalid size # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -o %t.exe %t.o 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target mipsel -o %t.exe %t.o 2>&1 | FileCheck %s # CHECK: Invalid size of MIPS_REGINFO section Index: test/elf/Mips/jalx-align-err.test =================================================================== --- test/elf/Mips/jalx-align-err.test +++ test/elf/Mips/jalx-align-err.test @@ -1,7 +1,7 @@ # Check that LLD shows an error if jalx target value is not word-aligned. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t-exe %t-obj 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t-exe %t-obj 2>&1 \ # RUN: | FileCheck %s # CHECK: The jalx target 0x{{[0-9a-f]+}} is not word-aligned Index: test/elf/Mips/jalx-jalr.test =================================================================== --- test/elf/Mips/jalx-jalr.test +++ test/elf/Mips/jalx-jalr.test @@ -1,7 +1,7 @@ # Check that R_MIPS_JALR relocation does not affect code in case of cross jump. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/jalx.test =================================================================== --- test/elf/Mips/jalx.test +++ test/elf/Mips/jalx.test @@ -1,7 +1,7 @@ # Check jal => jalx conversion in case of mixed microMIPS and regular code. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T1 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T1 -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s # RUN: llvm-nm %t.exe | FileCheck -check-prefix=SYM %s Index: test/elf/Mips/jump-fix-err.test =================================================================== --- test/elf/Mips/jump-fix-err.test +++ test/elf/Mips/jump-fix-err.test @@ -2,7 +2,7 @@ # of replacing an unknown unstruction by jalx. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: not lld -flavor gnu -target mipsel -o %t-exe %t-obj 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target mipsel -o %t-exe %t-obj 2>&1 | FileCheck %s # CHECK: Unsupported jump opcode (0x0) for ISA modes cross call Index: test/elf/Mips/la25-stub-be.test =================================================================== --- test/elf/Mips/la25-stub-be.test +++ test/elf/Mips/la25-stub-be.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-npic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-main.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t-npic.o %t-pic.o %t-main.o +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t-npic.o %t-pic.o %t-main.o # RUN: llvm-objdump -disassemble %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub-micro-be.test =================================================================== --- test/elf/Mips/la25-stub-micro-be.test +++ test/elf/Mips/la25-stub-micro-be.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-npic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-main.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t-npic.o %t-pic.o %t-main.o +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t-npic.o %t-pic.o %t-main.o # RUN: llvm-objdump -disassemble -mattr=micromips %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub-micro.test =================================================================== --- test/elf/Mips/la25-stub-micro.test +++ test/elf/Mips/la25-stub-micro.test @@ -5,7 +5,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-npic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-main.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe \ +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe \ # RUN: %t-npic.o %t-pic.o %t-main.o # RUN: llvm-nm %t.exe | FileCheck -check-prefix=SYM %s Index: test/elf/Mips/la25-stub-npic-01.test =================================================================== --- test/elf/Mips/la25-stub-npic-01.test +++ test/elf/Mips/la25-stub-npic-01.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-reg.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-micro.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe \ +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe \ # RUN: %t-reg.o %t-micro.o %t-pic.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub-npic-02.test =================================================================== --- test/elf/Mips/la25-stub-npic-02.test +++ test/elf/Mips/la25-stub-npic-02.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t1.o %t2.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub-npic-shared.test =================================================================== --- test/elf/Mips/la25-stub-npic-shared.test +++ test/elf/Mips/la25-stub-npic-shared.test @@ -4,8 +4,8 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-reg.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-micro.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-pic.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-reg.o %t-micro.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-pic.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-reg.o %t-micro.o %t.so # RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub-pic.test =================================================================== --- test/elf/Mips/la25-stub-pic.test +++ test/elf/Mips/la25-stub-pic.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-reg.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-micro.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o %t-reg.o %t-micro.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o %t-reg.o %t-micro.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s Index: test/elf/Mips/la25-stub.test =================================================================== --- test/elf/Mips/la25-stub.test +++ test/elf/Mips/la25-stub.test @@ -4,7 +4,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t-npic.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-pic.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-main.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe \ +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe \ # RUN: %t-npic.o %t-pic.o %t-main.o # RUN: llvm-readobj -t %t.exe | FileCheck -check-prefix=SYM %s Index: test/elf/Mips/mips-options-01.test =================================================================== --- test/elf/Mips/mips-options-01.test +++ test/elf/Mips/mips-options-01.test @@ -2,7 +2,7 @@ # object file does not contain such section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -s -dynamic-table %t.so | FileCheck %s # CHECK: Sections [ Index: test/elf/Mips/mips-options-02.test =================================================================== --- test/elf/Mips/mips-options-02.test +++ test/elf/Mips/mips-options-02.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t1.o %t2.o # RUN: llvm-readobj -s -dynamic-table %t.so | FileCheck -check-prefix=SEC %s # RUN: llvm-objdump -s -t %t.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -program-headers %t.so | FileCheck -check-prefix=PHDR %s Index: test/elf/Mips/mips-options-03.test =================================================================== --- test/elf/Mips/mips-options-03.test +++ test/elf/Mips/mips-options-03.test @@ -1,7 +1,7 @@ # Check handling a zero-filled input .MIPS.options section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-objdump -s -t %t.so | FileCheck %s # CHECK: Contents of section .MIPS.options: Index: test/elf/Mips/mips-options-04.test =================================================================== --- test/elf/Mips/mips-options-04.test +++ test/elf/Mips/mips-options-04.test @@ -2,9 +2,9 @@ # output .MIPS.options section content. # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t.exe.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t.so %t.exe.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t.so %t.exe.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .MIPS.options: Index: test/elf/Mips/mips-options-05.test =================================================================== --- test/elf/Mips/mips-options-05.test +++ test/elf/Mips/mips-options-05.test @@ -6,7 +6,7 @@ # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o # RUN: llvm-ar q %T/liboptions.a %t1.o %t2.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t3.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t3.o -L%T -loptions +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t3.o -L%T -loptions # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .MIPS.options: Index: test/elf/Mips/mips-options-gp0.test =================================================================== --- test/elf/Mips/mips-options-gp0.test +++ test/elf/Mips/mips-options-gp0.test @@ -1,7 +1,7 @@ # Check reading GP0 value from .MIPS.options section # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -e G1 -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -e G1 -shared -o %t.so %t.o # RUN: llvm-readobj -symbols %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/n32-rela-chain.test =================================================================== --- test/elf/Mips/n32-rela-chain.test +++ test/elf/Mips/n32-rela-chain.test @@ -2,7 +2,7 @@ # and 64-bit MIPS ABIs. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/n64-rel-chain.test =================================================================== --- test/elf/Mips/n64-rel-chain.test +++ test/elf/Mips/n64-rel-chain.test @@ -1,9 +1,9 @@ # Check handling MIPS N64 ABI relocation "chains". # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -s -t -dt -mips-plt-got %t.exe | \ # RUN: FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/n64-rel-shift.test =================================================================== --- test/elf/Mips/n64-rel-shift.test +++ test/elf/Mips/n64-rel-shift.test @@ -2,7 +2,7 @@ # each relocations in N64 relocation chain. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-objdump -s %t.so | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/opt-emulation.test =================================================================== --- test/elf/Mips/opt-emulation.test +++ test/elf/Mips/opt-emulation.test @@ -1,9 +1,9 @@ # Check MIPS specific arguments of the -m command line option. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -m elf32ltsmip -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -m elf32ltsmip -o %t-exe %t-obj # RUN: llvm-readobj -file-headers %t-exe | FileCheck -check-prefix=LE-O32 %s -# RUN: lld -flavor gnu -target mipsel -melf32ltsmip -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -melf32ltsmip -o %t-exe %t-obj # RUN: llvm-readobj -file-headers %t-exe | FileCheck -check-prefix=LE-O32 %s # LE-O32: Class: 32-bit (0x1) Index: test/elf/Mips/pc23-range.test =================================================================== --- test/elf/Mips/pc23-range.test +++ test/elf/Mips/pc23-range.test @@ -1,7 +1,7 @@ # Check that LLD shows an error if ADDIUPC immediate is out of range. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -o %t.exe %t.o 2>&1 | FileCheck %s +# RUN: not lld -flavor old-gnu -target mipsel -o %t.exe %t.o 2>&1 | FileCheck %s # CHECK: Relocation out of range in file {{.*}}: reference from __start+4 to T0+4 of type 173 (R_MICROMIPS_PC23_S2) Index: test/elf/Mips/plt-entry-mixed-1.test =================================================================== --- test/elf/Mips/plt-entry-mixed-1.test +++ test/elf/Mips/plt-entry-mixed-1.test @@ -8,11 +8,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .plt: Index: test/elf/Mips/plt-entry-mixed-2.test =================================================================== --- test/elf/Mips/plt-entry-mixed-2.test +++ test/elf/Mips/plt-entry-mixed-2.test @@ -7,11 +7,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so # RUN: llvm-objdump -s %t.exe | FileCheck %s # FIXME (simon): Check the disassembler output when llvm-objdump starts Index: test/elf/Mips/plt-entry-mixed-3.test =================================================================== --- test/elf/Mips/plt-entry-mixed-3.test +++ test/elf/Mips/plt-entry-mixed-3.test @@ -8,11 +8,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so # RUN: llvm-objdump -s %t.exe | FileCheck %s # FIXME (simon): Check the disassembler output when llvm-objdump starts Index: test/elf/Mips/plt-entry-mixed-4.test =================================================================== --- test/elf/Mips/plt-entry-mixed-4.test +++ test/elf/Mips/plt-entry-mixed-4.test @@ -7,11 +7,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t.o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o.o %t.so # RUN: llvm-objdump -s %t.exe | FileCheck %s # FIXME (simon): Check the disassembler output when llvm-objdump starts Index: test/elf/Mips/plt-entry-r6-be.test =================================================================== --- test/elf/Mips/plt-entry-r6-be.test +++ test/elf/Mips/plt-entry-r6-be.test @@ -4,11 +4,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .plt: Index: test/elf/Mips/plt-entry-r6.test =================================================================== --- test/elf/Mips/plt-entry-r6.test +++ test/elf/Mips/plt-entry-r6.test @@ -4,11 +4,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .plt: Index: test/elf/Mips/plt-header-be.test =================================================================== --- test/elf/Mips/plt-header-be.test +++ test/elf/Mips/plt-header-be.test @@ -4,11 +4,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -section-headers -disassemble %t.exe | FileCheck %s # CHECK: Disassembly of section .plt: Index: test/elf/Mips/plt-header-micro-be.test =================================================================== --- test/elf/Mips/plt-header-micro-be.test +++ test/elf/Mips/plt-header-micro-be.test @@ -4,9 +4,9 @@ # if all PLT entries use microMIPS big-endian encoding. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o -# RUN: lld -flavor gnu -target mips -shared -o %t.so %t1.o +# RUN: lld -flavor old-gnu -target mips -shared -o %t.so %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t2.o %t.so +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t2.o %t.so # RUN: llvm-objdump -section-headers -d -mattr=micromips %t.exe | FileCheck %s # CHECK: Disassembly of section .plt: Index: test/elf/Mips/plt-header-micro.test =================================================================== --- test/elf/Mips/plt-header-micro.test +++ test/elf/Mips/plt-header-micro.test @@ -5,11 +5,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d -mattr=micromips %t.exe | FileCheck -check-prefix=DIS %s # RUN: llvm-objdump -section-headers %t.exe | FileCheck -check-prefix=EXE %s Index: test/elf/Mips/plt-header-mixed.test =================================================================== --- test/elf/Mips/plt-header-mixed.test +++ test/elf/Mips/plt-header-mixed.test @@ -6,11 +6,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e globR -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e globR -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d %t.exe | FileCheck -check-prefix=DIS %s # RUN: llvm-objdump -section-headers %t.exe | FileCheck -check-prefix=EXE %s Index: test/elf/Mips/plt-header.test =================================================================== --- test/elf/Mips/plt-header.test +++ test/elf/Mips/plt-header.test @@ -4,11 +4,11 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -section-headers -disassemble %t.exe | \ # RUN: FileCheck -check-prefix=EXE %s Index: test/elf/Mips/r26-1-micro.test =================================================================== --- test/elf/Mips/r26-1-micro.test +++ test/elf/Mips/r26-1-micro.test @@ -4,13 +4,13 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o # RUN: llvm-readobj -relocations %t-o.o | \ # RUN: FileCheck -check-prefix=OBJ-REL %s -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -relocations %t.exe | FileCheck -check-prefix=EXE-REL %s # RUN: llvm-objdump -section-headers %t.exe | FileCheck -check-prefix=EXE %s # RUN: llvm-objdump -s -d -mattr=micromips %t.exe | \ Index: test/elf/Mips/r26-1.test =================================================================== --- test/elf/Mips/r26-1.test +++ test/elf/Mips/r26-1.test @@ -4,13 +4,13 @@ # Build shared library # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Build executable # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o # RUN: llvm-readobj -relocations %t-o.o | \ # RUN: FileCheck -check-prefix=OBJ-REL %s -# RUN: lld -flavor gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e glob -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -section-headers -disassemble %t.exe | \ # RUN: FileCheck -check-prefix=EXE %s # RUN: llvm-readobj -relocations %t.exe | FileCheck -check-prefix=EXE-REL %s Index: test/elf/Mips/r26-2-micro.test =================================================================== --- test/elf/Mips/r26-2-micro.test +++ test/elf/Mips/r26-2-micro.test @@ -2,7 +2,7 @@ # Check reading addendum for R_MICROMIPS_26_S1 relocation. # RUN: llvm-mc -arch=mipsel -filetype=obj -mattr=micromips -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t.o # RUN: llvm-objdump -d -mattr=micromips %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/r26-2.test =================================================================== --- test/elf/Mips/r26-2.test +++ test/elf/Mips/r26-2.test @@ -2,7 +2,7 @@ # Check reading addendum for R_MIPS_26 relocation. # RUN: llvm-mc -arch=mipsel -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t.o # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/reginfo-01.test =================================================================== --- test/elf/Mips/reginfo-01.test +++ test/elf/Mips/reginfo-01.test @@ -2,7 +2,7 @@ # object file does not contain such section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -s %t.so | FileCheck %s # CHECK-NOT: Name: .reginfo Index: test/elf/Mips/reginfo-02.test =================================================================== --- test/elf/Mips/reginfo-02.test +++ test/elf/Mips/reginfo-02.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t1.o %t2.o # RUN: llvm-readobj -program-headers -s -t -mips-reginfo %t.so | FileCheck %s # CHECK: Index: 1 Index: test/elf/Mips/reginfo-03.test =================================================================== --- test/elf/Mips/reginfo-03.test +++ test/elf/Mips/reginfo-03.test @@ -1,7 +1,7 @@ # Check handling a zero-filled input .reginfo section. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -t -mips-reginfo %t.so | FileCheck %s # CHECK: Name: _gp Index: test/elf/Mips/reginfo-04.test =================================================================== --- test/elf/Mips/reginfo-04.test +++ test/elf/Mips/reginfo-04.test @@ -2,9 +2,9 @@ # output .reginfo section content. # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t.exe.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.so %t.exe.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.so %t.exe.o # RUN: llvm-readobj -t -mips-reginfo %t.exe | FileCheck %s # CHECK: Name: _gp Index: test/elf/Mips/reginfo-05.test =================================================================== --- test/elf/Mips/reginfo-05.test +++ test/elf/Mips/reginfo-05.test @@ -6,7 +6,7 @@ # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o # RUN: llvm-ar q %T/libreginfo.a %t1.o %t2.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t3.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t3.o -L%T -lreginfo +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t3.o -L%T -lreginfo # RUN: llvm-readobj -t -mips-reginfo %t.exe | FileCheck %s # CHECK: Name: _gp Index: test/elf/Mips/rel-16-overflow.test =================================================================== --- test/elf/Mips/rel-16-overflow.test +++ test/elf/Mips/rel-16-overflow.test @@ -1,7 +1,7 @@ # Check R_MIPS_16 relocation overflow handling. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from T0+0 to T1+32767 of type 1 (R_MIPS_16) Index: test/elf/Mips/rel-16.test =================================================================== --- test/elf/Mips/rel-16.test +++ test/elf/Mips/rel-16.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_16 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-32-be.test =================================================================== --- test/elf/Mips/rel-32-be.test +++ test/elf/Mips/rel-32-be.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_32 relocation in the big-endian case. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rel-32.test =================================================================== --- test/elf/Mips/rel-32.test +++ test/elf/Mips/rel-32.test @@ -1,6 +1,6 @@ # Check handling of R_MIPS_32 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rel-64.test =================================================================== --- test/elf/Mips/rel-64.test +++ test/elf/Mips/rel-64.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_64 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rel-call-hilo-01.test =================================================================== --- test/elf/Mips/rel-call-hilo-01.test +++ test/elf/Mips/rel-call-hilo-01.test @@ -1,9 +1,9 @@ # Check handling of R_MIPS_CALL_HI16 / R_MIPS_CALL_LO16 relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t1.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t1.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so # RUN: llvm-objdump -s -t %t2.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-call-hilo-micro.test =================================================================== --- test/elf/Mips/rel-call-hilo-micro.test +++ test/elf/Mips/rel-call-hilo-micro.test @@ -1,9 +1,9 @@ # Check handling of R_MICROMIPS_CALL_HI16 / R_MICROMIPS_CALL_LO16 relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t1.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t1.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so # RUN: llvm-objdump -s -t %t2.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-copy-micro.test =================================================================== --- test/elf/Mips/rel-copy-micro.test +++ test/elf/Mips/rel-copy-micro.test @@ -2,11 +2,11 @@ # when linking non-shared executable file. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so1.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t-so1.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t-so1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-so2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t-so2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t-so2.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t1.so %t2.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t1.so %t2.so # RUN: llvm-readobj -dt -r -dynamic-table %t.exe | FileCheck %s # CHECK: Relocations [ Index: test/elf/Mips/rel-copy-pc.test =================================================================== --- test/elf/Mips/rel-copy-pc.test +++ test/elf/Mips/rel-copy-pc.test @@ -2,9 +2,9 @@ # relocations when linking non-shared executable file. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -dynamic-table %t.exe | FileCheck %s # CHECK: Relocations [ Index: test/elf/Mips/rel-copy.test =================================================================== --- test/elf/Mips/rel-copy.test +++ test/elf/Mips/rel-copy.test @@ -2,11 +2,11 @@ # when linking non-shared executable file. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so1.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t-so1.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t-so1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-so2.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t-so2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t-so2.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t1.so %t2.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t1.so %t2.so # RUN: llvm-readobj -dt -r -dynamic-table %t.exe | FileCheck %s # CHECK: Relocations [ Index: test/elf/Mips/rel-dynamic-01-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-01-micro.test +++ test/elf/Mips/rel-dynamic-01-micro.test @@ -10,9 +10,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d -mattr=micromips %t.exe | FileCheck -check-prefix=DIS %s # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s Index: test/elf/Mips/rel-dynamic-01.test =================================================================== --- test/elf/Mips/rel-dynamic-01.test +++ test/elf/Mips/rel-dynamic-01.test @@ -10,9 +10,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -disassemble %t.exe | FileCheck -check-prefix=PLT %s # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-02.test =================================================================== --- test/elf/Mips/rel-dynamic-02.test +++ test/elf/Mips/rel-dynamic-02.test @@ -6,7 +6,7 @@ # b) There should be no PLT entries. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec -o %t.so %t.o # RUN: llvm-readobj -dt -r -s %t.so | FileCheck %s # CHECK: Sections [ Index: test/elf/Mips/rel-dynamic-03-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-03-micro.test +++ test/elf/Mips/rel-dynamic-03-micro.test @@ -12,9 +12,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -d -mattr=micromips %t.exe | FileCheck -check-prefix=DIS %s # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s Index: test/elf/Mips/rel-dynamic-03.test =================================================================== --- test/elf/Mips/rel-dynamic-03.test +++ test/elf/Mips/rel-dynamic-03.test @@ -12,9 +12,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -disassemble %t.exe | FileCheck -check-prefix=PLT %s # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s Index: test/elf/Mips/rel-dynamic-04-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-04-micro.test +++ test/elf/Mips/rel-dynamic-04-micro.test @@ -15,9 +15,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-04.test =================================================================== --- test/elf/Mips/rel-dynamic-04.test +++ test/elf/Mips/rel-dynamic-04.test @@ -13,9 +13,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-05-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-05-micro.test +++ test/elf/Mips/rel-dynamic-05-micro.test @@ -14,9 +14,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT %s # PLT: Section { Index: test/elf/Mips/rel-dynamic-05.test =================================================================== --- test/elf/Mips/rel-dynamic-05.test +++ test/elf/Mips/rel-dynamic-05.test @@ -12,9 +12,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT %s # PLT: Section { Index: test/elf/Mips/rel-dynamic-06-64.test =================================================================== --- test/elf/Mips/rel-dynamic-06-64.test +++ test/elf/Mips/rel-dynamic-06-64.test @@ -7,7 +7,7 @@ # b) Linker creates a single R_MIPS_REL32 relocation. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -dt -r -s %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-readobj -mips-plt-got %t.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-06.test =================================================================== --- test/elf/Mips/rel-dynamic-06.test +++ test/elf/Mips/rel-dynamic-06.test @@ -7,7 +7,7 @@ # b) Linker creates a single R_MIPS_REL32 relocation. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -dt -r -s %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-readobj -mips-plt-got %t.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-07-64.test =================================================================== --- test/elf/Mips/rel-dynamic-07-64.test +++ test/elf/Mips/rel-dynamic-07-64.test @@ -5,9 +5,9 @@ # a) Emitting of R_MIPS_REL32 relocations. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t1.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t1.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mips64el -shared --noinhibit-exec \ # RUN: -o %t2.so %t-o.o %t1.so # RUN: llvm-readobj -dt -r -sections %t2.so | FileCheck %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-07.test =================================================================== --- test/elf/Mips/rel-dynamic-07.test +++ test/elf/Mips/rel-dynamic-07.test @@ -6,9 +6,9 @@ # b) There should be no R_MIPS_REL32 relocations for the _gp_disp symbol. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -shared --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -shared --noinhibit-exec \ # RUN: -o %t2.so %t-o.o %t1.so # RUN: llvm-readobj -dt -r -sections %t2.so | FileCheck %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-08-64.test =================================================================== --- test/elf/Mips/rel-dynamic-08-64.test +++ test/elf/Mips/rel-dynamic-08-64.test @@ -6,9 +6,9 @@ # a) Emitting of R_MIPS_REL32 relocations. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mips64el -e T0 --noinhibit-exec \ # RUN: -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -sections %t.exe | FileCheck %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-08-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-08-micro.test +++ test/elf/Mips/rel-dynamic-08-micro.test @@ -6,9 +6,9 @@ # a) Emitting of R_MIPS_REL32 relocations. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -e T0 --noinhibit-exec \ # RUN: -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -sections %t.exe | FileCheck %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-08.test =================================================================== --- test/elf/Mips/rel-dynamic-08.test +++ test/elf/Mips/rel-dynamic-08.test @@ -6,9 +6,9 @@ # a) Emitting of R_MIPS_REL32 relocations. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 --noinhibit-exec \ +# RUN: lld -flavor old-gnu -target mipsel -e T0 --noinhibit-exec \ # RUN: -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r -sections %t.exe | FileCheck %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-09-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-09-micro.test +++ test/elf/Mips/rel-dynamic-09-micro.test @@ -6,7 +6,7 @@ # b) There should be no PLT entries. # # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -e T0 -o %t2-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel --noinhibit-exec -e T0 -o %t2-exe %t-obj # RUN: llvm-readobj -dt -r -s %t2-exe | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Sections [ Index: test/elf/Mips/rel-dynamic-09.test =================================================================== --- test/elf/Mips/rel-dynamic-09.test +++ test/elf/Mips/rel-dynamic-09.test @@ -6,7 +6,7 @@ # b) There should be no PLT entries. # # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel --noinhibit-exec -e T0 -o %t2-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel --noinhibit-exec -e T0 -o %t2-exe %t-obj # RUN: llvm-readobj -dt -r -s %t2-exe | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Sections [ Index: test/elf/Mips/rel-dynamic-10-micro.test =================================================================== --- test/elf/Mips/rel-dynamic-10-micro.test +++ test/elf/Mips/rel-dynamic-10-micro.test @@ -7,7 +7,7 @@ # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o2.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Sections [ Index: test/elf/Mips/rel-dynamic-10.test =================================================================== --- test/elf/Mips/rel-dynamic-10.test +++ test/elf/Mips/rel-dynamic-10.test @@ -7,7 +7,7 @@ # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-o1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o2.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o # RUN: llvm-readobj -dt -r -s %t.exe | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Sections [ Index: test/elf/Mips/rel-dynamic-11.test =================================================================== --- test/elf/Mips/rel-dynamic-11.test +++ test/elf/Mips/rel-dynamic-11.test @@ -6,9 +6,9 @@ # b) There should be no PLT entries. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t-o.o %t1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t-o.o %t1.so # RUN: llvm-readobj -dt -r -s %t2.so | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Sections [ Index: test/elf/Mips/rel-dynamic-12.test =================================================================== --- test/elf/Mips/rel-dynamic-12.test +++ test/elf/Mips/rel-dynamic-12.test @@ -8,9 +8,9 @@ # a pointer equality. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-dynamic-13.test =================================================================== --- test/elf/Mips/rel-dynamic-13.test +++ test/elf/Mips/rel-dynamic-13.test @@ -6,9 +6,9 @@ # b) Applying addendum from the original relocation. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/rel-dynamic-14.test =================================================================== --- test/elf/Mips/rel-dynamic-14.test +++ test/elf/Mips/rel-dynamic-14.test @@ -6,9 +6,9 @@ # b) Applying addendum from the original relocation. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/rel-dynamic-15.test =================================================================== --- test/elf/Mips/rel-dynamic-15.test +++ test/elf/Mips/rel-dynamic-15.test @@ -2,7 +2,7 @@ # symbols if the symbols referenced by R_MIPS_32 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s Index: test/elf/Mips/rel-eh-01.test =================================================================== --- test/elf/Mips/rel-eh-01.test +++ test/elf/Mips/rel-eh-01.test @@ -2,10 +2,10 @@ # calculation, adding GOT entries etc. # RUN: yaml2obj -format=elf -docnum 1 %s > %t.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 3 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t1.o %t2.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t1.o %t2.o %t.so # RUN: llvm-objdump -s -t %t.exe | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-eh-02.test =================================================================== --- test/elf/Mips/rel-eh-02.test +++ test/elf/Mips/rel-eh-02.test @@ -7,9 +7,9 @@ # c) No entries in the dynamic symbols table has the STO_MIPS_PLT flag. # # RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so # RUN: llvm-readobj -dt -r %t.exe | FileCheck -check-prefix=PLT-SYM %s # PLT-SYM: Relocations [ Index: test/elf/Mips/rel-eh-03.test =================================================================== --- test/elf/Mips/rel-eh-03.test +++ test/elf/Mips/rel-eh-03.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -e T0 \ +# RUN: lld -flavor old-gnu -target mipsel -e T0 \ # RUN: -pcrel-eh-reloc -o %t.exe %t1.o %t2.o # RUN: llvm-objdump -s -t %t.exe | FileCheck -check-prefix=RAW %s Index: test/elf/Mips/rel-got-hilo-01.test =================================================================== --- test/elf/Mips/rel-got-hilo-01.test +++ test/elf/Mips/rel-got-hilo-01.test @@ -1,9 +1,9 @@ # Check handling of R_MIPS_GOT_HI16 / R_MIPS_GOT_LO16 relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t1.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t1.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so # RUN: llvm-objdump -s -t %t2.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-got-hilo-micro.test =================================================================== --- test/elf/Mips/rel-got-hilo-micro.test +++ test/elf/Mips/rel-got-hilo-micro.test @@ -1,9 +1,9 @@ # Check handling of R_MICROMIPS_GOT_HI16 / R_MICROMIPS_GOT_LO16 relocations. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t1.so %t1.so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t1.so %t1.so.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.so.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t2.so %t2.so.o %t1.so # RUN: llvm-objdump -s -t %t2.so | FileCheck -check-prefix=RAW %s # RUN: llvm-readobj -mips-plt-got %t2.so | FileCheck -check-prefix=GOT %s Index: test/elf/Mips/rel-gprel16-micro-overflow.test =================================================================== --- test/elf/Mips/rel-gprel16-micro-overflow.test +++ test/elf/Mips/rel-gprel16-micro-overflow.test @@ -1,7 +1,7 @@ # Check R_MICROMIPS_GPREL16 relocation overflow handling. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from +0 to L0+0 of type 136 (R_MICROMIPS_GPREL16) Index: test/elf/Mips/rel-gprel16-micro.test =================================================================== --- test/elf/Mips/rel-gprel16-micro.test +++ test/elf/Mips/rel-gprel16-micro.test @@ -1,7 +1,7 @@ # Check R_MICROMIPS_GPREL16 relocation handling. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -symbols %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/rel-gprel16-overflow.test =================================================================== --- test/elf/Mips/rel-gprel16-overflow.test +++ test/elf/Mips/rel-gprel16-overflow.test @@ -1,7 +1,7 @@ # Check R_MIPS_GPREL16 relocation overflow handling. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from +0 to T1+-32768 of type 7 (R_MIPS_GPREL16) Index: test/elf/Mips/rel-gprel16.test =================================================================== --- test/elf/Mips/rel-gprel16.test +++ test/elf/Mips/rel-gprel16.test @@ -1,7 +1,7 @@ # Check R_MIPS_GPREL16 relocation handling. # # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -e G1 -shared -o %t.so %t-obj +# RUN: lld -flavor old-gnu -target mipsel -e G1 -shared -o %t.so %t-obj # RUN: llvm-readobj -symbols %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/rel-gprel32-64.test =================================================================== --- test/elf/Mips/rel-gprel32-64.test +++ test/elf/Mips/rel-gprel32-64.test @@ -1,7 +1,7 @@ # Check R_MIPS_GPREL32/R_MIPS_64 relocations handling. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t.o # RUN: llvm-readobj -r %t.exe | FileCheck --check-prefix=REL-EXE %s # RUN: llvm-objdump -s %t.exe | FileCheck %s # RUN: llvm-nm %t.exe | FileCheck --check-prefix=SYM %s @@ -16,7 +16,7 @@ # SYM: 00000001200001e8 t LT1 # SYM: 0000000120001000 N _GLOBAL_OFFSET_TABLE_ -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t.o # RUN: llvm-readobj -r %t.so | FileCheck --check-prefix=REL-SO %s # REL-SO: Relocations [ Index: test/elf/Mips/rel-gprel32.test =================================================================== --- test/elf/Mips/rel-gprel32.test +++ test/elf/Mips/rel-gprel32.test @@ -1,7 +1,7 @@ # Check R_MIPS_GPREL32 relocation handling. # # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -o %t-exe %t-obj # RUN: llvm-readobj -symbols %t-exe | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t-exe | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/rel-gprel7-micro-overflow.test =================================================================== --- test/elf/Mips/rel-gprel7-micro-overflow.test +++ test/elf/Mips/rel-gprel7-micro-overflow.test @@ -1,7 +1,7 @@ # Check R_MICROMIPS_GPREL7_S2 relocation overflow handling. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from +0 to L0+-4 of type 172 (R_MICROMIPS_GPREL7_S2) Index: test/elf/Mips/rel-gprel7-micro.test =================================================================== --- test/elf/Mips/rel-gprel7-micro.test +++ test/elf/Mips/rel-gprel7-micro.test @@ -1,7 +1,7 @@ # Check R_MICROMIPS_GPREL7_S2 relocation handling. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-readobj -symbols %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-objdump -s %t.so | FileCheck -check-prefix=SEC %s Index: test/elf/Mips/rel-hi0-lo16-micro.test =================================================================== --- test/elf/Mips/rel-hi0-lo16-micro.test +++ test/elf/Mips/rel-hi0-lo16-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_HI0_LO16 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-high-01.test =================================================================== --- test/elf/Mips/rel-high-01.test +++ test/elf/Mips/rel-high-01.test @@ -3,7 +3,7 @@ # Check handling R_MIPS_HIGHER / R_MIPS_HIGHEST relocations. # RUN: llvm-mc -arch=mips64el -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t.o # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/rel-high-02.test =================================================================== --- test/elf/Mips/rel-high-02.test +++ test/elf/Mips/rel-high-02.test @@ -3,7 +3,7 @@ # Check handling R_MICROMIPS_HIGHER / R_MICROMIPS_HIGHEST relocations. # RUN: llvm-mc -arch=mips64el -filetype=obj -o=%t.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t.o # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: Disassembly of section .text: Index: test/elf/Mips/rel-jalr-01.test =================================================================== --- test/elf/Mips/rel-jalr-01.test +++ test/elf/Mips/rel-jalr-01.test @@ -3,9 +3,9 @@ # Check handling of the R_MIPS_JALR relocation. # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t1.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -o %t.exe %t2.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -o %t.exe %t2.o %t.so # RUN: llvm-objdump -d %t.exe | FileCheck %s # CHECK: __start: Index: test/elf/Mips/rel-jalr-02.test =================================================================== --- test/elf/Mips/rel-jalr-02.test +++ test/elf/Mips/rel-jalr-02.test @@ -4,7 +4,7 @@ # in case of relocatable targets. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t.o # RUN: llvm-objdump -d %t.so | FileCheck %s # CHECK: __start: Index: test/elf/Mips/rel-lit-micro.test =================================================================== --- test/elf/Mips/rel-lit-micro.test +++ test/elf/Mips/rel-lit-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_LITERAL relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-lit.test =================================================================== --- test/elf/Mips/rel-lit.test +++ test/elf/Mips/rel-lit.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_LITERAL relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc-hilo.test =================================================================== --- test/elf/Mips/rel-pc-hilo.test +++ test/elf/Mips/rel-pc-hilo.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PCHI16 / R_MIPS_PCLO16 relocations. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc16-align.test =================================================================== --- test/elf/Mips/rel-pc16-align.test +++ test/elf/Mips/rel-pc16-align.test @@ -1,7 +1,7 @@ # Check incorrect alignment handling for R_MIPS_PC16 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation not aligned in file {{.*}} reference from T0+0 to T1+0 of type 10 (R_MIPS_PC16) Index: test/elf/Mips/rel-pc16-overflow.test =================================================================== --- test/elf/Mips/rel-pc16-overflow.test +++ test/elf/Mips/rel-pc16-overflow.test @@ -1,7 +1,7 @@ # Check R_MIPS_PC16 relocation overflow handling. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from T0+0 to T1+131068 of type 10 (R_MIPS_PC16) Index: test/elf/Mips/rel-pc16.test =================================================================== --- test/elf/Mips/rel-pc16.test +++ test/elf/Mips/rel-pc16.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PC16 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc18-s3-align.test =================================================================== --- test/elf/Mips/rel-pc18-s3-align.test +++ test/elf/Mips/rel-pc18-s3-align.test @@ -1,7 +1,7 @@ # Check incorrect alignment handling for R_MIPS_PC18_S3 relocation target. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation not aligned in file {{.*}} reference from T1+0 to T1+0 of type 62 (R_MIPS_PC18_S3) Index: test/elf/Mips/rel-pc18-s3-micro.test =================================================================== --- test/elf/Mips/rel-pc18-s3-micro.test +++ test/elf/Mips/rel-pc18-s3-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_PC18_S3 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc18-s3.test =================================================================== --- test/elf/Mips/rel-pc18-s3.test +++ test/elf/Mips/rel-pc18-s3.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PC18_S3 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc19-s2-align.test =================================================================== --- test/elf/Mips/rel-pc19-s2-align.test +++ test/elf/Mips/rel-pc19-s2-align.test @@ -1,7 +1,7 @@ # Check incorrect alignment handling for R_MIPS_PC19_S2 relocation target. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation not aligned in file {{.*}} reference from T0+0 to T1+0 of type 63 (R_MIPS_PC19_S2) Index: test/elf/Mips/rel-pc19-s2-micro.test =================================================================== --- test/elf/Mips/rel-pc19-s2-micro.test +++ test/elf/Mips/rel-pc19-s2-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_PC19_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc19-s2.test =================================================================== --- test/elf/Mips/rel-pc19-s2.test +++ test/elf/Mips/rel-pc19-s2.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PC19_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc21-s2-align.test =================================================================== --- test/elf/Mips/rel-pc21-s2-align.test +++ test/elf/Mips/rel-pc21-s2-align.test @@ -1,7 +1,7 @@ # Check incorrect alignment handling for R_MIPS_PC21_S2 relocation target. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation not aligned in file {{.*}} reference from T0+0 to T1+0 of type 60 (R_MIPS_PC21_S2) Index: test/elf/Mips/rel-pc21-s2-micro.test =================================================================== --- test/elf/Mips/rel-pc21-s2-micro.test +++ test/elf/Mips/rel-pc21-s2-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_PC21_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc21-s2-overflow.test =================================================================== --- test/elf/Mips/rel-pc21-s2-overflow.test +++ test/elf/Mips/rel-pc21-s2-overflow.test @@ -1,7 +1,7 @@ # Check R_MIPS_PC21_S2 relocation overflow handling. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation out of range in file {{.*}} reference from T0+0 to T1+4194300 of type 60 (R_MIPS_PC21_S2) Index: test/elf/Mips/rel-pc21-s2.test =================================================================== --- test/elf/Mips/rel-pc21-s2.test +++ test/elf/Mips/rel-pc21-s2.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PC21_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc26-s2-align.test =================================================================== --- test/elf/Mips/rel-pc26-s2-align.test +++ test/elf/Mips/rel-pc26-s2-align.test @@ -1,7 +1,7 @@ # Check incorrect alignment handling for R_MIPS_PC26_S2 relocation target. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: Relocation not aligned in file {{.*}} reference from T0+0 to T1+0 of type 61 (R_MIPS_PC26_S2) Index: test/elf/Mips/rel-pc26-s2-micro.test =================================================================== --- test/elf/Mips/rel-pc26-s2-micro.test +++ test/elf/Mips/rel-pc26-s2-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_PC26_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc26-s2.test =================================================================== --- test/elf/Mips/rel-pc26-s2.test +++ test/elf/Mips/rel-pc26-s2.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_PC26_S2 relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-pc32.test =================================================================== --- test/elf/Mips/rel-pc32.test +++ test/elf/Mips/rel-pc32.test @@ -1,6 +1,6 @@ # Check handling of R_MIPS_PC32 relocation. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rel-pc7-10-16-23.test =================================================================== --- test/elf/Mips/rel-pc7-10-16-23.test +++ test/elf/Mips/rel-pc7-10-16-23.test @@ -2,7 +2,7 @@ # R_MICROMIPS_PC16_S1, and R_MICROMIPS_PC23_S2 relocations. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target mipsel -o %t-exe %t-obj +# RUN: lld -flavor old-gnu -target mipsel -o %t-exe %t-obj # RUN: llvm-objdump -s -t %t-exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/rel-sub-micro.test =================================================================== --- test/elf/Mips/rel-sub-micro.test +++ test/elf/Mips/rel-sub-micro.test @@ -1,7 +1,7 @@ # Check handling of R_MICROMIPS_SUB relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rel-sub.test =================================================================== --- test/elf/Mips/rel-sub.test +++ test/elf/Mips/rel-sub.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_SUB relocation. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -o %t.exe %t.o # RUN: llvm-objdump -s -t %t.exe | FileCheck %s # CHECK: Contents of section .data: Index: test/elf/Mips/rld_map.test =================================================================== --- test/elf/Mips/rld_map.test +++ test/elf/Mips/rld_map.test @@ -4,7 +4,7 @@ # .rld_map section, and __RLD_MAP symbol. # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o -# RUN: lld -flavor gnu -target mips %t.o -o %t.exe +# RUN: lld -flavor old-gnu -target mips %t.o -o %t.exe # RUN: llvm-readobj -dynamic-table -s -st %t.exe \ # RUN: | FileCheck -check-prefix=EXE-DYN %s @@ -28,12 +28,12 @@ # EXE-DYN: 0x70000016 MIPS_RLD_MAP 0x[[ADDR]] # EXE-DYN: 0x70000035 MIPS_RLD_MAP_REL 0x1E48 -# RUN: lld -flavor gnu -target mips -static %t.o -o %t.exe +# RUN: lld -flavor old-gnu -target mips -static %t.o -o %t.exe # RUN: llvm-nm -just-symbol-name %t.exe | FileCheck -check-prefix=EXE-STATIC %s # EXE-STATIC-NOT: __RLD_MAP -# RUN: lld -flavor gnu -target mips -shared %t.o -o %t.so +# RUN: lld -flavor old-gnu -target mips -shared %t.o -o %t.so # RUN: llvm-nm -just-symbol-name %t.so | FileCheck -check-prefix=DYNLIB %s # DYNLIB-NOT: __RLD_MAP Index: test/elf/Mips/sign-rela.test =================================================================== --- test/elf/Mips/sign-rela.test +++ test/elf/Mips/sign-rela.test @@ -1,7 +1,7 @@ # Check that relocation addend read from RELA record is not sign-extended. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target mips64el -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: {{[0-9a-f]+}} 01000000 00000000 ........ Index: test/elf/Mips/st-other.test =================================================================== --- test/elf/Mips/st-other.test +++ test/elf/Mips/st-other.test @@ -5,10 +5,10 @@ # RUN: yaml2obj -format=elf %s > %t-micro.o -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-micro.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-micro.o # RUN: llvm-readobj -dyn-symbols %t.so | FileCheck -check-prefix=SO %s -# RUN: lld -flavor gnu -target mipsel -e S0 -o %t.exe %t-micro.o +# RUN: lld -flavor old-gnu -target mipsel -e S0 -o %t.exe %t-micro.o # RUN: llvm-readobj -symbols %t.exe | FileCheck -check-prefix=EXE-SYM %s # RUN: llvm-readobj -dyn-symbols %t.exe | FileCheck -check-prefix=EXE-DSYM %s Index: test/elf/Mips/static-01.test =================================================================== --- test/elf/Mips/static-01.test +++ test/elf/Mips/static-01.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -e T0 -static -o %t.exe %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -static -o %t.exe %t1.o %t2.o # RUN: llvm-nm %t.exe | FileCheck %s # CHECK: 00401000 N _GLOBAL_OFFSET_TABLE_ Index: test/elf/Mips/tls-1-micro.test =================================================================== --- test/elf/Mips/tls-1-micro.test +++ test/elf/Mips/tls-1-micro.test @@ -2,7 +2,7 @@ # relocations. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mipsel -e L0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e L0 -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-1.test =================================================================== --- test/elf/Mips/tls-1.test +++ test/elf/Mips/tls-1.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_TPREL_HI16 / R_MIPS_TLS_TPREL_LO16 relocations. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mipsel -e L0 -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e L0 -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-2-64-static.test =================================================================== --- test/elf/Mips/tls-2-64-static.test +++ test/elf/Mips/tls-2-64-static.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_GD relocation in case of -static linking. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -static -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -static -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-2-64.test =================================================================== --- test/elf/Mips/tls-2-64.test +++ test/elf/Mips/tls-2-64.test @@ -4,7 +4,7 @@ # Create a shared library with thread symbol D1. # RUN: yaml2obj -format=elf -o %t-so.o %s -# RUN: lld -flavor gnu -target mips64el -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mips64el -shared -o %t.so %t-so.o # Check dynamic relocations and GOT in the shared library. # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-2-micro.test =================================================================== --- test/elf/Mips/tls-2-micro.test +++ test/elf/Mips/tls-2-micro.test @@ -4,7 +4,7 @@ # Create a shared library with thread symbol D1. # RUN: yaml2obj -format=elf -o %t-so.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Check dynamic relocations and GOT in the shared library. # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-2-static.test =================================================================== --- test/elf/Mips/tls-2-static.test +++ test/elf/Mips/tls-2-static.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf -docnum 1 -o %t1.o %s # RUN: yaml2obj -format=elf -docnum 2 -o %t2.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -static -o %t.exe %t1.o %t2.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -static -o %t.exe %t1.o %t2.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-2.test =================================================================== --- test/elf/Mips/tls-2.test +++ test/elf/Mips/tls-2.test @@ -4,7 +4,7 @@ # Create a shared library with thread symbol D1. # RUN: yaml2obj -format=elf -o %t-so.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Check dynamic relocations and GOT in the shared library. # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-3-64-static.test =================================================================== --- test/elf/Mips/tls-3-64-static.test +++ test/elf/Mips/tls-3-64-static.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_GOTTPREL relocation in case of -static linking. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -static -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -static -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-3-micro.test =================================================================== --- test/elf/Mips/tls-3-micro.test +++ test/elf/Mips/tls-3-micro.test @@ -4,13 +4,13 @@ # Create a shared library with thread symbol D1. # RUN: yaml2obj -format=elf -docnum 1 -o %t-so.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Create executable file linked using two object files and the shared library. # The object files defines thread symbols D0 and D2. # RUN: yaml2obj -format=elf -docnum 2 -o %t-o1.o %s # RUN: yaml2obj -format=elf -docnum 3 -o %t-o2.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o %t.so # Check dynamic relocations and GOT in the executable file. # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-3-static.test =================================================================== --- test/elf/Mips/tls-3-static.test +++ test/elf/Mips/tls-3-static.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_GOTTPREL relocation in case of -static linking. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -static -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -static -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-3.test =================================================================== --- test/elf/Mips/tls-3.test +++ test/elf/Mips/tls-3.test @@ -4,13 +4,13 @@ # Create a shared library with thread symbol D1. # RUN: yaml2obj -format=elf -docnum 1 -o %t-so.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so.o # Create executable file linked using two object files and the shared library. # The object files defines thread symbols D0 and D2. # RUN: yaml2obj -format=elf -docnum 2 -o %t-o1.o %s # RUN: yaml2obj -format=elf -docnum 3 -o %t-o2.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o %t.so +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o1.o %t-o2.o %t.so # Check dynamic relocations and GOT in the executable file. # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-4-64-static.test =================================================================== --- test/elf/Mips/tls-4-64-static.test +++ test/elf/Mips/tls-4-64-static.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_LDM relocation in case of -static linking. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -static -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -static -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-4-micro.test =================================================================== --- test/elf/Mips/tls-4-micro.test +++ test/elf/Mips/tls-4-micro.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 -o %t-so1.o %s # RUN: yaml2obj -format=elf -docnum 2 -o %t-so2.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so1.o %t-so2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so1.o %t-so2.o # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s # RUN: llvm-readobj -dynamic-table %t.so | FileCheck -check-prefix=DYN %s Index: test/elf/Mips/tls-4-static.test =================================================================== --- test/elf/Mips/tls-4-static.test +++ test/elf/Mips/tls-4-static.test @@ -1,7 +1,7 @@ # Check handling of R_MIPS_TLS_LDM relocation in case of -static linking. # RUN: yaml2obj -format=elf -o %t.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -static -o %t.exe %t.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -static -o %t.exe %t.o # RUN: llvm-objdump -s %t.exe | FileCheck %s # CHECK: Contents of section .text: Index: test/elf/Mips/tls-4.test =================================================================== --- test/elf/Mips/tls-4.test +++ test/elf/Mips/tls-4.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 -o %t-so1.o %s # RUN: yaml2obj -format=elf -docnum 2 -o %t-so2.o %s -# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so1.o %t-so2.o +# RUN: lld -flavor old-gnu -target mipsel -shared -o %t.so %t-so1.o %t-so2.o # RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=REL %s # RUN: llvm-readobj -dynamic-table %t.so | FileCheck -check-prefix=DYN %s Index: test/elf/Mips/tls-5-64.test =================================================================== --- test/elf/Mips/tls-5-64.test +++ test/elf/Mips/tls-5-64.test @@ -2,7 +2,7 @@ # by the R_MIPS_TLS_GD relocation gets an entry in the dynamic symbol table. # RUN: yaml2obj -format=elf -o %t-o.o %s -# RUN: lld -flavor gnu -target mips64el -e T0 -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mips64el -e T0 -o %t.exe %t-o.o # Check dynamic relocations: # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-5-micro.test =================================================================== --- test/elf/Mips/tls-5-micro.test +++ test/elf/Mips/tls-5-micro.test @@ -2,7 +2,7 @@ # the R_MICROMIPS_TLS_GD relocation gets an entry in the dynamic symbol table. # RUN: yaml2obj -format=elf -o %t-o.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o # Check dynamic relocations: # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/tls-5.test =================================================================== --- test/elf/Mips/tls-5.test +++ test/elf/Mips/tls-5.test @@ -2,7 +2,7 @@ # by the R_MIPS_TLS_GD relocation gets an entry in the dynamic symbol table. # RUN: yaml2obj -format=elf -o %t-o.o %s -# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o +# RUN: lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t-o.o # Check dynamic relocations: # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s Index: test/elf/Mips/validate-rel-01.test =================================================================== --- test/elf/Mips/validate-rel-01.test +++ test/elf/Mips/validate-rel-01.test @@ -2,13 +2,13 @@ # in case of shared library linking. # RUN: yaml2obj -format=elf -docnum 1 %s > %t-hi.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t-hi.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t-hi.o 2>&1 \ # RUN: | FileCheck -check-prefix=RHI %s # RHI: R_MIPS_HI16 (5) relocation cannot be used when making a shared object, recompile {{.*}}validate-rel-01.test.tmp-hi.o with -fPIC # RUN: yaml2obj -format=elf -docnum 2 %s > %t-26.o -# RUN: not lld -flavor gnu -target mipsel -shared -o %t.so %t-26.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -shared -o %t.so %t-26.o 2>&1 \ # RUN: | FileCheck -check-prefix=R26 %s # R26: R_MIPS_26 (4) relocation cannot be used when making a shared object, recompile {{.*}}validate-rel-01.test.tmp-26.o with -fPIC Index: test/elf/Mips/validate-rel-03.test =================================================================== --- test/elf/Mips/validate-rel-03.test +++ test/elf/Mips/validate-rel-03.test @@ -2,7 +2,7 @@ # against local symbol. # RUN: yaml2obj -format=elf -docnum 1 %s > %t.o -# RUN: not lld -flavor gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ +# RUN: not lld -flavor old-gnu -target mipsel -e T0 -o %t.exe %t.o 2>&1 \ # RUN: | FileCheck %s # CHECK: R_MIPS_CALL16 (11) relocation cannot be used against local symbol L0 in file {{.*}}validate-rel-03.test.tmp.o Index: test/elf/X86_64/ExampleTarget/triple.test =================================================================== --- test/elf/X86_64/ExampleTarget/triple.test +++ test/elf/X86_64/ExampleTarget/triple.test @@ -1,7 +1,7 @@ # Check that the Example Target is actually used. # RUN: yaml2obj -format=elf %s -o %t.o -# RUN: lld -flavor gnu -target x86_64-example-freebsd9 %t.o -o %t.exe +# RUN: lld -flavor old-gnu -target x86_64-example-freebsd9 %t.o -o %t.exe # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # # CHECK: Type: 0xFF00 Index: test/elf/X86_64/alignoffset.test =================================================================== --- test/elf/X86_64/alignoffset.test +++ test/elf/X86_64/alignoffset.test @@ -3,7 +3,7 @@ # Build executable # RUN: yaml2obj -format=elf -docnum 1 %s -o %t.o -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --rosegment --noinhibit-exec # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # Index: test/elf/X86_64/debug.test =================================================================== --- test/elf/X86_64/debug.test +++ test/elf/X86_64/debug.test @@ -1,10 +1,10 @@ # Test that debug info is assigned typeNoAlloc and that the output sections have # a virtual address of 0. -RUN: lld -flavor gnu -target x86_64 -e main --output-filetype=yaml \ +RUN: lld -flavor old-gnu -target x86_64 -e main --output-filetype=yaml \ RUN: %p/Inputs/debug0.x86-64 %p/Inputs/debug1.x86-64 -o %t RUN: FileCheck %s -check-prefix YAML < %t -RUN: lld -flavor gnu -target x86_64 -e main %p/Inputs/debug0.x86-64 \ +RUN: lld -flavor old-gnu -target x86_64 -e main %p/Inputs/debug0.x86-64 \ RUN: %p/Inputs/debug1.x86-64 -o %t1 RUN: llvm-readobj -sections %t1 | FileCheck %s -check-prefix ELF # Verify that non SHF_ALLOC sections are relocated correctly. Index: test/elf/X86_64/defsym.test =================================================================== --- test/elf/X86_64/defsym.test +++ test/elf/X86_64/defsym.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64 --defsym=main=fn --noinhibit-exec \ +RUN: lld -flavor old-gnu -target x86_64 --defsym=main=fn --noinhibit-exec \ RUN: %p/Inputs/fn.o -o %t RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/elf/X86_64/demangle.test =================================================================== --- test/elf/X86_64/demangle.test +++ test/elf/X86_64/demangle.test @@ -4,9 +4,9 @@ # Once there is a way to add undefined symbols using yaml2obj, the test will be # changed. -RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec 2>&1 | FileCheck -check-prefix=DEMANGLE %s -RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --no-demangle 2>&1 | FileCheck -check-prefix=NODEMANGLE %s -RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --demangle 2>&1 | FileCheck -check-prefix=DEMANGLE %s +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec 2>&1 | FileCheck -check-prefix=DEMANGLE %s +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --no-demangle 2>&1 | FileCheck -check-prefix=NODEMANGLE %s +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --demangle 2>&1 | FileCheck -check-prefix=DEMANGLE %s #DEMANGLE: undefcpp.o: foo(char const*) #NODEMANGLE: undefcpp.o: _Z3fooPKc Index: test/elf/X86_64/dontignorezerosize-sections.test =================================================================== --- test/elf/X86_64/dontignorezerosize-sections.test +++ test/elf/X86_64/dontignorezerosize-sections.test @@ -1,5 +1,5 @@ # This tests that lld is not ignoring zero sized sections -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/zerosizedsection.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/zerosizedsection.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t RUN: FileCheck %s < %t Index: test/elf/X86_64/dynamicvars.test =================================================================== --- test/elf/X86_64/dynamicvars.test +++ test/elf/X86_64/dynamicvars.test @@ -2,7 +2,7 @@ # values. #RUN: yaml2obj --format elf -docnum 1 %s -o %t.o -#RUN: lld -flavor gnu -target x86_64 -e main %t.o -o %t1 --noinhibit-exec +#RUN: lld -flavor old-gnu -target x86_64 -e main %t.o -o %t1 --noinhibit-exec #RUN: llvm-readobj -sections -symbols %t1 | FileCheck -check-prefix CHECKSYMS %s Index: test/elf/X86_64/dynlib-nointerp-section.test =================================================================== --- test/elf/X86_64/dynlib-nointerp-section.test +++ test/elf/X86_64/dynlib-nointerp-section.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64 %p/Inputs/no-interp-section.o -o %t -shared +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/no-interp-section.o -o %t -shared RUN: llvm-objdump -section-headers %t | FileCheck %s CHECK-NOT: .interp Index: test/elf/X86_64/dynlib-search.test =================================================================== --- test/elf/X86_64/dynlib-search.test +++ test/elf/X86_64/dynlib-search.test @@ -1,5 +1,5 @@ # This tests the functionality for finding the shared library libfn.so for ELF -RUN: lld -flavor gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \ RUN: --noinhibit-exec -t 2> %t1 RUN: FileCheck %s < %t1 Index: test/elf/X86_64/dynsym-weak.test =================================================================== --- test/elf/X86_64/dynsym-weak.test +++ test/elf/X86_64/dynsym-weak.test @@ -3,19 +3,19 @@ # symbol as strong. # RUN: yaml2obj -format=elf -docnum 1 %s > %t.foo.o -# RUN: lld -flavor gnu -target x86_64 -shared -o %t.so %t.foo.o +# RUN: lld -flavor old-gnu -target x86_64 -shared -o %t.so %t.foo.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t.main.o # # Link executable file with strong symbol. Weak symbol is in the shared lib. -# RUN: lld -flavor gnu -target x86_64 -e main -o %t1.exe %t.main.o %t.so +# RUN: lld -flavor old-gnu -target x86_64 -e main -o %t1.exe %t.main.o %t.so # RUN: llvm-readobj -dyn-symbols %t1.exe | FileCheck -check-prefix=EXE %s # # Link executable file. Strong and weak symbol come from different object files. -# RUN: lld -flavor gnu -target x86_64 -e main -o %t2.exe %t.main.o %t.foo.o +# RUN: lld -flavor old-gnu -target x86_64 -e main -o %t2.exe %t.main.o %t.foo.o # RUN: llvm-readobj -dyn-symbols %t2.exe | FileCheck -check-prefix=OBJ %s # # Link shared library. Weak symbol is in the another shared lib. -# RUN: lld -flavor gnu -target x86_64 -shared -o %t.res.so %t.main.o %t.so +# RUN: lld -flavor old-gnu -target x86_64 -shared -o %t.res.so %t.main.o %t.so # RUN: llvm-readobj -dyn-symbols %t.res.so | FileCheck -check-prefix=SO %s # EXE: Symbol { Index: test/elf/X86_64/extern-tls.test =================================================================== --- test/elf/X86_64/extern-tls.test +++ test/elf/X86_64/extern-tls.test @@ -1,6 +1,6 @@ # This tests verifies that TLS variables have correct offsets # when variables the TLS variables are not defined in the program -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/externtls.x86-64 -static \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/externtls.x86-64 -static \ RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s -check-prefix=CHECKGOT # Currently x86_64 relocation pass handles the R_X86_64_GOTTPOFF by Index: test/elf/X86_64/general-dynamic-tls.test =================================================================== --- test/elf/X86_64/general-dynamic-tls.test +++ test/elf/X86_64/general-dynamic-tls.test @@ -10,12 +10,12 @@ # Prepare inputs #RUN: yaml2obj -format=elf %p/Inputs/generaltls-so.o.yaml -o=%t.o.so -#RUN: lld -flavor gnu -target x86_64 -shared %t.o.so -o %T/libgeneraltls.so +#RUN: lld -flavor old-gnu -target x86_64 -shared %t.o.so -o %T/libgeneraltls.so #RUN: yaml2obj -format=elf %s -o=%t.o # Link - (we supply --defsym=__tls_get_addr to avoid the need to link with # system libraries) -#RUN: lld -flavor gnu -target x86_64 -e main %t.o -L%T -lgeneraltls -o %t1 \ +#RUN: lld -flavor old-gnu -target x86_64 -e main %t.o -L%T -lgeneraltls -o %t1 \ #RUN: --defsym=__tls_get_addr=0 # Check Index: test/elf/X86_64/imagebase.test =================================================================== --- test/elf/X86_64/imagebase.test +++ test/elf/X86_64/imagebase.test @@ -2,7 +2,7 @@ # Build executable # RUN: yaml2obj -format=elf -docnum 1 %s -o %t.o -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec --image-base 0x600000 # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # Index: test/elf/X86_64/initfini-order.test =================================================================== --- test/elf/X86_64/initfini-order.test +++ test/elf/X86_64/initfini-order.test @@ -1,7 +1,7 @@ # This tests the functionality that lld is able to emit # init_array/fini_array sections in the right order. -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/initfini.o \ RUN: --noinhibit-exec -o %t RUN: llvm-objdump -t -section-headers %t | FileCheck %s Index: test/elf/X86_64/initfini.test =================================================================== --- test/elf/X86_64/initfini.test +++ test/elf/X86_64/initfini.test @@ -3,7 +3,7 @@ # corresponds to the the .init_array/.fini_array sections # in the output ELF. -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/initfini.o \ RUN: --noinhibit-exec --output-filetype=yaml -o %t RUN: FileCheck %s < %t Index: test/elf/X86_64/largebss.test =================================================================== --- test/elf/X86_64/largebss.test +++ test/elf/X86_64/largebss.test @@ -3,7 +3,7 @@ # Any typeZeroFill content wouldn't have space reserved in the file to store # its content -RUN: lld -flavor gnu -target x86_64 %p/Inputs/largebss.o --output-filetype=yaml --noinhibit-exec | FileCheck %s +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/largebss.o --output-filetype=yaml --noinhibit-exec | FileCheck %s CHECK: - name: largecommon CHECK: scope: global Index: test/elf/X86_64/layoutpass-order.test =================================================================== --- test/elf/X86_64/layoutpass-order.test +++ test/elf/X86_64/layoutpass-order.test @@ -1,7 +1,7 @@ # This test checks that we follow the command line order of layouting # symbols in the output file -RUN: lld -flavor gnu -target x86_64 %p/Inputs/layoutpass/1.o \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/layoutpass/1.o \ RUN: %p/Inputs/layoutpass/lib2.a %p/Inputs/layoutpass/3.o -o %t \ RUN: --noinhibit-exec -static Index: test/elf/X86_64/maxpagesize.test =================================================================== --- test/elf/X86_64/maxpagesize.test +++ test/elf/X86_64/maxpagesize.test @@ -4,15 +4,15 @@ # Build executable # RUN: yaml2obj -format=elf -docnum 1 %s -o %t.o -# RUN: not lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: not lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec -z max-page-size=0 -# RUN: not lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: not lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec -z max-page-size=0xFF -# RUN: not lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: not lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec -z max-page-size=0x1010 -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t1.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t1.exe -static \ # RUN: --no-align-segments --noinhibit-exec -z max-page-size=0x100000 -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec -z max-page-size=0x10000 # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # RUN: llvm-readobj -program-headers %t1.exe | FileCheck %s -check-prefix=CHECKLARGE Index: test/elf/X86_64/mergesimilarstrings.test =================================================================== --- test/elf/X86_64/mergesimilarstrings.test +++ test/elf/X86_64/mergesimilarstrings.test @@ -2,9 +2,9 @@ # when merging strings is enabled. # # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target x86_64 %t.o --noinhibit-exec -o %t1.out +# RUN: lld -flavor old-gnu -target x86_64 %t.o --noinhibit-exec -o %t1.out # RUN: llvm-readobj -sections %t1.out | FileCheck %s -# RUN: lld -flavor gnu -target x86_64 %t.o --noinhibit-exec -o %t2.out --output-filetype=yaml +# RUN: lld -flavor old-gnu -target x86_64 %t.o --noinhibit-exec -o %t2.out --output-filetype=yaml # RUN: FileCheck %s -check-prefix=CHECKRELOCS < %t2.out FileHeader: Index: test/elf/X86_64/multi-weak-layout.test =================================================================== --- test/elf/X86_64/multi-weak-layout.test +++ test/elf/X86_64/multi-weak-layout.test @@ -1,7 +1,7 @@ # Test that we are able to layout multiple weak symbols # properly -RUN: lld -flavor gnu -target x86_64 %p/Inputs/multiweaksyms.o \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/multiweaksyms.o \ RUN: --noinhibit-exec -static --output-filetype=yaml -o %t RUN: FileCheck %s -check-prefix=WEAKSYMS < %t Index: test/elf/X86_64/multi-weak-override.test =================================================================== --- test/elf/X86_64/multi-weak-override.test +++ test/elf/X86_64/multi-weak-override.test @@ -1,8 +1,8 @@ # Test for weak symbol getting overridden -RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/multi-weak.o \ RUN: %p/Inputs/multi-ovrd.o -o %t -e main --noinhibit-exec RUN: llvm-nm -n %t | FileCheck -check-prefix=WEAKORDER %s -RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/multi-weak.o \ RUN: %p/Inputs/multi-ovrd.o --output-filetype=yaml -o %t2 --noinhibit-exec RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2 Index: test/elf/X86_64/multi-weak-syms-order.test =================================================================== --- test/elf/X86_64/multi-weak-syms-order.test +++ test/elf/X86_64/multi-weak-syms-order.test @@ -1,7 +1,7 @@ # Test for weak symbol getting overridden -RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o -o %t --noinhibit-exec +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/multi-weak.o -o %t --noinhibit-exec RUN: llvm-nm -n %t | FileCheck -check-prefix=WEAKORDER %s -RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o -o %t2 --output-filetype=yaml --noinhibit-exec +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/multi-weak.o -o %t2 --output-filetype=yaml --noinhibit-exec RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2 WEAKORDER: {{[0-9a-f]+}} T fn Index: test/elf/X86_64/nmagic.test =================================================================== --- test/elf/X86_64/nmagic.test +++ test/elf/X86_64/nmagic.test @@ -1,7 +1,7 @@ # This tests verifies functionality of NMAGIC that we create only two segments, # PT_LOAD, PT_TLS # The data segment should be aligned to a page boundary -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/nmagic.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/nmagic.o \ RUN: --noinhibit-exec -o %t --nmagic -static RUN: llvm-readobj -sections %t | FileCheck -check-prefix=NMAGICSECTIONS %s RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=NMAGICPROGRAMHEADERS %s Index: test/elf/X86_64/noalignsegments.test =================================================================== --- test/elf/X86_64/noalignsegments.test +++ test/elf/X86_64/noalignsegments.test @@ -3,7 +3,7 @@ # Build executable # RUN: yaml2obj -format=elf -docnum 1 %s -o %t.o -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t.exe -static \ # RUN: --no-align-segments --noinhibit-exec # RUN: llvm-readobj -program-headers %t.exe | FileCheck %s # Index: test/elf/X86_64/note-sections-ro_plus_rw.test =================================================================== --- test/elf/X86_64/note-sections-ro_plus_rw.test +++ test/elf/X86_64/note-sections-ro_plus_rw.test @@ -2,7 +2,7 @@ # if they appear in the input, it looks like we need to differentiate RO note # sections from RW note sections, and each creating a segment of its own -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/note_ro_rw.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/note_ro_rw.o \ RUN: --noinhibit-exec -o %t -static RUN: llvm-readobj -sections %t | FileCheck -check-prefix=NOTESECTIONS %s RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=NOTESEGMENT %s Index: test/elf/X86_64/note-sections.test =================================================================== --- test/elf/X86_64/note-sections.test +++ test/elf/X86_64/note-sections.test @@ -1,7 +1,7 @@ # This tests the functionality that lld is able to recreate the note sections # if they appear in the input -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/note.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/note.o \ RUN: --noinhibit-exec -o %t -static RUN: llvm-readobj -sections %t | FileCheck -check-prefix=NOTESECTIONS %s RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=NOTESEGMENT %s Index: test/elf/X86_64/omagic.test =================================================================== --- test/elf/X86_64/omagic.test +++ test/elf/X86_64/omagic.test @@ -1,7 +1,7 @@ # This tests verifies functionality of omagic that we create only two segments, # PT_LOAD, PT_TLS # The data segment should not be aligned to a page boundary -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/nmagic.o \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/nmagic.o \ RUN: --noinhibit-exec -o %t --omagic -static RUN: llvm-readobj -sections %t | FileCheck -check-prefix=OMAGICSECTIONS %s RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=OMAGICPROGRAMHEADERS %s Index: test/elf/X86_64/outputsegments.test =================================================================== --- test/elf/X86_64/outputsegments.test +++ test/elf/X86_64/outputsegments.test @@ -3,9 +3,9 @@ # Build executable # RUN: yaml2obj -format=elf -docnum 1 %s -o %t.o -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t1.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t1.exe -static \ # RUN: --no-align-segments --noinhibit-exec -# RUN: lld -flavor gnu -target x86_64 %t.o -o %t2.exe -static \ +# RUN: lld -flavor old-gnu -target x86_64 %t.o -o %t2.exe -static \ # RUN: --noinhibit-exec # RUN: llvm-readobj -program-headers %t1.exe | FileCheck %s -check-prefix=SEGMENTS # RUN: llvm-readobj -program-headers %t2.exe | FileCheck %s -check-prefix=SEGMENTS Index: test/elf/X86_64/reloc_r_x86_64_16.test =================================================================== --- test/elf/X86_64/reloc_r_x86_64_16.test +++ test/elf/X86_64/reloc_r_x86_64_16.test @@ -1,6 +1,6 @@ # Tests that lld can handle relocations of type R_X86_64_16 #RUN: yaml2obj -format=elf -docnum 1 %s -o %t1.o -#RUN: lld -flavor gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static +#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 0210 Index: test/elf/X86_64/reloc_r_x86_64_pc16.test =================================================================== --- test/elf/X86_64/reloc_r_x86_64_pc16.test +++ test/elf/X86_64/reloc_r_x86_64_pc16.test @@ -1,6 +1,6 @@ # 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 gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static +#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 Index: test/elf/X86_64/reloc_r_x86_64_pc64.test =================================================================== --- test/elf/X86_64/reloc_r_x86_64_pc64.test +++ test/elf/X86_64/reloc_r_x86_64_pc64.test @@ -1,6 +1,6 @@ # 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 gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static +#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 Index: test/elf/X86_64/rodata.test =================================================================== --- test/elf/X86_64/rodata.test +++ test/elf/X86_64/rodata.test @@ -1,7 +1,7 @@ # This tests that the ordinals for all merge atoms and defined atoms have been # set properly -RUN: lld -flavor gnu -target x86_64 %p/Inputs/rodata.o --noinhibit-exec \ +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 Index: test/elf/X86_64/sectionchoice.test =================================================================== --- test/elf/X86_64/sectionchoice.test +++ test/elf/X86_64/sectionchoice.test @@ -1,5 +1,5 @@ # This tests that we are able to properly set the sectionChoice for DefinedAtoms -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/zerosizedsection.o \ +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 Index: test/elf/X86_64/sectionmap.test =================================================================== --- test/elf/X86_64/sectionmap.test +++ test/elf/X86_64/sectionmap.test @@ -1,7 +1,7 @@ # 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 gnu -target x86_64-linux %p/Inputs/sectionmap.o \ +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 Index: test/elf/X86_64/startGroupEndGroup.test =================================================================== --- test/elf/X86_64/startGroupEndGroup.test +++ test/elf/X86_64/startGroupEndGroup.test @@ -1,40 +1,40 @@ # This tests functionality of --start-group, --end-group # This link should fail with unresolve symbol -RUN: not lld -flavor gnu -target x86_64 %p/Inputs/group/1.o \ +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 gnu -target x86_64 %p/Inputs/group/1.o --start-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 gnu -target x86_64 %p/Inputs/group/1.o --start-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 gnu -target x86_64 %p/Inputs/group/1.o --start-group \ +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 gnu -target x86_64 %p/Inputs/group/1.o --start-group \ +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 gnu -target x86_64 %p/Inputs/group/1.o '-(' \ +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 gnu -target x86_64 %p/Inputs/group/1.o '-(' \ +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 gnu -target x86_64 %p/Inputs/group/1.o '-(' \ +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 Index: test/elf/X86_64/startGroupEndGroupWithDynlib.test =================================================================== --- test/elf/X86_64/startGroupEndGroupWithDynlib.test +++ test/elf/X86_64/startGroupEndGroupWithDynlib.test @@ -1,7 +1,7 @@ # This tests functionality of --start-group, --end-group with a dynamic library # Mix dynamic libraries/object files in group -RUN: lld -flavor gnu -target x86_64 %p/Inputs/group/1.o --start-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 Index: test/elf/X86_64/staticlib-search.test =================================================================== --- test/elf/X86_64/staticlib-search.test +++ test/elf/X86_64/staticlib-search.test @@ -1,5 +1,5 @@ # This tests the functionality for finding the static library libfn.a for ELF -RUN: lld -flavor gnu -target x86_64 %p/Inputs/main.o -L%p/Inputs/ -lfn -o %t \ +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 Index: test/elf/X86_64/undef.test =================================================================== --- test/elf/X86_64/undef.test +++ test/elf/X86_64/undef.test @@ -1,9 +1,9 @@ # 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 gnu -target x86_64 -u fn %p/Inputs/libfn.a -o %t --noinhibit-exec +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 gnu -target x86_64 %p/Inputs/libfn.a -o %t --noinhibit-exec +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 { Index: test/elf/X86_64/underscore-end.test =================================================================== --- test/elf/X86_64/underscore-end.test +++ test/elf/X86_64/underscore-end.test @@ -1,8 +1,8 @@ # This tests verifies that the value of _end symbol is point to the right value -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/nmagic.o \ +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 gnu -target x86_64-linux %p/Inputs/nmagic.o \ +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 Index: test/elf/X86_64/weak-override.test =================================================================== --- test/elf/X86_64/weak-override.test +++ test/elf/X86_64/weak-override.test @@ -1,8 +1,8 @@ # Test for weak symbol getting overridden -RUN: lld -flavor gnu -target x86_64 %p/Inputs/weak.o %p/Inputs/ovrd.o \ +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 gnu -target x86_64 %p/Inputs/weak.o \ +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 Index: test/elf/X86_64/weak-zero-sized.test =================================================================== --- test/elf/X86_64/weak-zero-sized.test +++ test/elf/X86_64/weak-zero-sized.test @@ -1,8 +1,8 @@ # Test for zero sized weak atoms, there is only a single weak atom -RUN: lld -flavor gnu -target x86_64 %p/Inputs/weak-zero-sized.o -o %t \ +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 gnu -target x86_64 %p/Inputs/weak-zero-sized.o \ +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 Index: test/elf/X86_64/weaksym.test =================================================================== --- test/elf/X86_64/weaksym.test +++ test/elf/X86_64/weaksym.test @@ -3,7 +3,7 @@ # symbol. #RUN: yaml2obj --format elf %s -o %t.o -#RUN: lld -flavor gnu -target x86_64 -e main %t.o -o %t1 +#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@ Index: test/elf/X86_64/yamlinput.test =================================================================== --- test/elf/X86_64/yamlinput.test +++ test/elf/X86_64/yamlinput.test @@ -1,9 +1,9 @@ # This tests the functionality that lld is able to read # an input YAML from a previous link -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \ +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 gnu -target x86_64-linux %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 Index: test/elf/abs-dup.objtxt =================================================================== --- test/elf/abs-dup.objtxt +++ test/elf/abs-dup.objtxt @@ -1,5 +1,5 @@ # Tests handling an absolute symbol with no name -# RUN: lld -flavor gnu -target x86_64 -r %s \ +# RUN: lld -flavor old-gnu -target x86_64 -r %s \ # RUN: --output-filetype=yaml | FileCheck %s absolute-atoms: Index: test/elf/abs.test =================================================================== --- test/elf/abs.test +++ test/elf/abs.test @@ -9,7 +9,7 @@ # built using: "gcc -m32" # -RUN: lld -flavor gnu -target i386 --output-filetype=yaml -r %p/Inputs/abs-test.i386 | FileCheck -check-prefix=YAML %s +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 Index: test/elf/allowduplicates.objtxt =================================================================== --- test/elf/allowduplicates.objtxt +++ test/elf/allowduplicates.objtxt @@ -1,12 +1,12 @@ -# RUN: lld -flavor gnu -target x86_64 --allow-multiple-definition %s \ +# 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 gnu -target x86_64 %s %p/Inputs/allowduplicates.objtxt \ +# 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 gnu -target x86_64 -z muldefs %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 Index: test/elf/archive-elf-forceload.test =================================================================== --- test/elf/archive-elf-forceload.test +++ test/elf/archive-elf-forceload.test @@ -23,7 +23,7 @@ # } # gcc -c main.c fn.c fn1.c -RUN: lld -flavor gnu -target x86_64-linux -e main %p/Inputs/mainobj.x86_64 \ +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 Index: test/elf/archive-elf.test =================================================================== --- test/elf/archive-elf.test +++ test/elf/archive-elf.test @@ -23,7 +23,7 @@ # } # gcc -c main.c fn.c fn1.c -RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -r \ +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 Index: test/elf/as-needed.test =================================================================== --- test/elf/as-needed.test +++ test/elf/as-needed.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \ +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 @@ -6,7 +6,7 @@ AS_NEEDED: NEEDED SharedLibrary (shared.so-x86-64) AS_NEEDED-NOT: NEEDED SharedLibrary (libifunc.x86-64.so) -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \ +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 Index: test/elf/branch.test =================================================================== --- test/elf/branch.test +++ test/elf/branch.test @@ -1,6 +1,6 @@ -RUN: lld -flavor gnu -target hexagon -static --output-filetype=yaml \ +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 gnu -target hexagon -e target -o %t1 \ +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 Index: test/elf/check.test =================================================================== --- test/elf/check.test +++ test/elf/check.test @@ -1,9 +1,9 @@ # This tests the basic functionality of ordering data and functions as they # appear in the inputs -RUN: lld -flavor gnu -target i386 -e global_func --noinhibit-exec --output-filetype=yaml \ +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 gnu -target hexagon -e global_func --noinhibit-exec --output-filetype=yaml \ +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 Index: test/elf/checkrodata.test =================================================================== --- test/elf/checkrodata.test +++ test/elf/checkrodata.test @@ -1,7 +1,7 @@ -RUN: lld -flavor gnu -target i386 -o %t1 %p/Inputs/rodata-test.i386 --noinhibit-exec +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 gnu -target hexagon -o %t2 %p/Inputs/rodata-test.hexagon --noinhibit-exec +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 Index: test/elf/common.test =================================================================== --- test/elf/common.test +++ test/elf/common.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64-linux -o %t %p/Inputs/relocs.x86-64 \ +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 Index: test/elf/consecutive-weak-sym-defs.test =================================================================== --- test/elf/consecutive-weak-sym-defs.test +++ test/elf/consecutive-weak-sym-defs.test @@ -12,7 +12,7 @@ # #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 gnu -target x86_64 %t1.o %t2.o -e=main -o %t1 +#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: Index: test/elf/defsym.objtxt =================================================================== --- test/elf/defsym.objtxt +++ test/elf/defsym.objtxt @@ -1,10 +1,10 @@ -# RUN: lld -flavor gnu -target x86_64 --defsym=foo=0x1234 -r %s \ +# 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 gnu -target x86_64 --defsym=foo=main -r %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 gnu -target x86_64 --defsym foo=main -r %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: Index: test/elf/discard-all.test =================================================================== --- test/elf/discard-all.test +++ test/elf/discard-all.test @@ -1,7 +1,7 @@ # Test that -x/--discard all works. # #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -e=main -x -o %t1 +#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 Index: test/elf/discard-locals.test =================================================================== --- test/elf/discard-locals.test +++ test/elf/discard-locals.test @@ -1,7 +1,7 @@ # Test that -X/--discard-locals works. # #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -shared -X -o %t1 +#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 Index: test/elf/dynamic-segorder.test =================================================================== --- test/elf/dynamic-segorder.test +++ test/elf/dynamic-segorder.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 Index: test/elf/dynamic-undef.test =================================================================== --- test/elf/dynamic-undef.test +++ test/elf/dynamic-undef.test @@ -4,28 +4,28 @@ # # 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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 \ +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 Index: test/elf/dynamic.test =================================================================== --- test/elf/dynamic.test +++ test/elf/dynamic.test @@ -1,8 +1,8 @@ # Checks functionality of dynamic executables -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \ +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 Index: test/elf/eh_frame_hdr.test =================================================================== --- test/elf/eh_frame_hdr.test +++ test/elf/eh_frame_hdr.test @@ -1,5 +1,5 @@ #RUN: yaml2obj -format=elf %s > %t -#RUN: lld -flavor gnu -target x86_64-linux %t --noinhibit-exec \ +#RUN: lld -flavor old-gnu -target x86_64-linux %t --noinhibit-exec \ #RUN: -o %t1 #RUN: llvm-objdump -s %t1 | FileCheck %s Index: test/elf/entry.objtxt =================================================================== --- test/elf/entry.objtxt +++ test/elf/entry.objtxt @@ -8,7 +8,7 @@ # } # -# RUN: lld -flavor gnu -target x86_64 %s -e _entrypoint --noinhibit-exec -o %t1 +# 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 Index: test/elf/export-dynamic.test =================================================================== --- test/elf/export-dynamic.test +++ test/elf/export-dynamic.test @@ -3,7 +3,7 @@ # its dynamic symbol table. #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 -E %t.o -e=main -o %t1 +#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@ Index: test/elf/filenotfound.test =================================================================== --- test/elf/filenotfound.test +++ test/elf/filenotfound.test @@ -1,3 +1,3 @@ # Check that a file that cannot be found results in a proper error message -RUN: not lld -flavor gnu -target x86_64 %p/Inputs/nofile.o 2>&1 | FileCheck %s +RUN: not lld -flavor old-gnu -target x86_64 %p/Inputs/nofile.o 2>&1 | FileCheck %s #CHECK: lld: cannot find file {{.+[\\/]}}nofile.o Index: test/elf/gnulinkonce/gnulinkonce-report-discarded-reference.test =================================================================== --- test/elf/gnulinkonce/gnulinkonce-report-discarded-reference.test +++ test/elf/gnulinkonce/gnulinkonce-report-discarded-reference.test @@ -15,9 +15,9 @@ # .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 gnu -target x86_64 %t.linkonce1a.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 gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \ +#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 Index: test/elf/gnulinkonce/gnulinkonce-report-undef.test =================================================================== --- test/elf/gnulinkonce/gnulinkonce-report-undef.test +++ test/elf/gnulinkonce/gnulinkonce-report-undef.test @@ -14,10 +14,10 @@ # .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 gnu -target x86_64 %t.linkonce1a.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 gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \ +#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 --- Index: test/elf/gnulinkonce/gnulinkonce.test =================================================================== --- test/elf/gnulinkonce/gnulinkonce.test +++ test/elf/gnulinkonce/gnulinkonce.test @@ -24,9 +24,9 @@ # .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 gnu -target x86_64 %t.linkonce1a.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 gnu -target x86_64 %t.linkonce1a.o %t.linkonce1b.o \ +#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 Index: test/elf/gotpcrel.test =================================================================== --- test/elf/gotpcrel.test +++ test/elf/gotpcrel.test @@ -1,5 +1,5 @@ # This test checks that GOTPCREL entries are being handled properly -RUN: lld -flavor gnu -target x86_64-linux -static -e main --output-filetype=yaml \ +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 Index: test/elf/gottpoff.test =================================================================== --- test/elf/gottpoff.test +++ test/elf/gottpoff.test @@ -3,7 +3,7 @@ # Reference: Ulrich Drepper's "ELF Handling for Thread-Local storage" #RUN: yaml2obj -format=elf %s -o %t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -o %t -e=main --defsym=__tls_get_addr=0 +#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 { Index: test/elf/group-cmd-search.test =================================================================== --- test/elf/group-cmd-search.test +++ test/elf/group-cmd-search.test @@ -31,7 +31,7 @@ This link should finish successfully. The --start-group/--end-group contains an existing absolute path to the file. -RUN: lld -flavor gnu -target x86_64 -shared \ +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 */ @@ -41,7 +41,7 @@ There is no shared.so-x86-64 file in the current directory. RUN: not \ -RUN: lld -flavor gnu -target x86_64 -shared \ +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 */ @@ -52,7 +52,7 @@ should not attempt to search it under the sysroot directory. RUN: not \ -RUN: lld -flavor gnu -target x86_64 -shared --sysroot=%p/Inputs \ +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 */ @@ -62,7 +62,7 @@ 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 gnu -target x86_64 -shared \ +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 */ @@ -73,7 +73,7 @@ a non-existing absolute path but there is no --sysroot argument. RUN: not \ -RUN: lld -flavor gnu -target x86_64 -shared \ +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 */ @@ -84,7 +84,7 @@ directory is provided. The linker has to search the absolute path under the sysroot directory. -RUN: lld -flavor gnu -target x86_64 -shared --sysroot=%p/Inputs \ +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 */ @@ -95,7 +95,7 @@ directory is provided. The linker has to search the absolute path under the sysroot directory. -RUN: lld -flavor gnu -target x86_64 -shared --sysroot=%p/Inputs/../Inputs \ +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 */ @@ -108,7 +108,7 @@ has a -l form and should be found by constructing a full library name lib.a and iterating through lib dirs. -RUN: lld -flavor gnu -target x86_64 -shared \ +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 */ @@ -120,13 +120,13 @@ But the linker script itself is not under the sysroot. RUN: not \ -RUN: lld -flavor gnu -target x86_64 -shared --sysroot=%p/Inputs \ +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 gnu -target x86_64 -shared \ +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 */ Index: test/elf/hexagon-quickdata-sort.test =================================================================== --- test/elf/hexagon-quickdata-sort.test +++ test/elf/hexagon-quickdata-sort.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon %p/Inputs/quickdata-sort-test.o.elf-hexagon -o %t1 --noinhibit-exec +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 Index: test/elf/hexagon-quickdata-sortcommon.test =================================================================== --- test/elf/hexagon-quickdata-sortcommon.test +++ test/elf/hexagon-quickdata-sortcommon.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon -o %t1 --noinhibit-exec \ +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 Index: test/elf/ifunc.test =================================================================== --- test/elf/ifunc.test +++ test/elf/ifunc.test @@ -2,20 +2,20 @@ # This test checks that IRELATIVE relocations are created for symbols that # need relocation even for static links. -RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -r \ +RUN: lld -flavor old-gnu -target x86_64-linux --output-filetype=yaml -r \ RUN: %p/Inputs/ifunc.x86-64 | FileCheck %s -RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml --noinhibit-exec \ +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 gnu -target x86_64-linux -o %t %p/Inputs/ifunc.x86-64 \ +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 gnu -target x86_64-linux --output-filetype=yaml \ +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 Index: test/elf/ignore-unknownoption.test =================================================================== --- test/elf/ignore-unknownoption.test +++ test/elf/ignore-unknownoption.test @@ -1,5 +1,5 @@ # This test tests that lld is able to print unknown options that are not # recognized. -RUN: not lld -flavor gnu -target x86_64 --gc-sections 2> %t +RUN: not lld -flavor old-gnu -target x86_64 --gc-sections 2> %t RUN: FileCheck %s < %t CHECK: warning: ignoring unknown argument: --gc-sections Index: test/elf/init_array-order.test =================================================================== --- test/elf/init_array-order.test +++ test/elf/init_array-order.test @@ -1,5 +1,5 @@ #RUN: yaml2obj -format=elf %s > %t -#RUN: lld -flavor gnu -target x86_64-linux %t --noinhibit-exec \ +#RUN: lld -flavor old-gnu -target x86_64-linux %t --noinhibit-exec \ #RUN: -o %t1.out #RUN: llvm-objdump -s %t1.out | FileCheck %s Index: test/elf/init_array.test =================================================================== --- test/elf/init_array.test +++ test/elf/init_array.test @@ -17,7 +17,7 @@ # specially for C++ global constructors). #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -o %t -e=main +#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]+]] Index: test/elf/initfini-options.test-1.test =================================================================== --- test/elf/initfini-options.test-1.test +++ test/elf/initfini-options.test-1.test @@ -2,7 +2,7 @@ # are undefined the linker does not emit DT_INIT/DT_FINI tags. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target x86_64 -shared --noinhibit-exec -o %t.so %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]+}} Index: test/elf/initfini-options.test-2.test =================================================================== --- test/elf/initfini-options.test-2.test +++ test/elf/initfini-options.test-2.test @@ -2,7 +2,7 @@ # DT_INIT/DT_FINI tags point to these symbols. # RUN: yaml2obj -format=elf %s > %t.o -# RUN: lld -flavor gnu -target x86_64 -shared -o %t.so %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) Index: test/elf/initfini-options.test-3.test =================================================================== --- test/elf/initfini-options.test-3.test +++ test/elf/initfini-options.test-3.test @@ -2,7 +2,7 @@ # 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 gnu -target x86_64 -shared -o %t.so %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 Index: test/elf/librarynotfound.test =================================================================== --- test/elf/librarynotfound.test +++ test/elf/librarynotfound.test @@ -1,5 +1,5 @@ # Tests the functionality of library not found -RUN: not lld -flavor gnu -lfn 2> %t1 +RUN: not lld -flavor old-gnu -lfn 2> %t1 RUN: FileCheck %s < %t1 CHECK: Unable to find library -lfn Index: test/elf/linkerscript/externs.objtxt =================================================================== --- test/elf/linkerscript/externs.objtxt +++ test/elf/linkerscript/externs.objtxt @@ -1,7 +1,7 @@ # Check symbols defined with the EXTERN command are added as undefined # symbols. -# RUN: lld -flavor gnu -target x86_64 -T %p/Inputs/externs.ls -r %s \ +# RUN: lld -flavor old-gnu -target x86_64 -T %p/Inputs/externs.ls -r %s \ # RUN: --output-filetype=yaml | FileCheck %s defined-atoms: Index: test/elf/linkerscript/filename-with-wildcards.test =================================================================== --- test/elf/linkerscript/filename-with-wildcards.test +++ test/elf/linkerscript/filename-with-wildcards.test @@ -19,7 +19,7 @@ RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/p3-wc.o RUN: cd %T -RUN: lld -flavor gnu -target x86_64 -T %s p1-wc.o p2-wc.o p3-wc.o \ +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 Index: test/elf/linkerscript/invalid-script-cli-1.test =================================================================== --- test/elf/linkerscript/invalid-script-cli-1.test +++ test/elf/linkerscript/invalid-script-cli-1.test @@ -1,10 +1,10 @@ # Check that the -T/--script options issue an error when passed # filenames for files that do not exist. -RUN: not lld -flavor gnu -target x86_64 -T idonotexist.ls 2> %t.err +RUN: not lld -flavor old-gnu -target x86_64 -T idonotexist.ls 2> %t.err RUN: FileCheck %s < %t.err -RUN: not lld -flavor gnu -target x86_64 --script=idonotexist.ls 2> %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 Index: test/elf/linkerscript/invalid-script-cli-2.test =================================================================== --- test/elf/linkerscript/invalid-script-cli-2.test +++ test/elf/linkerscript/invalid-script-cli-2.test @@ -1,6 +1,6 @@ # Check that linker script are *not* picked up with -lscript.ls. -RUN: not lld -flavor gnu -target x86_64 -L%p/Inputs/ -lvalid.ls 2> %t.err +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 Index: test/elf/linkerscript/invalid.test =================================================================== --- test/elf/linkerscript/invalid.test +++ test/elf/linkerscript/invalid.test @@ -1,5 +1,5 @@ # Check for errors from invalid linker scripts -RUN: not lld -flavor gnu -target x86_64 %p/Inputs/invalid.ls 2> %t.err +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 Index: test/elf/linkerscript/phdrs-all-none.test =================================================================== --- test/elf/linkerscript/phdrs-all-none.test +++ test/elf/linkerscript/phdrs-all-none.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-custom-none.test =================================================================== --- test/elf/linkerscript/phdrs-custom-none.test +++ test/elf/linkerscript/phdrs-custom-none.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-default.test =================================================================== --- test/elf/linkerscript/phdrs-default.test +++ test/elf/linkerscript/phdrs-default.test @@ -38,7 +38,7 @@ /* Test when no linker script passed. -RUN: lld -flavor gnu -target x86_64 %t.o -static -o %t1 +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 @@ -58,7 +58,7 @@ /* Test when linker script doesn't contain PHDRS and sections are not assigned to any segments. -RUN: lld -flavor gnu -target x86_64 -T %p/phdrs/sections-no-phdrs.script %t.o -static -o %t2 +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 */ @@ -66,7 +66,7 @@ /* Test when linker script contains empty PHDRS and sections are not assigned to any segments. -RUN: lld -flavor gnu -target x86_64 -T %p/phdrs/sections-empty-phdrs.script %t.o -static -o %t3 +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 */ @@ -76,7 +76,7 @@ or not assigned at all. NOTE: Segments with the name NONE are ignored in such a case. -RUN: lld -flavor gnu -target x86_64 -T %p/phdrs/sections-none-phdrs.script %t.o -static -o %t4 +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 */ Index: test/elf/linkerscript/phdrs-different.test =================================================================== --- test/elf/linkerscript/phdrs-different.test +++ test/elf/linkerscript/phdrs-different.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-extra-program.test =================================================================== --- test/elf/linkerscript/phdrs-extra-program.test +++ test/elf/linkerscript/phdrs-extra-program.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: not lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error +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 */ Index: test/elf/linkerscript/phdrs-flags.test =================================================================== --- test/elf/linkerscript/phdrs-flags.test +++ test/elf/linkerscript/phdrs-flags.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-has-program.test =================================================================== --- test/elf/linkerscript/phdrs-has-program.test +++ test/elf/linkerscript/phdrs-has-program.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-invalid.test =================================================================== --- test/elf/linkerscript/phdrs-invalid.test +++ test/elf/linkerscript/phdrs-invalid.test @@ -38,7 +38,7 @@ /* Test undefined header used when no PHDRS defined. -RUN: not lld -flavor gnu -target x86_64 -T %p/phdrs/undef-no-phdrs.script %t.o -static -o %t1 &> %t1-error +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 @@ -47,7 +47,7 @@ /* Test undefined header used when PHDRS is empty. -RUN: not lld -flavor gnu -target x86_64 -T %p/phdrs/undef-empty-phdrs.script %t.o -static -o %t2 &> %t2-error +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 @@ -56,7 +56,7 @@ /* Test undefined header used when PHDRS contains definitions. -RUN: not lld -flavor gnu -target x86_64 -T %p/phdrs/undef-id-phdrs.script %t.o -static -o %t3 &> %t3-error +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 Index: test/elf/linkerscript/phdrs-misplaced-program.test =================================================================== --- test/elf/linkerscript/phdrs-misplaced-program.test +++ test/elf/linkerscript/phdrs-misplaced-program.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: not lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error +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 */ Index: test/elf/linkerscript/phdrs-no-program.test =================================================================== --- test/elf/linkerscript/phdrs-no-program.test +++ test/elf/linkerscript/phdrs-no-program.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-one-none.test =================================================================== --- test/elf/linkerscript/phdrs-one-none.test +++ test/elf/linkerscript/phdrs-one-none.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-program-flags.test =================================================================== --- test/elf/linkerscript/phdrs-program-flags.test +++ test/elf/linkerscript/phdrs-program-flags.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-program-good-phdrs.test =================================================================== --- test/elf/linkerscript/phdrs-program-good-phdrs.test +++ test/elf/linkerscript/phdrs-program-good-phdrs.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-program-no-phdrs.test =================================================================== --- test/elf/linkerscript/phdrs-program-no-phdrs.test +++ test/elf/linkerscript/phdrs-program-no-phdrs.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: not lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error +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 */ Index: test/elf/linkerscript/phdrs-program-wrong-phdrs.test =================================================================== --- test/elf/linkerscript/phdrs-program-wrong-phdrs.test +++ test/elf/linkerscript/phdrs-program-wrong-phdrs.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: not lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 &> %t1-error +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 */ Index: test/elf/linkerscript/phdrs-same-flags.test =================================================================== --- test/elf/linkerscript/phdrs-same-flags.test +++ test/elf/linkerscript/phdrs-same-flags.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/phdrs-same.test =================================================================== --- test/elf/linkerscript/phdrs-same.test +++ test/elf/linkerscript/phdrs-same.test @@ -3,7 +3,7 @@ RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -T %s %t.o -static -o %t1 +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 */ Index: test/elf/linkerscript/sections-order.test =================================================================== --- test/elf/linkerscript/sections-order.test +++ test/elf/linkerscript/sections-order.test @@ -62,7 +62,7 @@ RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/prog3.o RUN: cd %T -RUN: lld -flavor gnu -target x86_64 -T %s prog1.o prog2.o prog3.o \ +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 Index: test/elf/linkerscript/sections-with-wildcards.test =================================================================== --- test/elf/linkerscript/sections-with-wildcards.test +++ test/elf/linkerscript/sections-with-wildcards.test @@ -63,7 +63,7 @@ RUN: yaml2obj -format=elf %p/Inputs/prog3.o.yaml -o=%T/p3.o RUN: cd %T -RUN: lld -flavor gnu -target x86_64 -T %s p1.o p2.o p3.o \ +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 Index: test/elf/linkerscript/symbol-definition-so.test =================================================================== --- test/elf/linkerscript/symbol-definition-so.test +++ test/elf/linkerscript/symbol-definition-so.test @@ -16,7 +16,7 @@ /* RUN: yaml2obj -format=elf %p/Inputs/simple-pic.o.yaml -o=%t.o -RUN: lld -flavor gnu -target x86_64 -shared -T %s %t.o -o %t.so +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 Index: test/elf/linkerscript/symbol-definition.test =================================================================== --- test/elf/linkerscript/symbol-definition.test +++ test/elf/linkerscript/symbol-definition.test @@ -46,7 +46,7 @@ RUN: mkdir -p %T RUN: yaml2obj -format=elf %p/Inputs/simple.o.yaml -o=%T/simple.o -RUN: lld -flavor gnu -target x86_64 -T %s %T/simple.o -static -o %t1 +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 Index: test/elf/linkerscript/valid-script-cli.objtxt =================================================================== --- test/elf/linkerscript/valid-script-cli.objtxt +++ test/elf/linkerscript/valid-script-cli.objtxt @@ -1,15 +1,15 @@ # Check that the linker script inputs are accepted properly. -# RUN: lld -flavor gnu -target x86_64 %p/Inputs/valid.ls -r %s \ +# RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/valid.ls -r %s \ # RUN: --output-filetype=yaml | FileCheck %s -# RUN: lld -flavor gnu -target x86_64 -T %p/Inputs/valid.ls -r %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 gnu -target x86_64 --script=%p/Inputs/valid.ls -r %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 gnu -target x86_64 -L%p/Inputs/ -l:valid.ls -r %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: Index: test/elf/loginputfiles.test =================================================================== --- test/elf/loginputfiles.test +++ test/elf/loginputfiles.test @@ -20,7 +20,7 @@ # } # gcc -c main.c fn.c fn1.c -RUN: lld -flavor gnu -target x86_64-linux \ +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 Index: test/elf/mergeatoms.test =================================================================== --- test/elf/mergeatoms.test +++ test/elf/mergeatoms.test @@ -1,5 +1,5 @@ # Tests that atoms are merged by testing it with --merge-strings option -RUN: lld -flavor gnu -target x86_64-linux --merge-strings -o %t1 \ +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 Index: test/elf/mergeconstants.test =================================================================== --- test/elf/mergeconstants.test +++ test/elf/mergeconstants.test @@ -1,5 +1,5 @@ # The test checks for mergeable strings that appear in the object file -RUN: lld -flavor gnu --merge-strings --output-filetype=yaml -target x86_64 \ +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 Index: test/elf/mergeglobalatoms.test =================================================================== --- test/elf/mergeglobalatoms.test +++ test/elf/mergeglobalatoms.test @@ -1,6 +1,6 @@ # ELF files can have mergeable strings which are global!, treat them as global # defined atoms -RUN: lld -flavor gnu --output-filetype=yaml %p/Inputs/globalconst.o.x86-64 \ +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 Index: test/elf/no-unique-section-names.test =================================================================== --- test/elf/no-unique-section-names.test +++ test/elf/no-unique-section-names.test @@ -1,6 +1,6 @@ # Check handling object files with non-unique named sections. -RUN: lld -flavor gnu -target x86_64-linux -shared -o %t \ +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 Index: test/elf/note.test =================================================================== --- test/elf/note.test +++ test/elf/note.test @@ -1,6 +1,6 @@ # Check that the linker is not ignoring input sections. # RUN: yaml2obj -format=elf %s > %t.obj -# RUN: lld -flavor gnu -target x86_64 %t.obj -o %t.exe --noinhibit-exec +# 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 { Index: test/elf/options/dynamic-linker.test =================================================================== --- test/elf/options/dynamic-linker.test +++ test/elf/options/dynamic-linker.test @@ -1,12 +1,12 @@ # This tests the functionality of specifying dynamic-linker argument in the # command line -RUN: lld -flavor gnu -target x86_64 --dynamic-linker="/xyz.so" \ +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 gnu -target x86_64 --dynamic-linker="" \ +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 gnu -target x86_64 -dynamic-linker /xyz.so \ +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 Index: test/elf/options/target-specific-args.test =================================================================== --- test/elf/options/target-specific-args.test +++ test/elf/options/target-specific-args.test @@ -1,5 +1,5 @@ # Test of target specific options -# RUN: lld -flavor gnu -target x86_64 --target1-rel \ +# 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 Index: test/elf/phdr.test =================================================================== --- test/elf/phdr.test +++ test/elf/phdr.test @@ -1,7 +1,7 @@ # This test checks emission for program header for ELF binaries -RUN: lld -flavor gnu -target i386-linux -o %t1 -e main %p/Inputs/phdr.i386 \ +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 gnu -target x86_64-linux -o %t1 -e _start %p/Inputs/relocs.x86-64 -static \ +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 Index: test/elf/quickdata.test =================================================================== --- test/elf/quickdata.test +++ test/elf/quickdata.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target hexagon --output-filetype=yaml %p/Inputs/quickdata-test.elf-hexagon \ +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 Index: test/elf/reloc.test =================================================================== --- test/elf/reloc.test +++ test/elf/reloc.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target i386 --merge-strings -r --output-filetype=yaml \ +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: Index: test/elf/responsefile.test =================================================================== --- test/elf/responsefile.test +++ test/elf/responsefile.test @@ -1,4 +1,4 @@ -# RUN: not lld -flavor gnu --abc @%p/Inputs/responsefile --baz >& %t.log +# RUN: not lld -flavor old-gnu --abc @%p/Inputs/responsefile --baz >& %t.log # RUN: FileCheck %s < %t.log CHECK: warning: ignoring unknown argument: --abc Index: test/elf/rodata.test =================================================================== --- test/elf/rodata.test +++ test/elf/rodata.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64-linux -o %t %p/Inputs/constdata.x86-64 \ +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 Index: test/elf/rosegment.test =================================================================== --- test/elf/rosegment.test +++ test/elf/rosegment.test @@ -1,8 +1,8 @@ # Tests that the option --rosegment produces an output file with a separate # segment created for read only data. -RUN: lld -flavor gnu -target x86_64 %p/Inputs/rodata.o -o %t1.elf \ +RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/rodata.o -o %t1.elf \ RUN: --noinhibit-exec -RUN: lld -flavor gnu -target x86_64 %p/Inputs/rodata.o --rosegment -o %t2.elf \ +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 Index: test/elf/sectionGroups/sectiongroup-new-members.test =================================================================== --- test/elf/sectionGroups/sectiongroup-new-members.test +++ test/elf/sectionGroups/sectiongroup-new-members.test @@ -17,9 +17,9 @@ #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 gnu -target x86_64 %t.group1a.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 gnu -target x86_64 %t.group1a.o %t.group1b.o \ +#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 Index: test/elf/sectionGroups/sectiongroup-simple.test =================================================================== --- test/elf/sectionGroups/sectiongroup-simple.test +++ test/elf/sectionGroups/sectiongroup-simple.test @@ -13,9 +13,9 @@ #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 gnu -target x86_64 %t.group1a.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 gnu -target x86_64 %t.group1a.o %t.group1b.o \ +#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 Index: test/elf/sectionGroups/sectiongroup-undef-member-other.test =================================================================== --- test/elf/sectionGroups/sectiongroup-undef-member-other.test +++ test/elf/sectionGroups/sectiongroup-undef-member-other.test @@ -16,7 +16,7 @@ # #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 gnu -target x86_64 %t.group1a.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 --- Index: test/elf/sectionGroups/sectiongroup-undef-member.test =================================================================== --- test/elf/sectionGroups/sectiongroup-undef-member.test +++ test/elf/sectionGroups/sectiongroup-undef-member.test @@ -15,7 +15,7 @@ # #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 gnu -target x86_64 %t.group1a.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 --- Index: test/elf/sectionGroups/sectiongroup-with-globalsymbols.test =================================================================== --- test/elf/sectionGroups/sectiongroup-with-globalsymbols.test +++ test/elf/sectionGroups/sectiongroup-with-globalsymbols.test @@ -28,9 +28,9 @@ #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 gnu -target x86_64 %t.comdat1.o %t.comdat2.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 gnu -target x86_64 %t.comdat1.o %t.comdat2.o \ +#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 Index: test/elf/sectionGroups/sectiongroup-with-undef-external-reference.test =================================================================== --- test/elf/sectionGroups/sectiongroup-with-undef-external-reference.test +++ test/elf/sectionGroups/sectiongroup-with-undef-external-reference.test @@ -21,9 +21,9 @@ #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 gnu -target x86_64 %t.comdat1.o %t.comdat2.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 gnu -target x86_64 %t.comdat1.o %t.comdat2.o \ +#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 Index: test/elf/sectionGroups/sectiongroup-with-undef-signature.test =================================================================== --- test/elf/sectionGroups/sectiongroup-with-undef-signature.test +++ test/elf/sectionGroups/sectiongroup-with-undef-signature.test @@ -18,9 +18,9 @@ #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 gnu -target x86_64 %t.comdat1.o %t.comdat2.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 gnu -target x86_64 %t.comdat1.o %t.comdat2.o \ +#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 Index: test/elf/sections.test =================================================================== --- test/elf/sections.test +++ test/elf/sections.test @@ -1,6 +1,6 @@ # This test checks if sections are created properly in the output that appear in # the input -RUN: lld -flavor gnu -target i386 -o %t1 %p/Inputs/section-test.i386 \ +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 Index: test/elf/sh_addralign.test =================================================================== --- test/elf/sh_addralign.test +++ test/elf/sh_addralign.test @@ -1,6 +1,6 @@ # Check handling of section alignment. # RUN: yaml2obj -format=elf %s > %t-obj -# RUN: lld -flavor gnu -target arm64 -o %t-exe %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 Index: test/elf/shndx.test =================================================================== --- test/elf/shndx.test +++ test/elf/shndx.test @@ -2,7 +2,7 @@ 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 gnu %p/Inputs/shndx.o-x86_64 -o %t.so -shared +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 Index: test/elf/soname.test =================================================================== --- test/elf/soname.test +++ test/elf/soname.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -shared -target i386 -e main %p/Inputs/writersyms.o \ +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 Index: test/elf/start-stop-sym.test =================================================================== --- test/elf/start-stop-sym.test +++ test/elf/start-stop-sym.test @@ -3,7 +3,7 @@ # RUN: yaml2obj -format=elf -docnum 1 %s > %t1.o # RUN: yaml2obj -format=elf -docnum 2 %s > %t2.o -# RUN: lld -flavor gnu -target mipsel -static -e T0 -o %t.exe %t1.o %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: Index: test/elf/strip-all.test =================================================================== --- test/elf/strip-all.test +++ test/elf/strip-all.test @@ -19,7 +19,7 @@ # } #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -e=main --strip-all -o %t1 +#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 Index: test/elf/stripped-empty.test =================================================================== --- test/elf/stripped-empty.test +++ test/elf/stripped-empty.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -shared -o test.so \ +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. Index: test/elf/symbols.test =================================================================== --- test/elf/symbols.test +++ test/elf/symbols.test @@ -14,9 +14,9 @@ #} # -RUN: lld -flavor gnu -target i386 -e main %p/Inputs/writersyms.o -o %t1 +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 gnu -shared -target i386 -e main %p/Inputs/writersyms.o -o %t1 +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 Index: test/elf/tls-tbss-size.test =================================================================== --- test/elf/tls-tbss-size.test +++ test/elf/tls-tbss-size.test @@ -22,7 +22,7 @@ #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 gnu -target x86_64-linux --noinhibit-exec -o %t.exe %t-t0.o %t-t1.o +#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 [ Index: test/elf/tls.test =================================================================== --- test/elf/tls.test +++ test/elf/tls.test @@ -1,10 +1,10 @@ # REQUIRES: x86 # This tests verifies that TLS variables have correct offsets -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static \ +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 gnu -target x86_64-linux %p/Inputs/tls.x86-64 -o %t \ +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. Index: test/elf/tlsAddr.test =================================================================== --- test/elf/tlsAddr.test +++ test/elf/tlsAddr.test @@ -1,6 +1,6 @@ # This tests verifies that TLS variables have correct offsets # and that TBSS doesn't occupy memory -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tlsAddr.x86-64 -static \ +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 Index: test/elf/undef-from-dso-to-main.test =================================================================== --- test/elf/undef-from-dso-to-main.test +++ test/elf/undef-from-dso-to-main.test @@ -2,9 +2,9 @@ # 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 gnu -target x86_64 -shared %t.o.so -o %T/libundef2.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 gnu -target x86_64 %t.o -L%T -lundef2 -o %t1 +#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 --- Index: test/elf/undef-from-main-dso.test =================================================================== --- test/elf/undef-from-main-dso.test +++ test/elf/undef-from-main-dso.test @@ -1,8 +1,8 @@ -RUN: lld -flavor gnu -target x86_64 -e main -o %t -L%p/Inputs \ +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 gnu -target x86_64 -e main -o %t -L%p/Inputs \ +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 Index: test/elf/weaksym.test =================================================================== --- test/elf/weaksym.test +++ test/elf/weaksym.test @@ -1,7 +1,7 @@ # Tests that a weak reference remains a weak reference, # even if a shared library defines the symbol weak as well. -RUN: lld -flavor gnu -target x86_64 -shared %p/Inputs/weaksym.o -L%p/Inputs -lweaksym -o %t1 +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 Index: test/elf/wrap.test =================================================================== --- test/elf/wrap.test +++ test/elf/wrap.test @@ -25,9 +25,9 @@ #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 gnu -target x86_64 %t.main.o %t.wrapfoo.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 gnu -target x86_64 %t.main.o %t.wrapfoo.o \ +#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 Index: test/elf/x86-64-dynamic-relocs.test =================================================================== --- test/elf/x86-64-dynamic-relocs.test +++ test/elf/x86-64-dynamic-relocs.test @@ -1,4 +1,4 @@ -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/relocs-dynamic.x86-64 \ +RUN: lld -flavor old-gnu -target x86_64-linux %p/Inputs/relocs-dynamic.x86-64 \ RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s path: Index: test/elf/x86-64-dynamic.test =================================================================== --- test/elf/x86-64-dynamic.test +++ test/elf/x86-64-dynamic.test @@ -1,10 +1,10 @@ # Checks that linking an object file with a shared object creates the necessary # PLT/GOT Entries -RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/use-shared.x86-64 \ +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 gnu -target x86_64-linux %p/Inputs/use-shared-32s.x86-64 \ +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 Index: test/elf/x86.test =================================================================== --- test/elf/x86.test +++ test/elf/x86.test @@ -18,7 +18,7 @@ # # Assembled with: "as --32" -RUN: lld -flavor gnu -target i386 -e back --output-filetype=yaml %p/Inputs/reloc-xb.x86 %p/Inputs/reloc-xt.x86 | FileCheck %s -check-prefix x86-yaml +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 Index: test/elf/x86_64-kinds.test =================================================================== --- test/elf/x86_64-kinds.test +++ test/elf/x86_64-kinds.test @@ -1,10 +1,10 @@ REQUIRES: x86 -RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \ +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 gnu -target x86_64-linux --output-filetype=yaml -e _start -static \ +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 Index: test/elf/zoption_dtflags.test =================================================================== --- test/elf/zoption_dtflags.test +++ test/elf/zoption_dtflags.test @@ -1,7 +1,7 @@ # Test that -z {origin, now} options work. # #RUN: yaml2obj -format=elf %s -o=%t.o -#RUN: lld -flavor gnu -target x86_64 %t.o -e=main -z now -z origin -o %t1 +#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