diff options
author | Rui Ueyama <ruiu@google.com> | 2015-04-27 17:18:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-04-27 17:18:04 +0000 |
commit | 035025c0da0bbcd987093187b23ccd284d0942d9 (patch) | |
tree | 6674439543f519f4c08b79d7cbd3c4c987a1e78e | |
parent | 912315811e42720b98b955bbdac7cebfde8dfbf8 (diff) | |
download | bcm5719-llvm-035025c0da0bbcd987093187b23ccd284d0942d9.tar.gz bcm5719-llvm-035025c0da0bbcd987093187b23ccd284d0942d9.zip |
Remove trailing whitespace characters.
llvm-svn: 235897
54 files changed, 385 insertions, 385 deletions
diff --git a/lld/test/Driver/def-lib-search.test b/lld/test/Driver/def-lib-search.test index 818cbfe6ad6..abd4d0204b0 100644 --- a/lld/test/Driver/def-lib-search.test +++ b/lld/test/Driver/def-lib-search.test @@ -1,5 +1,5 @@ # Check that search paths explicitly provided by the -L option -# are used in search before default paths. +# are used in search before default paths. RUN: not lld -flavor gnu -target x86_64 -t -ltest \ RUN: --sysroot=%p/Inputs -L%p/Inputs 2> %t diff --git a/lld/test/elf/AArch64/rel-adr_prel_lo21-overflow.test b/lld/test/elf/AArch64/rel-adr_prel_lo21-overflow.test index 35a1a9f883e..6e8ad6f4708 100644 --- a/lld/test/elf/AArch64/rel-adr_prel_lo21-overflow.test +++ b/lld/test/elf/AArch64/rel-adr_prel_lo21-overflow.test @@ -2,7 +2,7 @@ # RUN: yaml2obj -format=elf %s > %t-obj # RUN: not lld -flavor 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) +# CHECK: Relocation out of range in file {{.*}}: reference from _start+0 to data1+1048577 of type 274 (R_AARCH64_ADR_PREL_LO21) !ELF FileHeader: !FileHeader diff --git a/lld/test/elf/ARM/rel-group-relocs.test b/lld/test/elf/ARM/rel-group-relocs.test index 6c16b706e66..c54d7412ab3 100644 --- a/lld/test/elf/ARM/rel-group-relocs.test +++ b/lld/test/elf/ARM/rel-group-relocs.test @@ -1,6 +1,6 @@ # Check handling of group relocations (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G1_NC, # 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: -e plt_func %t-o.o -o %t @@ -25,12 +25,12 @@ # CHECK: 00401000 g .data 00000004 got_func --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_ARM -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -41,7 +41,7 @@ Sections: Link: .symtab Info: .text AddressAlign: 0x4 - Relocations: + Relocations: - Offset: 0 Symbol: got_func Type: R_ARM_ALU_PC_G0_NC @@ -58,9 +58,9 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x4 Content: 74004000 -Symbols: - Local: - Global: +Symbols: + Local: + Global: - Name: plt_func Type: STT_FUNC Section: .text diff --git a/lld/test/elf/ARM/rel-v4bx.test b/lld/test/elf/ARM/rel-v4bx.test index 348a6bdcd90..d0dd493191e 100644 --- a/lld/test/elf/ARM/rel-v4bx.test +++ b/lld/test/elf/ARM/rel-v4bx.test @@ -11,16 +11,16 @@ # The following instruction creates a RM_ARM_V4BX relocation that # allows the linker to replace the bx instruction to a ARMv4 # compatible one. Currently lld does not change it. -# CHECK: 400114: 1e ff 2f 01 bxeq lr +# CHECK: 400114: 1e ff 2f 01 bxeq lr --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_ARM Flags: [ EF_ARM_EABI_VER5 ] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -32,7 +32,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000004 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000000 Symbol: '' Type: R_ARM_V4BX @@ -50,8 +50,8 @@ Sections: Type: SHT_ARM_ATTRIBUTES AddressAlign: 0x0000000000000001 Content: 4115000000616561626900010B000000060208010901 -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -66,7 +66,7 @@ Symbols: - Name: .ARM.attributes Type: STT_SECTION Section: .ARM.attributes - Global: + Global: - Name: main Type: STT_FUNC Section: .text diff --git a/lld/test/elf/ARM/weak-branch.test b/lld/test/elf/ARM/weak-branch.test index 6349d92bc24..2f86fd5e181 100644 --- a/lld/test/elf/ARM/weak-branch.test +++ b/lld/test/elf/ARM/weak-branch.test @@ -49,13 +49,13 @@ # jump11.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_ARM Flags: [ EF_ARM_EABI_VER5 ] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -66,7 +66,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000004 Info: .text - Relocations: + Relocations: - Offset: 0x000000000000012A Symbol: __gnu_h2f_internal Type: R_ARM_THM_JUMP11 @@ -83,8 +83,8 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x0000000000000001 Content: '' -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -101,7 +101,7 @@ Symbols: Section: .text Value: 0x0000000000000001 Size: 0x00000000000000C2 - Global: + Global: - Name: __gnu_f2h_ieee Type: STT_FUNC Section: .text @@ -130,13 +130,13 @@ Symbols: - Name: __gnu_h2f_internal # thm-call.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_ARM Flags: [ EF_ARM_EABI_VER5 ] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -147,21 +147,21 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000004 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000014 Symbol: my_fn Type: R_ARM_THM_CALL - Offset: 0x0000000000000018 Symbol: weak_fn Type: R_ARM_THM_CALL -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text - Name: '$t' Section: .text - Global: + Global: - Name: my_fn Type: STT_FUNC Section: .text @@ -172,17 +172,17 @@ Symbols: Section: .text Value: 0x0000000000000011 Size: 0x0000000000000012 - Weak: + Weak: - Name: weak_fn # arm-call.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL Machine: EM_ARM Flags: [ EF_ARM_EABI_VER5 ] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -193,21 +193,21 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000004 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000024 Symbol: my_fn Type: R_ARM_CALL - Offset: 0x0000000000000028 Symbol: weak_fn Type: R_ARM_CALL -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text - Name: '$a' Section: .text - Global: + Global: - Name: my_fn Type: STT_FUNC Section: .text @@ -217,6 +217,6 @@ Symbols: Section: .text Value: 0x000000000000001C Size: 0x000000000000001C - Weak: + Weak: - Name: weak_fn ... diff --git a/lld/test/elf/Inputs/consecutive-weak-defs.o.yaml b/lld/test/elf/Inputs/consecutive-weak-defs.o.yaml index 144c2426bae..e668dbe5688 100644 --- a/lld/test/elf/Inputs/consecutive-weak-defs.o.yaml +++ b/lld/test/elf/Inputs/consecutive-weak-defs.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000005 Symbol: my_weak_func Type: R_X86_64_PC32 @@ -31,8 +31,8 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x0000000000000004 Content: '' -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -42,12 +42,12 @@ Symbols: - Name: .bss Type: STT_SECTION Section: .bss - Global: + Global: - Name: my_func Type: STT_FUNC Section: .text Size: 0x000000000000000B - Weak: + Weak: - Name: my_weak_func Type: STT_FUNC Section: .text diff --git a/lld/test/elf/Inputs/main-with-global-def.o.yaml b/lld/test/elf/Inputs/main-with-global-def.o.yaml index 55029614e1e..cfa27ab223e 100644 --- a/lld/test/elf/Inputs/main-with-global-def.o.yaml +++ b/lld/test/elf/Inputs/main-with-global-def.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x000000000000001D Symbol: my_func Type: R_X86_64_PC32 @@ -31,8 +31,8 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x0000000000000004 Content: '' -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -42,7 +42,7 @@ Symbols: - Name: .bss Type: STT_SECTION Section: .bss - Global: + Global: - Name: main Type: STT_FUNC Section: .text diff --git a/lld/test/elf/Mips/rel-eh-01.test b/lld/test/elf/Mips/rel-eh-01.test index 55a0813458e..ce76158f575 100644 --- a/lld/test/elf/Mips/rel-eh-01.test +++ b/lld/test/elf/Mips/rel-eh-01.test @@ -49,7 +49,7 @@ # so.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL @@ -57,15 +57,15 @@ FileHeader: Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [SHF_ALLOC, SHF_EXECINSTR] AddressAlign: 16 Size: 4 -Symbols: - Global: +Symbols: + Global: - Name: E1 Type: STT_FUNC Section: .text @@ -74,7 +74,7 @@ Symbols: # t1.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL @@ -82,15 +82,15 @@ FileHeader: Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [SHF_ALLOC, SHF_EXECINSTR] AddressAlign: 16 Size: 4 -Symbols: - Global: +Symbols: + Global: - Name: T1 Type: STT_FUNC Section: .text @@ -99,7 +99,7 @@ Symbols: # t2.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL @@ -107,7 +107,7 @@ FileHeader: Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [SHF_ALLOC, SHF_EXECINSTR] @@ -131,7 +131,7 @@ Sections: Link: .symtab AddressAlign: 4 Info: .gnu_extab - Relocations: + Relocations: - Offset: 1 Symbol: T1 Type: R_MIPS_EH @@ -153,7 +153,7 @@ Sections: Link: .symtab AddressAlign: 4 Info: .eh_frame_entry - Relocations: + Relocations: - Offset: 0 Symbol: .text Type: R_MIPS_PC32 @@ -161,8 +161,8 @@ Sections: Symbol: .gnu_extab Type: R_MIPS_PC32 -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -175,7 +175,7 @@ Symbols: Value: 0 Size: 4 - Global: + Global: - Name: T0 Type: STT_FUNC Section: .text diff --git a/lld/test/elf/Mips/rel-eh-03.test b/lld/test/elf/Mips/rel-eh-03.test index 019cc7924f4..a8927185061 100644 --- a/lld/test/elf/Mips/rel-eh-03.test +++ b/lld/test/elf/Mips/rel-eh-03.test @@ -20,7 +20,7 @@ # t1.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL @@ -28,15 +28,15 @@ FileHeader: Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [SHF_ALLOC, SHF_EXECINSTR] AddressAlign: 16 Size: 4 -Symbols: - Global: +Symbols: + Global: - Name: T1 Type: STT_FUNC Section: .text @@ -45,7 +45,7 @@ Symbols: # t2.o --- -FileHeader: +FileHeader: Class: ELFCLASS32 Data: ELFDATA2LSB Type: ET_REL @@ -53,7 +53,7 @@ FileHeader: Flags: [EF_MIPS_NOREORDER, EF_MIPS_CPIC, EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2] -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [SHF_ALLOC, SHF_EXECINSTR] @@ -77,7 +77,7 @@ Sections: Link: .symtab AddressAlign: 4 Info: .gnu_extab - Relocations: + Relocations: - Offset: 1 Symbol: T1 Type: R_MIPS_EH @@ -96,7 +96,7 @@ Sections: Link: .symtab AddressAlign: 4 Info: .eh_frame_entry - Relocations: + Relocations: - Offset: 0 Symbol: .text Type: R_MIPS_PC32 @@ -104,8 +104,8 @@ Sections: Symbol: .gnu_extab Type: R_MIPS_PC32 -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -118,7 +118,7 @@ Symbols: Value: 0 Size: 4 - Global: + Global: - Name: T0 Type: STT_FUNC Section: .text diff --git a/lld/test/elf/linkerscript/Inputs/prog1.o.yaml b/lld/test/elf/linkerscript/Inputs/prog1.o.yaml index ded590e395d..9651abff1d1 100644 --- a/lld/test/elf/linkerscript/Inputs/prog1.o.yaml +++ b/lld/test/elf/linkerscript/Inputs/prog1.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000007 Symbol: prog2 Type: R_X86_64_PC32 @@ -54,12 +54,12 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .eh_frame - Relocations: + Relocations: - Offset: 0x0000000000000020 Symbol: .text Type: R_X86_64_PC32 -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -78,7 +78,7 @@ Symbols: - Name: .eh_frame Type: STT_SECTION Section: .eh_frame - Global: + Global: - Name: main Type: STT_FUNC Section: .text diff --git a/lld/test/elf/linkerscript/Inputs/prog2.o.yaml b/lld/test/elf/linkerscript/Inputs/prog2.o.yaml index f88b0ddc96b..7d8d7febb68 100644 --- a/lld/test/elf/linkerscript/Inputs/prog2.o.yaml +++ b/lld/test/elf/linkerscript/Inputs/prog2.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000006 Symbol: .rodata.str1.1 Type: R_X86_64_64 @@ -54,12 +54,12 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .eh_frame - Relocations: + Relocations: - Offset: 0x0000000000000020 Symbol: .text Type: R_X86_64_PC32 -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -81,7 +81,7 @@ Symbols: - Name: .eh_frame Type: STT_SECTION Section: .eh_frame - Global: + Global: - Name: prog2 Type: STT_FUNC Section: .text diff --git a/lld/test/elf/linkerscript/Inputs/prog3.o.yaml b/lld/test/elf/linkerscript/Inputs/prog3.o.yaml index 76aa22267f0..4765c722b1e 100644 --- a/lld/test/elf/linkerscript/Inputs/prog3.o.yaml +++ b/lld/test/elf/linkerscript/Inputs/prog3.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x0000000000000009 Symbol: main Type: R_X86_64_PC32 @@ -31,8 +31,8 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x0000000000000004 Content: '' -Symbols: - Local: +Symbols: + Local: - Name: .text Type: STT_SECTION Section: .text @@ -42,7 +42,7 @@ Symbols: - Name: .bss Type: STT_SECTION Section: .bss - Global: + Global: - Name: _start Section: .text Value: 0x0000000000000008 diff --git a/lld/test/elf/linkerscript/Inputs/simple.o.yaml b/lld/test/elf/linkerscript/Inputs/simple.o.yaml index 91d4e1b5778..1a5fc2ab9cc 100644 --- a/lld/test/elf/linkerscript/Inputs/simple.o.yaml +++ b/lld/test/elf/linkerscript/Inputs/simple.o.yaml @@ -1,11 +1,11 @@ --- -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 -Sections: +Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] @@ -16,7 +16,7 @@ Sections: Link: .symtab AddressAlign: 0x0000000000000008 Info: .text - Relocations: + Relocations: - Offset: 0x000000000000000F Symbol: .data Type: R_X86_64_32S @@ -30,8 +30,8 @@ Sections: Flags: [ SHF_WRITE, SHF_ALLOC ] AddressAlign: 0x0000000000000004 Content: '' -Symbols: - Local: +Symbols: + Local: - Name: main Section: .text - Name: msg @@ -45,7 +45,7 @@ Symbols: - Name: .bss Type: STT_SECTION Section: .bss - Global: + Global: - Name: _start Section: .text Value: 0x000000000000001D diff --git a/lld/test/mach-o/Inputs/arm-interworking.yaml b/lld/test/mach-o/Inputs/arm-interworking.yaml index b2165a92814..d78a2997fe3 100644 --- a/lld/test/mach-o/Inputs/arm-interworking.yaml +++ b/lld/test/mach-o/Inputs/arm-interworking.yaml @@ -2,17 +2,17 @@ arch: armv7 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0xFE, 0xFF, 0xFF, 0xEB, 0x02, 0x00, 0x00, 0xFA, - 0xFC, 0xFF, 0xFF, 0xEB, 0xFB, 0xFF, 0xFF, 0xFA, + content: [ 0xFE, 0xFF, 0xFF, 0xEB, 0x02, 0x00, 0x00, 0xFA, + 0xFC, 0xFF, 0xFF, 0xEB, 0xFB, 0xFF, 0xFF, 0xFA, 0x1E, 0xFF, 0x2F, 0xE1, 0x1E, 0xFF, 0x2F, 0xE1 ] - relocations: + relocations: - offset: 0x0000000C type: ARM_RELOC_BR24 length: 2 @@ -43,7 +43,7 @@ sections: attributes: [ ] address: 0x0000000000000018 content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000004 type: ARM_RELOC_VANILLA length: 2 @@ -56,12 +56,12 @@ sections: pc-rel: false extern: true symbol: 3 -local-symbols: +local-symbols: - name: _d2 type: N_SECT sect: 2 value: 0x0000000000000018 -global-symbols: +global-symbols: - name: _a1 type: N_SECT scope: [ N_EXT ] @@ -72,7 +72,7 @@ global-symbols: scope: [ N_EXT ] sect: 1 value: 0x0000000000000014 -undefined-symbols: +undefined-symbols: - name: _t1 type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/Inputs/got-order.yaml b/lld/test/mach-o/Inputs/got-order.yaml index 6059a452834..d256e9d7d46 100644 --- a/lld/test/mach-o/Inputs/got-order.yaml +++ b/lld/test/mach-o/Inputs/got-order.yaml @@ -2,18 +2,18 @@ arch: x86_64 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x0D, 0x00, - 0x00, 0x00, 0x00, 0x48, 0x8B, 0x05, 0x00, 0x00, - 0x00, 0x00, 0x8B, 0x00, 0x03, 0x01, 0x48, 0x8B, - 0x0D, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x5D, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x0D, 0x00, + 0x00, 0x00, 0x00, 0x48, 0x8B, 0x05, 0x00, 0x00, + 0x00, 0x00, 0x8B, 0x00, 0x03, 0x01, 0x48, 0x8B, + 0x0D, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x5D, 0xC3 ] - relocations: + relocations: - offset: 0x00000019 type: X86_64_RELOC_GOT_LOAD length: 2 @@ -32,13 +32,13 @@ sections: pc-rel: true extern: true symbol: 3 -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] sect: 1 value: 0x0000000000000000 -undefined-symbols: +undefined-symbols: - name: _bar type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/arm-interworking-movw.yaml b/lld/test/mach-o/arm-interworking-movw.yaml index 59d2f0ddd3d..7e4a2e00ae6 100644 --- a/lld/test/mach-o/arm-interworking-movw.yaml +++ b/lld/test/mach-o/arm-interworking-movw.yaml @@ -20,16 +20,16 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0x40, 0xF2, 0x25, 0x00, 0xC0, 0xF2, 0x00, 0x00, - 0x40, 0xF2, 0x01, 0x01, 0xC0, 0xF2, 0x00, 0x01, - 0x40, 0xF2, 0x4E, 0x02, 0xC0, 0xF2, 0x00, 0x02, - 0x40, 0xF2, 0x2A, 0x03, 0xC0, 0xF2, 0x00, 0x03, - 0x78, 0x44, 0x70, 0x47, 0x70, 0x47, 0x25, 0x00, - 0x00, 0xE3, 0x00, 0x00, 0x40, 0xE3, 0xD7, 0x1F, - 0x0F, 0xE3, 0xFF, 0x1F, 0x4F, 0xE3, 0x4E, 0x20, - 0x00, 0xE3, 0x00, 0x20, 0x40, 0xE3, 0x00, 0x30, - 0x00, 0xE3, 0x00, 0x30, 0x40, 0xE3, 0x0F, 0x00, - 0x80, 0xE0, 0x1E, 0xFF, 0x2F, 0xE1, 0x1E, 0xFF, + content: [ 0x40, 0xF2, 0x25, 0x00, 0xC0, 0xF2, 0x00, 0x00, + 0x40, 0xF2, 0x01, 0x01, 0xC0, 0xF2, 0x00, 0x01, + 0x40, 0xF2, 0x4E, 0x02, 0xC0, 0xF2, 0x00, 0x02, + 0x40, 0xF2, 0x2A, 0x03, 0xC0, 0xF2, 0x00, 0x03, + 0x78, 0x44, 0x70, 0x47, 0x70, 0x47, 0x25, 0x00, + 0x00, 0xE3, 0x00, 0x00, 0x40, 0xE3, 0xD7, 0x1F, + 0x0F, 0xE3, 0xFF, 0x1F, 0x4F, 0xE3, 0x4E, 0x20, + 0x00, 0xE3, 0x00, 0x20, 0x40, 0xE3, 0x00, 0x30, + 0x00, 0xE3, 0x00, 0x30, 0x40, 0xE3, 0x0F, 0x00, + 0x80, 0xE0, 0x1E, 0xFF, 0x2F, 0xE1, 0x1E, 0xFF, 0x2F, 0xE1 ] relocations: - offset: 0x00000042 diff --git a/lld/test/mach-o/arm-interworking.yaml b/lld/test/mach-o/arm-interworking.yaml index c2883024b5b..fc51edfedc1 100644 --- a/lld/test/mach-o/arm-interworking.yaml +++ b/lld/test/mach-o/arm-interworking.yaml @@ -2,7 +2,7 @@ # RUN: %p/Inputs/arm-interworking.yaml -o %t | FileCheck %s \ # RUN: && lld -flavor darwin -arch armv7 -dylib -print_atoms \ # RUN: %p/Inputs/libSystem.yaml %t -o %t2 | FileCheck %s \ -# RUN: && macho-dump --dump-section-data %t2 | FileCheck -check-prefix=CODE %s +# RUN: && macho-dump --dump-section-data %t2 | FileCheck -check-prefix=CODE %s # # Test thumb and arm branches round trip through -r. # Test bl/blx instructions are fixed up properly. @@ -13,20 +13,20 @@ arch: armv7 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0xFF, 0xF7, 0xFE, 0xFF, 0xC0, 0x46, 0xFF, 0xF7, - 0xFC, 0xEF, 0xC0, 0x46, 0xFF, 0xF7, 0xF8, 0xEF, - 0xFF, 0xF7, 0xF6, 0xFF, 0xC0, 0x46, 0xFF, 0xF7, - 0xF3, 0xFF, 0xC0, 0x46, 0x00, 0xF0, 0x06, 0xE8, - 0xC0, 0x46, 0x00, 0xF0, 0x03, 0xF8, 0x00, 0xF0, + content: [ 0xFF, 0xF7, 0xFE, 0xFF, 0xC0, 0x46, 0xFF, 0xF7, + 0xFC, 0xEF, 0xC0, 0x46, 0xFF, 0xF7, 0xF8, 0xEF, + 0xFF, 0xF7, 0xF6, 0xFF, 0xC0, 0x46, 0xFF, 0xF7, + 0xF3, 0xFF, 0xC0, 0x46, 0x00, 0xF0, 0x06, 0xE8, + 0xC0, 0x46, 0x00, 0xF0, 0x03, 0xF8, 0x00, 0xF0, 0x02, 0xF8, 0x70, 0x47, 0x70, 0x47, 0x70, 0x47 ] - relocations: + relocations: - offset: 0x00000026 type: ARM_THUMB_RELOC_BR22 length: 2 @@ -81,7 +81,7 @@ sections: attributes: [ ] address: 0x0000000000000030 content: [ 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000004 type: ARM_RELOC_VANILLA length: 2 @@ -94,7 +94,7 @@ sections: pc-rel: false extern: false symbol: 1 -local-symbols: +local-symbols: - name: _t3 type: N_SECT sect: 1 @@ -104,7 +104,7 @@ local-symbols: type: N_SECT sect: 2 value: 0x0000000000000030 -global-symbols: +global-symbols: - name: _t1 type: N_SECT scope: [ N_EXT ] @@ -117,7 +117,7 @@ global-symbols: sect: 1 desc: [ N_ARM_THUMB_DEF ] value: 0x000000000000002C -undefined-symbols: +undefined-symbols: - name: _a1 type: N_UNDF scope: [ N_EXT ] @@ -130,10 +130,10 @@ undefined-symbols: ... -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - name: _d1 # CHECK: type: data -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer32 # CHECK: offset: 0 # CHECK: target: _t2 @@ -142,7 +142,7 @@ undefined-symbols: # CHECK: target: _a1 # CHECK: - name: _d2 # CHECK: type: data -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer32 # CHECK: offset: 0 # CHECK: target: _t1 @@ -151,7 +151,7 @@ undefined-symbols: # CHECK: target: _a1 # CHECK: - name: _t1 # CHECK: scope: global -# CHECK: references: +# CHECK: references: # CHECK: - kind: modeThumbCode # CHECK: offset: 0 # CHECK: target: _t1 @@ -182,19 +182,19 @@ undefined-symbols: # CHECK: - name: _t2 # CHECK: scope: global # CHECK: content: [ 70, 47 ] -# CHECK: references: +# CHECK: references: # CHECK: - kind: modeThumbCode # CHECK: offset: 0 # CHECK: target: _t2 # CHECK: - name: _t3 # CHECK: content: [ 70, 47 ] -# CHECK: references: +# CHECK: references: # CHECK: - kind: modeThumbCode # CHECK: offset: 0 # CHECK: target: _t3 # CHECK: - name: _a1 # CHECK: scope: global -# CHECK: references: +# CHECK: references: # CHECK: - kind: arm_bl24 # CHECK: offset: 0 # CHECK: target: _a1 @@ -243,18 +243,18 @@ undefined-symbols: # nop # blx _t2 # bx lr -# +# # .globl _t2 # .thumb_func _t2 #_t2: # bx lr -# +# # .data #_d1: .long _t2 # .long _a1 - - + + # Input file two: # # .align 2 @@ -266,15 +266,15 @@ undefined-symbols: # bl _t1 # blx _t2 # bx lr -# +# # .globl _a2 #_a2: # bx lr -# +# # .data #_d2: .long _t1 # .long _a1 -
\ No newline at end of file + diff --git a/lld/test/mach-o/arm-subsections-via-symbols.yaml b/lld/test/mach-o/arm-subsections-via-symbols.yaml index b704568f37b..23c2847e6c7 100644 --- a/lld/test/mach-o/arm-subsections-via-symbols.yaml +++ b/lld/test/mach-o/arm-subsections-via-symbols.yaml @@ -18,8 +18,8 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0x04, 0x10, 0x9F, 0xE5, 0x04, 0x20, 0x9F, 0xE5, - 0x1E, 0xFF, 0x2F, 0xE1, 0x78, 0x56, 0x34, 0x12, + content: [ 0x04, 0x10, 0x9F, 0xE5, 0x04, 0x20, 0x9F, 0xE5, + 0x1E, 0xFF, 0x2F, 0xE1, 0x78, 0x56, 0x34, 0x12, 0x21, 0x43, 0x65, 0x87 ] local-symbols: - name: constants1 diff --git a/lld/test/mach-o/data-only-dylib.yaml b/lld/test/mach-o/data-only-dylib.yaml index c285066ad77..8d214304745 100644 --- a/lld/test/mach-o/data-only-dylib.yaml +++ b/lld/test/mach-o/data-only-dylib.yaml @@ -16,7 +16,7 @@ sections: alignment: 2 address: 0x0000000000000000 content: [ 0x00, 0x00, 0x00, 0x00 ] -global-symbols: +global-symbols: - name: _myData type: N_SECT scope: [ N_EXT ] diff --git a/lld/test/mach-o/demangle.yaml b/lld/test/mach-o/demangle.yaml index 64054580847..f8a76cddd29 100644 --- a/lld/test/mach-o/demangle.yaml +++ b/lld/test/mach-o/demangle.yaml @@ -21,7 +21,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0xE8, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, + content: [ 0xE8, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00 ] relocations: - offset: 0x0000000B diff --git a/lld/test/mach-o/exported_symbols_list-dylib.yaml b/lld/test/mach-o/exported_symbols_list-dylib.yaml index 71121d7400f..f52614038ca 100644 --- a/lld/test/mach-o/exported_symbols_list-dylib.yaml +++ b/lld/test/mach-o/exported_symbols_list-dylib.yaml @@ -31,7 +31,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3 ] - segment: __DATA section: __data diff --git a/lld/test/mach-o/exported_symbols_list-obj.yaml b/lld/test/mach-o/exported_symbols_list-obj.yaml index 735162dfedc..31b325c7387 100644 --- a/lld/test/mach-o/exported_symbols_list-obj.yaml +++ b/lld/test/mach-o/exported_symbols_list-obj.yaml @@ -21,7 +21,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3 ] - segment: __DATA section: __data diff --git a/lld/test/mach-o/exported_symbols_list-undef.yaml b/lld/test/mach-o/exported_symbols_list-undef.yaml index c6a8d8f4022..1e2fc821c36 100644 --- a/lld/test/mach-o/exported_symbols_list-undef.yaml +++ b/lld/test/mach-o/exported_symbols_list-undef.yaml @@ -14,7 +14,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3 ] - segment: __DATA section: __data diff --git a/lld/test/mach-o/fat-archive.yaml b/lld/test/mach-o/fat-archive.yaml index 5db7fd96ff0..86828d6a12b 100644 --- a/lld/test/mach-o/fat-archive.yaml +++ b/lld/test/mach-o/fat-archive.yaml @@ -16,11 +16,11 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, - 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, - 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, + 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, + 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0x48, 0x83, 0xC4, 0x10, 0x5D, 0xC3 ] - relocations: + relocations: - offset: 0x00000012 type: X86_64_RELOC_BRANCH length: 2 diff --git a/lld/test/mach-o/force_load-dylib.yaml b/lld/test/mach-o/force_load-dylib.yaml index 0b932e15988..c8f559bedd7 100644 --- a/lld/test/mach-o/force_load-dylib.yaml +++ b/lld/test/mach-o/force_load-dylib.yaml @@ -1,7 +1,7 @@ # RUN: lld -flavor darwin -arch x86_64 -dylib %p/Inputs/bar.yaml \ # RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/libSystem.yaml -o %t1.dylib # RUN: lld -flavor darwin -arch x86_64 -dylib %s -all_load %t1.dylib \ -# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t # RUN: llvm-nm -m %t | FileCheck %s # # @@ -18,7 +18,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, 0x00, 0x00, 0x00, 0x00 ] relocations: - offset: 0x00000008 diff --git a/lld/test/mach-o/force_load-x86_64.yaml b/lld/test/mach-o/force_load-x86_64.yaml index 35905effd2c..1be216ca3a7 100644 --- a/lld/test/mach-o/force_load-x86_64.yaml +++ b/lld/test/mach-o/force_load-x86_64.yaml @@ -15,14 +15,14 @@ file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 content: [ 0xC3 ] -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] diff --git a/lld/test/mach-o/framework-user-paths.yaml b/lld/test/mach-o/framework-user-paths.yaml index f6ac64779a7..80d6e3b5868 100644 --- a/lld/test/mach-o/framework-user-paths.yaml +++ b/lld/test/mach-o/framework-user-paths.yaml @@ -1,5 +1,5 @@ # -# Test framework and SDK search paths. +# Test framework and SDK search paths. # myFrameworks is not an absolute path, so it should not by found in SDK # /Custom/Frameworks should be found in SDK # /opt/Frameworks should not be found in SDK diff --git a/lld/test/mach-o/got-order.yaml b/lld/test/mach-o/got-order.yaml index fcaa61cbc23..b69877ecdc3 100644 --- a/lld/test/mach-o/got-order.yaml +++ b/lld/test/mach-o/got-order.yaml @@ -9,18 +9,18 @@ arch: x86_64 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x0D, 0x00, - 0x00, 0x00, 0x00, 0x48, 0x8B, 0x05, 0x00, 0x00, - 0x00, 0x00, 0x8B, 0x00, 0x03, 0x01, 0x48, 0x8B, - 0x0D, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x5D, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x0D, 0x00, + 0x00, 0x00, 0x00, 0x48, 0x8B, 0x05, 0x00, 0x00, + 0x00, 0x00, 0x8B, 0x00, 0x03, 0x01, 0x48, 0x8B, + 0x0D, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x5D, 0xC3 ] - relocations: + relocations: - offset: 0x00000019 type: X86_64_RELOC_GOT_LOAD length: 2 @@ -39,13 +39,13 @@ sections: pc-rel: true extern: true symbol: 3 -global-symbols: +global-symbols: - name: _func type: N_SECT scope: [ N_EXT ] sect: 1 value: 0x0000000000000000 -undefined-symbols: +undefined-symbols: - name: _aaa type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/hello-world-armv7.yaml b/lld/test/mach-o/hello-world-armv7.yaml index d53d37638dc..c260a7bc5a1 100644 --- a/lld/test/mach-o/hello-world-armv7.yaml +++ b/lld/test/mach-o/hello-world-armv7.yaml @@ -10,17 +10,17 @@ file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0x80, 0xB5, 0x40, 0xF2, 0x06, 0x00, 0x6F, 0x46, - 0xC0, 0xF2, 0x00, 0x00, 0x78, 0x44, 0xFF, 0xF7, + content: [ 0x80, 0xB5, 0x40, 0xF2, 0x06, 0x00, 0x6F, 0x46, + 0xC0, 0xF2, 0x00, 0x00, 0x78, 0x44, 0xFF, 0xF7, 0xF8, 0xEF, 0x00, 0x20, 0x80, 0xBD ] - relocations: + relocations: - offset: 0x0000000E type: ARM_THUMB_RELOC_BR22 length: 2 @@ -57,14 +57,14 @@ sections: attributes: [ ] address: 0x0000000000000016 content: [ 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x0A, 0x00 ] -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] sect: 1 desc: [ N_ARM_THUMB_DEF ] value: 0x0000000000000000 -undefined-symbols: +undefined-symbols: - name: _printf type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/hello-world-x86.yaml b/lld/test/mach-o/hello-world-x86.yaml index 27f3511addc..779b6811e08 100644 --- a/lld/test/mach-o/hello-world-x86.yaml +++ b/lld/test/mach-o/hello-world-x86.yaml @@ -14,10 +14,10 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, 0x00, - 0x00, 0x00, 0x00, 0x58, 0x8D, 0x80, 0x16, 0x00, - 0x00, 0x00, 0x89, 0x04, 0x24, 0xE8, 0xE6, 0xFF, - 0xFF, 0xFF, 0x31, 0xC0, 0x83, 0xC4, 0x08, 0x5D, + content: [ 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, 0x00, + 0x00, 0x00, 0x00, 0x58, 0x8D, 0x80, 0x16, 0x00, + 0x00, 0x00, 0x89, 0x04, 0x24, 0xE8, 0xE6, 0xFF, + 0xFF, 0xFF, 0x31, 0xC0, 0x83, 0xC4, 0x08, 0x5D, 0xC3 ] relocations: - offset: 0x00000016 diff --git a/lld/test/mach-o/hello-world-x86_64.yaml b/lld/test/mach-o/hello-world-x86_64.yaml index eba31867b26..b40ee90d4dd 100644 --- a/lld/test/mach-o/hello-world-x86_64.yaml +++ b/lld/test/mach-o/hello-world-x86_64.yaml @@ -15,17 +15,17 @@ file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x05, 0x00, - 0x00, 0x00, 0x00, 0x48, 0x8B, 0x38, 0x48, 0x8D, - 0x35, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0xE8, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x05, 0x00, + 0x00, 0x00, 0x00, 0x48, 0x8B, 0x38, 0x48, 0x8D, + 0x35, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0x5D, 0xC3 ] - relocations: + relocations: - offset: 0x00000018 type: X86_64_RELOC_BRANCH length: 2 @@ -56,11 +56,11 @@ sections: attributes: [ ] alignment: 3 address: 0x0000000000000028 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000000 type: X86_64_RELOC_UNSIGNED length: 3 @@ -73,15 +73,15 @@ sections: attributes: [ ] alignment: 3 address: 0x0000000000000048 - content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7A, 0x52, 0x00, 0x01, 0x78, 0x10, 0x01, - 0x10, 0x0C, 0x07, 0x08, 0x90, 0x01, 0x00, 0x00, - 0x24, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, - 0x98, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x41, 0x0E, 0x10, 0x86, 0x02, 0x43, 0x0D, + content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7A, 0x52, 0x00, 0x01, 0x78, 0x10, 0x01, + 0x10, 0x0C, 0x07, 0x08, 0x90, 0x01, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, + 0x98, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x41, 0x0E, 0x10, 0x86, 0x02, 0x43, 0x0D, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] -local-symbols: +local-symbols: - name: L1 type: N_SECT sect: 2 @@ -90,7 +90,7 @@ local-symbols: type: N_SECT sect: 4 value: 0x0000000000000048 -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] @@ -101,7 +101,7 @@ global-symbols: scope: [ N_EXT ] sect: 4 value: 0x0000000000000060 -undefined-symbols: +undefined-symbols: - name: ___stdoutp type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/infer-arch.yaml b/lld/test/mach-o/infer-arch.yaml index 94f8543bd72..c09c94dd1b7 100644 --- a/lld/test/mach-o/infer-arch.yaml +++ b/lld/test/mach-o/infer-arch.yaml @@ -25,5 +25,5 @@ global-symbols: ... -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - name: _foo diff --git a/lld/test/mach-o/interposing-section.yaml b/lld/test/mach-o/interposing-section.yaml index 2ac28f03795..76e33904d11 100644 --- a/lld/test/mach-o/interposing-section.yaml +++ b/lld/test/mach-o/interposing-section.yaml @@ -12,15 +12,15 @@ arch: x86_64 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000008 type: X86_64_RELOC_BRANCH length: 2 @@ -33,9 +33,9 @@ sections: attributes: [ ] alignment: 3 address: 0x0000000000000010 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000008 type: X86_64_RELOC_UNSIGNED length: 3 @@ -48,7 +48,7 @@ sections: pc-rel: false extern: true symbol: 0 -local-symbols: +local-symbols: - name: _my_open type: N_SECT sect: 1 @@ -58,7 +58,7 @@ local-symbols: sect: 2 desc: [ N_NO_DEAD_STRIP ] value: 0x0000000000000010 -undefined-symbols: +undefined-symbols: - name: _open type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/keep_private_externs.yaml b/lld/test/mach-o/keep_private_externs.yaml index d67941a1c8e..e7adf180fc7 100644 --- a/lld/test/mach-o/keep_private_externs.yaml +++ b/lld/test/mach-o/keep_private_externs.yaml @@ -17,7 +17,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3 ] - segment: __DATA section: __data diff --git a/lld/test/mach-o/library-order.yaml b/lld/test/mach-o/library-order.yaml index 23e9f687313..f9cd5a6c44d 100644 --- a/lld/test/mach-o/library-order.yaml +++ b/lld/test/mach-o/library-order.yaml @@ -16,9 +16,9 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, - 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, - 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, + 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, + 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0x48, 0x83, 0xC4, 0x10, 0x5D, 0xC3 ] relocations: - offset: 0x00000012 diff --git a/lld/test/mach-o/library-rescan.yaml b/lld/test/mach-o/library-rescan.yaml index a58d763fff0..a8a0ca8968b 100644 --- a/lld/test/mach-o/library-rescan.yaml +++ b/lld/test/mach-o/library-rescan.yaml @@ -16,9 +16,9 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, - 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, - 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x83, 0xEC, 0x10, + 0xC7, 0x45, 0xFC, 0x00, 0x00, 0x00, 0x00, 0xB0, + 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x31, 0xC0, 0x48, 0x83, 0xC4, 0x10, 0x5D, 0xC3 ] relocations: - offset: 0x00000012 diff --git a/lld/test/mach-o/objc_export_list.yaml b/lld/test/mach-o/objc_export_list.yaml index 5844812295b..9eb0af77726 100644 --- a/lld/test/mach-o/objc_export_list.yaml +++ b/lld/test/mach-o/objc_export_list.yaml @@ -17,15 +17,15 @@ sections: attributes: [ ] alignment: 3 address: 0x0000000000000000 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] relocations: - offset: 0x00000030 diff --git a/lld/test/mach-o/parse-aliases.yaml b/lld/test/mach-o/parse-aliases.yaml index 457ea58133b..54da2d64e63 100644 --- a/lld/test/mach-o/parse-aliases.yaml +++ b/lld/test/mach-o/parse-aliases.yaml @@ -68,7 +68,7 @@ global-symbols: value: 0x0000000000000001 ... -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - name: _pad # CHECK: scope: global # CHECK: content: [ CC ] diff --git a/lld/test/mach-o/parse-arm-relocs.yaml b/lld/test/mach-o/parse-arm-relocs.yaml index c87c2a99b21..abeb3ddeb9d 100644 --- a/lld/test/mach-o/parse-arm-relocs.yaml +++ b/lld/test/mach-o/parse-arm-relocs.yaml @@ -438,10 +438,10 @@ sections: type: S_REGULAR attributes: [ ] address: 0x00000000000000A0 - content: [ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0xA4, 0xFF, 0xFF, 0xFF, - 0xA4, 0xFF, 0xFF, 0xFF, 0x45, 0xFF, 0xFF, 0xFF, + content: [ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0xA4, 0xFF, 0xFF, 0xFF, + 0xA4, 0xFF, 0xFF, 0xFF, 0x45, 0xFF, 0xFF, 0xFF, 0x45, 0xFF, 0xFF, 0xFF ] relocations: - offset: 0x00000020 @@ -742,7 +742,7 @@ undefined-symbols: # CHECK: offset: 68 # CHECK: target: _undef # CHECK: addend: 8 -# CHECK: undefined-atoms: +# CHECK: undefined-atoms: # CHECK: - name: _undef @@ -782,7 +782,7 @@ undefined-symbols: # # # .code 32 -# .align 2 +# .align 2 #_foo_arm: # bl _x # bl _x+4 @@ -803,7 +803,7 @@ undefined-symbols: # movt r5, :upper16:_undef # movw r6, :lower16:_undef+8 # movt r6, :upper16:_undef+8 -# +# # # .data #_x: .long 0 diff --git a/lld/test/mach-o/parse-cfstring64.yaml b/lld/test/mach-o/parse-cfstring64.yaml index fbd674d90d9..b90277f056e 100644 --- a/lld/test/mach-o/parse-cfstring64.yaml +++ b/lld/test/mach-o/parse-cfstring64.yaml @@ -72,7 +72,7 @@ undefined-symbols: value: 0x0000000000000000 ... -# CHECK:defined-atoms: +# CHECK:defined-atoms: # CHECK: - ref-name: L000 # CHECK: scope: hidden # CHECK: type: c-string @@ -86,7 +86,7 @@ undefined-symbols: # CHECK: - scope: hidden # CHECK: type: cfstring # CHECK: merge: by-content -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: ___CFConstantStringClassReference @@ -96,13 +96,13 @@ undefined-symbols: # CHECK: - scope: hidden # CHECK: type: cfstring # CHECK: merge: by-content -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: ___CFConstantStringClassReference # CHECK: - kind: pointer64 # CHECK: offset: 16 # CHECK: target: L001 -# CHECK:undefined-atoms: +# CHECK:undefined-atoms: # CHECK: - name: ___CFConstantStringClassReference diff --git a/lld/test/mach-o/parse-data-in-code-armv7.yaml b/lld/test/mach-o/parse-data-in-code-armv7.yaml index 29b483e7d72..720f24d7b47 100644 --- a/lld/test/mach-o/parse-data-in-code-armv7.yaml +++ b/lld/test/mach-o/parse-data-in-code-armv7.yaml @@ -18,11 +18,11 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0x00, 0xBF, 0x00, 0xBF, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x00, 0xBF, 0x00, 0xBF, - 0x00, 0xF0, 0x20, 0xE3, 0x0A, 0x00, 0x00, 0x00, - 0x0B, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, + content: [ 0x00, 0xBF, 0x00, 0xBF, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x00, 0xBF, 0x00, 0xBF, + 0x00, 0xF0, 0x20, 0xE3, 0x0A, 0x00, 0x00, 0x00, + 0x0B, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x20, 0xE3 ] local-symbols: - name: _foo_thumb @@ -133,7 +133,7 @@ dataInCode: # # # .code 32 -# .align 2 +# .align 2 #_foo_arm: # nop # diff --git a/lld/test/mach-o/parse-data-relocs-x86_64.yaml b/lld/test/mach-o/parse-data-relocs-x86_64.yaml index ae93c1bb75d..edeb1606887 100644 --- a/lld/test/mach-o/parse-data-relocs-x86_64.yaml +++ b/lld/test/mach-o/parse-data-relocs-x86_64.yaml @@ -14,11 +14,11 @@ # #_bar: # ret -# +# # .section __DATA,__custom #L1: # .quad 0 -# +# # .data #_d: # .quad _foo @@ -40,7 +40,7 @@ file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR @@ -59,16 +59,16 @@ sections: attributes: [ ] alignment: 3 address: 0x0000000000000008 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xDC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xD2, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0xC8, 0xFF, 0xFF, 0xFF, 0xC8, 0xFF, 0xFF, 0xFF, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xDC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xD2, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0xC8, 0xFF, 0xFF, 0xFF, 0xC8, 0xFF, 0xFF, 0xFF, 0xC2, 0xFF, 0xFF, 0xFF ] - relocations: + relocations: - offset: 0x00000040 type: X86_64_RELOC_SUBTRACTOR length: 2 @@ -165,7 +165,7 @@ sections: pc-rel: false extern: true symbol: 0 -local-symbols: +local-symbols: - name: _foo type: N_SECT sect: 1 @@ -184,7 +184,7 @@ local-symbols: # CHECK: defined-atoms: # CHECK: - name: _d # CHECK: type: data -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: _foo diff --git a/lld/test/mach-o/parse-eh-frame-x86-anon.yaml b/lld/test/mach-o/parse-eh-frame-x86-anon.yaml index 9e3adaea184..09b6ba37c09 100644 --- a/lld/test/mach-o/parse-eh-frame-x86-anon.yaml +++ b/lld/test/mach-o/parse-eh-frame-x86-anon.yaml @@ -9,22 +9,22 @@ arch: x86 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x89, 0xE5, 0x56, 0x83, 0xEC, 0x14, 0xE8, - 0x00, 0x00, 0x00, 0x00, 0x5E, 0xC7, 0x04, 0x24, - 0x04, 0x00, 0x00, 0x00, 0xE8, 0xE7, 0xFF, 0xFF, - 0xFF, 0xC7, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x8B, - 0x8E, 0x38, 0x00, 0x00, 0x00, 0x89, 0x4C, 0x24, - 0x04, 0x89, 0x04, 0x24, 0xC7, 0x44, 0x24, 0x08, - 0x00, 0x00, 0x00, 0x00, 0xE8, 0xC7, 0xFF, 0xFF, - 0xFF, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, + content: [ 0x55, 0x89, 0xE5, 0x56, 0x83, 0xEC, 0x14, 0xE8, + 0x00, 0x00, 0x00, 0x00, 0x5E, 0xC7, 0x04, 0x24, + 0x04, 0x00, 0x00, 0x00, 0xE8, 0xE7, 0xFF, 0xFF, + 0xFF, 0xC7, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x8B, + 0x8E, 0x38, 0x00, 0x00, 0x00, 0x89, 0x4C, 0x24, + 0x04, 0x89, 0x04, 0x24, 0xC7, 0x44, 0x24, 0x08, + 0x00, 0x00, 0x00, 0x00, 0xE8, 0xC7, 0xFF, 0xFF, + 0xFF, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, 0xBC, 0xFF, 0xFF, 0xFF ] - relocations: + relocations: - offset: 0x00000040 type: GENERIC_RELOC_VANILLA length: 2 @@ -68,17 +68,17 @@ sections: attributes: [ ] alignment: 2 address: 0x0000000000000048 - content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7A, 0x52, 0x00, 0x01, 0x7C, 0x08, 0x01, - 0x10, 0x0C, 0x05, 0x04, 0x88, 0x01, 0x00, 0x00, - 0x18, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, - 0x98, 0xFF, 0xFF, 0xFF, 0x39, 0x00, 0x00, 0x00, - 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, - 0x04, 0x44, 0x86, 0x03, 0x18, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x00, 0x00, 0xB5, 0xFF, 0xFF, 0xFF, - 0x0B, 0x00, 0x00, 0x00, 0x00, 0x41, 0x0E, 0x08, + content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7A, 0x52, 0x00, 0x01, 0x7C, 0x08, 0x01, + 0x10, 0x0C, 0x05, 0x04, 0x88, 0x01, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, + 0x98, 0xFF, 0xFF, 0xFF, 0x39, 0x00, 0x00, 0x00, + 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, + 0x04, 0x44, 0x86, 0x03, 0x18, 0x00, 0x00, 0x00, + 0x38, 0x00, 0x00, 0x00, 0xB5, 0xFF, 0xFF, 0xFF, + 0x0B, 0x00, 0x00, 0x00, 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, 0x04, 0x00, 0x00, 0x00 ] -global-symbols: +global-symbols: - name: __Z3barv type: N_SECT scope: [ N_EXT ] @@ -89,7 +89,7 @@ global-symbols: scope: [ N_EXT ] sect: 1 value: 0x0000000000000000 -undefined-symbols: +undefined-symbols: - name: __ZTIi type: N_UNDF scope: [ N_EXT ] @@ -104,12 +104,12 @@ undefined-symbols: value: 0x0000000000000000 ... -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - ref-name: [[CIE:L[L0-9]+]] # CHECK: type: unwind-cfi -# CHECK: content: +# CHECK: content: # CHECK: - type: unwind-cfi -# CHECK: content: +# CHECK: content: # CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 @@ -118,7 +118,7 @@ undefined-symbols: # CHECK: offset: 8 # CHECK: target: __Z3foov # CHECK: - type: unwind-cfi -# CHECK: content: +# CHECK: content: # CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 diff --git a/lld/test/mach-o/parse-eh-frame-x86-labeled.yaml b/lld/test/mach-o/parse-eh-frame-x86-labeled.yaml index b07a534e649..5be5abcc4a0 100644 --- a/lld/test/mach-o/parse-eh-frame-x86-labeled.yaml +++ b/lld/test/mach-o/parse-eh-frame-x86-labeled.yaml @@ -9,22 +9,22 @@ arch: x86 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x89, 0xE5, 0x56, 0x83, 0xEC, 0x14, 0xE8, - 0x00, 0x00, 0x00, 0x00, 0x5E, 0xC7, 0x04, 0x24, - 0x04, 0x00, 0x00, 0x00, 0xE8, 0xE7, 0xFF, 0xFF, - 0xFF, 0xC7, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x8B, - 0x8E, 0x38, 0x00, 0x00, 0x00, 0x89, 0x4C, 0x24, - 0x04, 0x89, 0x04, 0x24, 0xC7, 0x44, 0x24, 0x08, - 0x00, 0x00, 0x00, 0x00, 0xE8, 0xC7, 0xFF, 0xFF, - 0xFF, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, + content: [ 0x55, 0x89, 0xE5, 0x56, 0x83, 0xEC, 0x14, 0xE8, + 0x00, 0x00, 0x00, 0x00, 0x5E, 0xC7, 0x04, 0x24, + 0x04, 0x00, 0x00, 0x00, 0xE8, 0xE7, 0xFF, 0xFF, + 0xFF, 0xC7, 0x00, 0x0A, 0x00, 0x00, 0x00, 0x8B, + 0x8E, 0x38, 0x00, 0x00, 0x00, 0x89, 0x4C, 0x24, + 0x04, 0x89, 0x04, 0x24, 0xC7, 0x44, 0x24, 0x08, + 0x00, 0x00, 0x00, 0x00, 0xE8, 0xC7, 0xFF, 0xFF, + 0xFF, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, 0xBC, 0xFF, 0xFF, 0xFF ] - relocations: + relocations: - offset: 0x00000040 type: GENERIC_RELOC_VANILLA length: 2 @@ -68,17 +68,17 @@ sections: attributes: [ ] alignment: 2 address: 0x0000000000000048 - content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7A, 0x52, 0x00, 0x01, 0x7C, 0x08, 0x01, - 0x10, 0x0C, 0x05, 0x04, 0x88, 0x01, 0x00, 0x00, - 0x18, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, - 0x98, 0xFF, 0xFF, 0xFF, 0x39, 0x00, 0x00, 0x00, - 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, - 0x04, 0x44, 0x86, 0x03, 0x18, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x00, 0x00, 0xB5, 0xFF, 0xFF, 0xFF, - 0x0B, 0x00, 0x00, 0x00, 0x00, 0x41, 0x0E, 0x08, + content: [ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7A, 0x52, 0x00, 0x01, 0x7C, 0x08, 0x01, + 0x10, 0x0C, 0x05, 0x04, 0x88, 0x01, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, + 0x98, 0xFF, 0xFF, 0xFF, 0x39, 0x00, 0x00, 0x00, + 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, + 0x04, 0x44, 0x86, 0x03, 0x18, 0x00, 0x00, 0x00, + 0x38, 0x00, 0x00, 0x00, 0xB5, 0xFF, 0xFF, 0xFF, + 0x0B, 0x00, 0x00, 0x00, 0x00, 0x41, 0x0E, 0x08, 0x84, 0x02, 0x42, 0x0D, 0x04, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x0000001C scattered: true type: GENERIC_RELOC_LOCAL_SECTDIFF @@ -127,12 +127,12 @@ sections: length: 2 pc-rel: false value: 0x00000084 -local-symbols: +local-symbols: - name: EH_frame0 type: N_SECT sect: 3 value: 0x0000000000000048 -global-symbols: +global-symbols: - name: __Z3barv type: N_SECT scope: [ N_EXT ] @@ -153,7 +153,7 @@ global-symbols: scope: [ N_EXT ] sect: 3 value: 0x0000000000000060 -undefined-symbols: +undefined-symbols: - name: __ZTIi type: N_UNDF scope: [ N_EXT ] @@ -168,13 +168,13 @@ undefined-symbols: value: 0x0000000000000000 ... -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - ref-name: [[CIE:L[L0-9]+]] # CHECK: type: unwind-cfi -# CHECK: content: +# CHECK: content: # CHECK: - type: unwind-cfi -# CHECK: content: -# CHECK: references: +# CHECK: content: +# CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 # CHECK: target: [[CIE]] @@ -182,8 +182,8 @@ undefined-symbols: # CHECK: offset: 8 # CHECK: target: __Z3foov # CHECK: - type: unwind-cfi -# CHECK: content: -# CHECK: references: +# CHECK: content: +# CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 # CHECK: target: [[CIE]] diff --git a/lld/test/mach-o/parse-function.yaml b/lld/test/mach-o/parse-function.yaml index 1bc9878c708..bfd8e5c815f 100644 --- a/lld/test/mach-o/parse-function.yaml +++ b/lld/test/mach-o/parse-function.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -r %s -o %t +# RUN: lld -flavor darwin -arch x86_64 -r %s -o %t # RUN: lld -flavor darwin -arch x86_64 -r %t -print_atoms -o %t2 | FileCheck %s # # Test parsing of mach-o functions. @@ -17,7 +17,7 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0xCC, 0xC3, 0x90, 0xC3, 0x90, 0x90, 0xC3, 0x90, + content: [ 0xCC, 0xC3, 0x90, 0xC3, 0x90, 0x90, 0xC3, 0x90, 0x90, 0x90, 0xC3, 0x90, 0x90, 0x90, 0x90, 0xC3, 0xCC, 0x31, 0xC0, 0xC3 ] local-symbols: @@ -62,7 +62,7 @@ global-symbols: value: 0x0000000000000011 ... -# CHECK-NOT: name: +# CHECK-NOT: name: # CHECK: content: [ CC ] # CHECK: name: _myGlobal diff --git a/lld/test/mach-o/parse-initializers64.yaml b/lld/test/mach-o/parse-initializers64.yaml index 40cd6109143..c55a0ea0a5f 100644 --- a/lld/test/mach-o/parse-initializers64.yaml +++ b/lld/test/mach-o/parse-initializers64.yaml @@ -76,21 +76,21 @@ global-symbols: # CHECK: - type: initializer-pointer # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] # CHECK: dead-strip: never -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: _init # CHECK: - type: initializer-pointer # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] # CHECK: dead-strip: never -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: _init2 # CHECK: - type: terminator-pointer # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] # CHECK: dead-strip: never -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: _term diff --git a/lld/test/mach-o/parse-literals-error.yaml b/lld/test/mach-o/parse-literals-error.yaml index be21d6efffa..8daeeca5f65 100644 --- a/lld/test/mach-o/parse-literals-error.yaml +++ b/lld/test/mach-o/parse-literals-error.yaml @@ -21,5 +21,5 @@ sections: 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D ] ... -# CHECK: error: +# CHECK: error: diff --git a/lld/test/mach-o/parse-literals.yaml b/lld/test/mach-o/parse-literals.yaml index 543f52def71..7f80ba5212b 100644 --- a/lld/test/mach-o/parse-literals.yaml +++ b/lld/test/mach-o/parse-literals.yaml @@ -16,8 +16,8 @@ sections: attributes: [ ] alignment: 1 address: 0x0000000000000100 - content: [ 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x00, 0x74, 0x68, - 0x65, 0x72, 0x65, 0x00, 0x77, 0x6F, 0x72, 0x6C, + content: [ 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x00, 0x74, 0x68, + 0x65, 0x72, 0x65, 0x00, 0x77, 0x6F, 0x72, 0x6C, 0x00 ] - segment: __TEXT section: __literal4 @@ -49,13 +49,13 @@ sections: attributes: [ ] alignment: 1 address: 0x0000000000000100 - content: [ 0x68, 0x00, 0x65, 0x00, 0x6C, 0x00, 0x6C, 0x00, - 0x6F, 0x00, 0x00, 0x00, 0x74, 0x00, 0x68, 0x00, + content: [ 0x68, 0x00, 0x65, 0x00, 0x6C, 0x00, 0x6C, 0x00, + 0x6F, 0x00, 0x00, 0x00, 0x74, 0x00, 0x68, 0x00, 0x65, 0x00, 0x72, 0x00, 0x00, 0x00 ] ... -# CHECK:defined-atoms: +# CHECK:defined-atoms: # CHECK: - scope: hidden # CHECK: type: c-string # CHECK: content: [ 68, 65, 6C, 6C, 6F, 00 ] @@ -88,6 +88,6 @@ sections: # CHECK: content: [ 28, 29, 2A, 2B, 2C, 2D, 2E, 2F ] # CHECK: - scope: hidden # CHECK: type: const-16-byte -# CHECK: content: [ 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, +# CHECK: content: [ 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, # CHECK: 0D, 0E, 0F, 00 ] diff --git a/lld/test/mach-o/parse-relocs-x86.yaml b/lld/test/mach-o/parse-relocs-x86.yaml index 3fc22ae71bf..c7ce80bb42a 100644 --- a/lld/test/mach-o/parse-relocs-x86.yaml +++ b/lld/test/mach-o/parse-relocs-x86.yaml @@ -28,7 +28,7 @@ # ret # # .data -#_x: +#_x: # .long _undef # .long _undef+7 # .long _foo @@ -42,21 +42,21 @@ arch: x86 file-type: MH_OBJECT flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0xE8, 0xFB, 0xFF, 0xFF, 0xFF, 0xE8, 0xF8, 0xFF, - 0xFF, 0xFF, 0xE8, 0x2C, 0x00, 0x00, 0x00, 0xE8, - 0x29, 0x00, 0x00, 0x00, 0x66, 0xE8, 0xE8, 0xFF, - 0x66, 0xE8, 0x1F, 0x00, 0x66, 0xE8, 0x1D, 0x00, - 0xA1, 0x00, 0x00, 0x00, 0x00, 0xA1, 0x3C, 0x00, - 0x00, 0x00, 0xA1, 0x40, 0x00, 0x00, 0x00, 0x8B, - 0x80, 0x1C, 0x00, 0x00, 0x00, 0x8B, 0x80, 0x20, + content: [ 0xE8, 0xFB, 0xFF, 0xFF, 0xFF, 0xE8, 0xF8, 0xFF, + 0xFF, 0xFF, 0xE8, 0x2C, 0x00, 0x00, 0x00, 0xE8, + 0x29, 0x00, 0x00, 0x00, 0x66, 0xE8, 0xE8, 0xFF, + 0x66, 0xE8, 0x1F, 0x00, 0x66, 0xE8, 0x1D, 0x00, + 0xA1, 0x00, 0x00, 0x00, 0x00, 0xA1, 0x3C, 0x00, + 0x00, 0x00, 0xA1, 0x40, 0x00, 0x00, 0x00, 0x8B, + 0x80, 0x1C, 0x00, 0x00, 0x00, 0x8B, 0x80, 0x20, 0x00, 0x00, 0x00, 0xC3 ] - relocations: + relocations: - offset: 0x00000037 scattered: true type: GENERIC_RELOC_LOCAL_SECTDIFF @@ -146,10 +146,10 @@ sections: type: S_REGULAR attributes: [ ] address: 0x000000000000003C - content: [ 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, - 0x3B, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, + 0x3B, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0xB4, 0xFF, 0xFF, 0xFF, 0xB3, 0xFF, 0xFF, 0xFF ] - relocations: + relocations: - offset: 0x00000014 scattered: true type: GENERIC_RELOC_LOCAL_SECTDIFF @@ -198,7 +198,7 @@ sections: pc-rel: false extern: true symbol: 3 -local-symbols: +local-symbols: - name: _test type: N_SECT sect: 1 @@ -211,7 +211,7 @@ local-symbols: type: N_SECT sect: 2 value: 0x000000000000003C -undefined-symbols: +undefined-symbols: - name: _undef type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/sectalign.yaml b/lld/test/mach-o/sectalign.yaml index 3556a5ecbcf..556fd52c96e 100644 --- a/lld/test/mach-o/sectalign.yaml +++ b/lld/test/mach-o/sectalign.yaml @@ -16,8 +16,8 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x8B, 0x05, 0x00, 0x00, - 0x00, 0x00, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x8B, 0x05, 0x00, 0x00, + 0x00, 0x00, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, 0x5D, 0xC3 ] relocations: - offset: 0x0000000C diff --git a/lld/test/mach-o/unwind-info-simple-arm64.yaml b/lld/test/mach-o/unwind-info-simple-arm64.yaml index 0e85401b16a..cda0b127f78 100644 --- a/lld/test/mach-o/unwind-info-simple-arm64.yaml +++ b/lld/test/mach-o/unwind-info-simple-arm64.yaml @@ -13,20 +13,20 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 2 address: 0x0000000000000000 - content: [ 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, - 0xE0, 0x03, 0x1E, 0x32, 0x00, 0x00, 0x00, 0x94, - 0x48, 0x01, 0x80, 0x52, 0x08, 0x00, 0x00, 0xB9, - 0x02, 0x00, 0x80, 0xD2, 0x01, 0x00, 0x00, 0x90, - 0x21, 0x00, 0x40, 0xF9, 0x00, 0x00, 0x00, 0x94, - 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, - 0xE0, 0x03, 0x1E, 0x32, 0x00, 0x00, 0x00, 0x94, - 0x48, 0x01, 0x80, 0x52, 0x08, 0x00, 0x00, 0xB9, - 0x02, 0x00, 0x80, 0xD2, 0x01, 0x00, 0x00, 0x90, - 0x21, 0x00, 0x40, 0xF9, 0x00, 0x00, 0x00, 0x94, - 0x3F, 0x04, 0x00, 0x71, 0x81, 0x00, 0x00, 0x54, - 0x00, 0x00, 0x00, 0x94, 0xFD, 0x7B, 0xC1, 0xA8, - 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x94, - 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, + content: [ 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, + 0xE0, 0x03, 0x1E, 0x32, 0x00, 0x00, 0x00, 0x94, + 0x48, 0x01, 0x80, 0x52, 0x08, 0x00, 0x00, 0xB9, + 0x02, 0x00, 0x80, 0xD2, 0x01, 0x00, 0x00, 0x90, + 0x21, 0x00, 0x40, 0xF9, 0x00, 0x00, 0x00, 0x94, + 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, + 0xE0, 0x03, 0x1E, 0x32, 0x00, 0x00, 0x00, 0x94, + 0x48, 0x01, 0x80, 0x52, 0x08, 0x00, 0x00, 0xB9, + 0x02, 0x00, 0x80, 0xD2, 0x01, 0x00, 0x00, 0x90, + 0x21, 0x00, 0x40, 0xF9, 0x00, 0x00, 0x00, 0x94, + 0x3F, 0x04, 0x00, 0x71, 0x81, 0x00, 0x00, 0x54, + 0x00, 0x00, 0x00, 0x94, 0xFD, 0x7B, 0xC1, 0xA8, + 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x94, + 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, 0x00, 0x00, 0x00, 0x94 ] relocations: - offset: 0x00000070 @@ -107,14 +107,14 @@ sections: attributes: [ ] alignment: 2 address: 0x0000000000000074 - content: [ 0xFF, 0x9B, 0xAF, 0x80, 0x00, 0x03, 0x27, 0x00, - 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, - 0x10, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x01, 0x28, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, + content: [ 0xFF, 0x9B, 0xAF, 0x80, 0x00, 0x03, 0x27, 0x00, + 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, + 0x01, 0x28, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0xD0, 0xFF, 0xFF, 0xFF ] - relocations: + relocations: - offset: 0x00000030 type: ARM64_RELOC_POINTER_TO_GOT length: 2 @@ -127,19 +127,19 @@ sections: attributes: [ ] alignment: 3 address: 0x00000000000000A8 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000040 type: ARM64_RELOC_UNSIGNED length: 3 @@ -187,7 +187,7 @@ local-symbols: type: N_SECT sect: 3 value: 0x00000000000000A8 -global-symbols: +global-symbols: - name: __Z3barv type: N_SECT scope: [ N_EXT ] @@ -203,7 +203,7 @@ global-symbols: scope: [ N_EXT ] sect: 1 value: 0x0000000000000068 -undefined-symbols: +undefined-symbols: - name: __Unwind_Resume type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/unwind-info-simple-x86_64.yaml b/lld/test/mach-o/unwind-info-simple-x86_64.yaml index 8886e527166..eb91c5c9728 100644 --- a/lld/test/mach-o/unwind-info-simple-x86_64.yaml +++ b/lld/test/mach-o/unwind-info-simple-x86_64.yaml @@ -68,7 +68,7 @@ defined-atoms: # Generic x86_64 CIE: - type: unwind-cfi - content: [ 14, 00, 00, 00, 00, 00, 00, 00, 01, 7A, 52, 00, + content: [ 14, 00, 00, 00, 00, 00, 00, 00, 01, 7A, 52, 00, 01, 78, 10, 01, 10, 0C, 07, 08, 90, 01, 00, 00 ] - type: unwind-cfi diff --git a/lld/test/mach-o/upward-dylib-load-command.yaml b/lld/test/mach-o/upward-dylib-load-command.yaml index fee3e41d5bd..1383ad75b0a 100644 --- a/lld/test/mach-o/upward-dylib-load-command.yaml +++ b/lld/test/mach-o/upward-dylib-load-command.yaml @@ -1,7 +1,7 @@ # RUN: lld -flavor darwin -arch x86_64 -dylib %p/Inputs/bar.yaml \ # RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/libSystem.yaml -o %t1.dylib # RUN: lld -flavor darwin -arch x86_64 -dylib %s -upward_library %t1.dylib \ -# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t # RUN: llvm-objdump -private-headers %t | FileCheck %s # # @@ -19,7 +19,7 @@ sections: type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0x5D, 0xE9, 0x00, 0x00, 0x00, 0x00 ] relocations: - offset: 0x00000008 diff --git a/lld/test/pecoff/Inputs/armnt-branch24t.obj.yaml b/lld/test/pecoff/Inputs/armnt-branch24t.obj.yaml index 02815a4957d..a481a82d158 100644 --- a/lld/test/pecoff/Inputs/armnt-branch24t.obj.yaml +++ b/lld/test/pecoff/Inputs/armnt-branch24t.obj.yaml @@ -18,7 +18,7 @@ symbols: SimpleType: IMAGE_SYM_TYPE_NULL ComplexType: IMAGE_SYM_DTYPE_NULL StorageClass: IMAGE_SYM_CLASS_STATIC - SectionDefinition: + SectionDefinition: Length: 10 NumberOfRelocations: 1 NumberOfLinenumbers: 0 |