diff options
author | Rui Ueyama <ruiu@google.com> | 2016-10-05 20:09:50 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-10-05 20:09:50 +0000 |
commit | b66260ac17d65c3aa437ff78972cfac888581dd5 (patch) | |
tree | 94981142448d29473d9c7232eb92aa962045b2a6 | |
parent | 3b6cbd55f733dc9b91404fa8c344f816bc64171a (diff) | |
download | bcm5719-llvm-b66260ac17d65c3aa437ff78972cfac888581dd5.tar.gz bcm5719-llvm-b66260ac17d65c3aa437ff78972cfac888581dd5.zip |
Remove trailing whitespace.
llvm-svn: 283372
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 4 | ||||
-rw-r--r-- | lld/docs/windows_support.rst | 2 | ||||
-rw-r--r-- | lld/test/ELF/debug-gc.s | 2 | ||||
-rw-r--r-- | lld/test/ELF/gotpc-relax-nopic.s | 2 | ||||
-rw-r--r-- | lld/test/ELF/invalid/mips-invalid-options-descriptor.s | 2 | ||||
-rw-r--r-- | lld/test/ELF/linkerscript/numbers.s | 2 | ||||
-rw-r--r-- | lld/test/ELF/relocatable-sections.s | 2 | ||||
-rw-r--r-- | lld/test/ELF/section-symbols.test | 2 | ||||
-rw-r--r-- | lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml | 38 | ||||
-rw-r--r-- | lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml | 12 | ||||
-rw-r--r-- | lld/test/mach-o/bind-opcodes.yaml | 10 | ||||
-rw-r--r-- | lld/test/mach-o/debug-syms.yaml | 196 | ||||
-rw-r--r-- | lld/test/mach-o/eh-frame-relocs-arm64.yaml | 92 | ||||
-rw-r--r-- | lld/test/mach-o/gcc_except_tab-got-arm64.yaml | 28 | ||||
-rw-r--r-- | lld/test/mach-o/hello-world-arm64.yaml | 6 | ||||
-rw-r--r-- | lld/test/mach-o/lit.local.cfg | 2 | ||||
-rw-r--r-- | lld/test/mach-o/objc-category-list-atom.yaml | 14 | ||||
-rw-r--r-- | lld/test/mach-o/parse-data-relocs-x86_64.yaml | 6 | ||||
-rw-r--r-- | lld/test/mach-o/run-tlv-pass-x86-64.yaml | 18 | ||||
-rw-r--r-- | lld/test/mach-o/use-dylib.yaml | 2 |
20 files changed, 221 insertions, 221 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index aa01d537558..e795b1d9cd4 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -112,8 +112,8 @@ bool LinkerScript<ELFT>::shouldKeep(InputSectionBase<ELFT> *S) { StringRef Filename = S->getFile()->getName(); if (!ID->FileRe.match(sys::path::filename(Filename))) continue; - - for (SectionPattern &P : ID->SectionPatterns) + + for (SectionPattern &P : ID->SectionPatterns) if (P.SectionRe.match(S->Name)) return true; } diff --git a/lld/docs/windows_support.rst b/lld/docs/windows_support.rst index c4c338a0fba..2d66109d244 100644 --- a/lld/docs/windows_support.rst +++ b/lld/docs/windows_support.rst @@ -81,7 +81,7 @@ Using Visual Studio IDE/MSBuild Alternatively, you can use msbuild if you don't like to work in an IDE:: msbuild LLVM.sln /m /target:"lld executables\lld" - + MSBuild.exe had been shipped as a component of the .NET framework, but since 2013 it's part of Visual Studio. You can find it at "C:\\Program Files (x86)\\msbuild". diff --git a/lld/test/ELF/debug-gc.s b/lld/test/ELF/debug-gc.s index 16184718098..5254220f5cb 100644 --- a/lld/test/ELF/debug-gc.s +++ b/lld/test/ELF/debug-gc.s @@ -18,7 +18,7 @@ _start: .asciz "BBB" .Linfo_string2: .asciz "CCC" - + .section .debug_info,"",@progbits .long .Linfo_string0 .long .Linfo_string1 diff --git a/lld/test/ELF/gotpc-relax-nopic.s b/lld/test/ELF/gotpc-relax-nopic.s index 590e08c6fb4..dedb394e071 100644 --- a/lld/test/ELF/gotpc-relax-nopic.s +++ b/lld/test/ELF/gotpc-relax-nopic.s @@ -49,7 +49,7 @@ # SEC-PIC-NEXT: 0x20A0 R_X86_64_RELATIVE - 0x3000 # SEC-PIC-NEXT: } # SEC-PIC-NEXT: ] -# SEC-PIC: 0x000000006FFFFFF9 RELACOUNT 1 +# SEC-PIC: 0x000000006FFFFFF9 RELACOUNT 1 ## Check that there was no relaxation performed. All values refer to got entry. ## Ex: 0x1000 + 4249 + 7 = 0x20A0 diff --git a/lld/test/ELF/invalid/mips-invalid-options-descriptor.s b/lld/test/ELF/invalid/mips-invalid-options-descriptor.s index 2fd5bf5a513..4c13ebb61b8 100644 --- a/lld/test/ELF/invalid/mips-invalid-options-descriptor.s +++ b/lld/test/ELF/invalid/mips-invalid-options-descriptor.s @@ -1,4 +1,4 @@ -## mips-invalid-options-descriptor.elf has option descriptor in +## mips-invalid-options-descriptor.elf has option descriptor in ## .MIPS.options with size of zero. # RUN: not ld.lld %p/Inputs/mips-invalid-options-descriptor.elf -o %t2 2>&1 | \ # RUN: FileCheck %s diff --git a/lld/test/ELF/linkerscript/numbers.s b/lld/test/ELF/linkerscript/numbers.s index 1738ad4aa33..653f94bd4e6 100644 --- a/lld/test/ELF/linkerscript/numbers.s +++ b/lld/test/ELF/linkerscript/numbers.s @@ -18,7 +18,7 @@ # RUN: llvm-objdump -section-headers %t2 | FileCheck %s # CHECK: Sections: -# CHECK-NEXT: Idx Name Size Address +# CHECK-NEXT: Idx Name Size Address # CHECK-NEXT: 0 00000000 0000000000000000 # CHECK-NEXT: 1 .hex1 00000008 0000000000001000 # CHECK-NEXT: 2 .hex2 00000008 0000000000001010 diff --git a/lld/test/ELF/relocatable-sections.s b/lld/test/ELF/relocatable-sections.s index bcc2b04dd7e..15731ce4921 100644 --- a/lld/test/ELF/relocatable-sections.s +++ b/lld/test/ELF/relocatable-sections.s @@ -5,7 +5,7 @@ # CHECK: .text # CHECK-NEXT: .text._init # CHECK-NEXT: .text._fini -# CHECK-NEXT: .rela.text +# CHECK-NEXT: .rela.text # CHECK-NEXT: .rela.text._init # CHECK-NEXT: .rela.text._fini diff --git a/lld/test/ELF/section-symbols.test b/lld/test/ELF/section-symbols.test index a2993d3c27b..2ef77a828b6 100644 --- a/lld/test/ELF/section-symbols.test +++ b/lld/test/ELF/section-symbols.test @@ -5,7 +5,7 @@ # with SHT_REL[A]/SHT_SYMTAB/SHT_STRTAB sections. !ELF -FileHeader: +FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_FREEBSD diff --git a/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml b/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml index 4da88097eb6..ee8686cabb6 100644 --- a/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml +++ b/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml @@ -21,18 +21,18 @@ compat-version: 0.0 current-version: 0.0 has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, - 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x91, - 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x80, 0x52, + content: [ 0xFD, 0x7B, 0xBF, 0xA9, 0xFD, 0x03, 0x00, 0x91, + 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x91, + 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x80, 0x52, 0xFD, 0x7B, 0xC1, 0xA8, 0xC0, 0x03, 0x5F, 0xD6 ] - relocations: + relocations: - offset: 0x00000010 type: ARM64_RELOC_BRANCH26 length: 2 @@ -56,7 +56,7 @@ sections: type: S_CSTRING_LITERALS attributes: [ ] address: 0x0000000000000020 - content: [ 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, + content: [ 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x00 ] - segment: __LD section: __compact_unwind @@ -64,11 +64,11 @@ sections: attributes: [ ] alignment: 8 address: 0x0000000000000030 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000000 type: ARM64_RELOC_UNSIGNED length: 3 @@ -81,14 +81,14 @@ sections: attributes: [ ] alignment: 8 address: 0x0000000000000050 - content: [ 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x7A, 0x52, 0x00, 0x01, 0x78, 0x1E, 0x01, - 0x10, 0x0C, 0x1F, 0x00, 0x20, 0x00, 0x00, 0x00, - 0x18, 0x00, 0x00, 0x00, 0x94, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0x20, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x0E, 0x10, + content: [ 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x7A, 0x52, 0x00, 0x01, 0x78, 0x1E, 0x01, + 0x10, 0x0C, 0x1F, 0x00, 0x20, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x94, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0x20, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x0E, 0x10, 0x9E, 0x01, 0x9D, 0x02, 0x00, 0x00, 0x00, 0x00 ] -local-symbols: +local-symbols: - name: ltmp0 type: N_SECT sect: 1 @@ -109,13 +109,13 @@ local-symbols: type: N_SECT sect: 4 value: 0x0000000000000050 -global-symbols: +global-symbols: - name: __Z3fooi type: N_SECT scope: [ N_EXT ] sect: 1 value: 0x0000000000000000 -undefined-symbols: +undefined-symbols: - name: _puts type: N_UNDF scope: [ N_EXT ] diff --git a/lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml b/lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml index 08e41bc65ff..d238097f969 100644 --- a/lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml +++ b/lld/test/mach-o/arm64-relocs-errors-delta64-offset.yaml @@ -14,11 +14,11 @@ sections: attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0xFF, 0x83, 0x00, 0xD1, 0xE0, 0x0B, 0x00, 0xF9, - 0x08, 0x00, 0x40, 0xB9, 0x08, 0x0D, 0x00, 0x71, - 0x08, 0x09, 0x00, 0x71, 0xE8, 0x0F, 0x00, 0xB9, - 0xC8, 0x00, 0x00, 0x54, 0x01, 0x00, 0x00, 0x14, - 0xE8, 0x03, 0x00, 0x32, 0x08, 0x01, 0x00, 0x12, + content: [ 0xFF, 0x83, 0x00, 0xD1, 0xE0, 0x0B, 0x00, 0xF9, + 0x08, 0x00, 0x40, 0xB9, 0x08, 0x0D, 0x00, 0x71, + 0x08, 0x09, 0x00, 0x71, 0xE8, 0x0F, 0x00, 0xB9, + 0xC8, 0x00, 0x00, 0x54, 0x01, 0x00, 0x00, 0x14, + 0xE8, 0x03, 0x00, 0x32, 0x08, 0x01, 0x00, 0x12, 0xE8, 0x7F, 0x00, 0x39, 0x02, 0x00, 0x00, 0x14 ] - segment: __DATA section: __data @@ -34,7 +34,7 @@ sections: 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: # Make sure that the offsets of the subtractor and unsigned both match. # CHECK: bad relocation (paired relocs must have the same offset) in section __DATA/__data (r1_address=1, r1_type=1, r1_extern=1, r1_length=3, r1_pcrel=0, r1_symbolnum=1), (r2_address=0, r2_type=0, r2_extern=1, r2_length=3, r2_pcrel=0, r2_symbolnum=1) diff --git a/lld/test/mach-o/bind-opcodes.yaml b/lld/test/mach-o/bind-opcodes.yaml index 3db20e24b5e..ad8cd169a85 100644 --- a/lld/test/mach-o/bind-opcodes.yaml +++ b/lld/test/mach-o/bind-opcodes.yaml @@ -87,7 +87,7 @@ undefined-symbols: ... -# CHECK: BindOpcodes: +# CHECK: BindOpcodes: # CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM # CHECK: Imm: 1 # CHECK: Symbol: '' @@ -99,7 +99,7 @@ undefined-symbols: # CHECK: Symbol: '' # CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB # CHECK: Imm: 2 -# CHECK: ULEBExtraData: +# CHECK: ULEBExtraData: # CHECK: - 0x0000000000000000 # CHECK: Symbol: '' # CHECK: - Opcode: BIND_OPCODE_DO_BIND @@ -110,7 +110,7 @@ undefined-symbols: # CHECK: Symbol: ___stdoutp # CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB # CHECK: Imm: 2 -# CHECK: ULEBExtraData: +# CHECK: ULEBExtraData: # CHECK: - 0x0000000000000010 # CHECK: Symbol: '' # CHECK: - Opcode: BIND_OPCODE_DO_BIND @@ -120,10 +120,10 @@ undefined-symbols: # CHECK: Imm: 0 # CHECK: Symbol: '' -# CHECK: LazyBindOpcodes: +# CHECK: LazyBindOpcodes: # CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB # CHECK: Imm: 2 -# CHECK: ULEBExtraData: +# CHECK: ULEBExtraData: # CHECK: - 0x0000000000000018 # CHECK: Symbol: '' # CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM diff --git a/lld/test/mach-o/debug-syms.yaml b/lld/test/mach-o/debug-syms.yaml index bd2eb5ce810..28428724ffe 100644 --- a/lld/test/mach-o/debug-syms.yaml +++ b/lld/test/mach-o/debug-syms.yaml @@ -4,11 +4,11 @@ # CHECK: 0000000000000000 - 00 0000 SO /Users/lhames/Projects/lld/lld-svn-tot/scratch/ # CHECK-NEXT: 0000000000000000 - 00 0000 SO hw.c # CHECK-NEXT: {{[0-9a-f]+}} - 03 0001 OSO {{.*}}{{/|\\}}test{{/|\\}}mach-o{{/|\\}}debug-syms.yaml -# CHECK-NEXT: 0000000000000fa0 - 01 0000 BNSYM +# CHECK-NEXT: 0000000000000fa0 - 01 0000 BNSYM # CHECK-NEXT: 0000000000000fa0 - 01 0000 FUN _main -# CHECK-NEXT: 0000000000000016 - 00 0000 FUN -# CHECK-NEXT: 0000000000000016 - 01 0000 ENSYM -# CHECK-NEXT: 0000000000000000 - 01 0000 SO +# CHECK-NEXT: 0000000000000016 - 00 0000 FUN +# CHECK-NEXT: 0000000000000016 - 01 0000 ENSYM +# CHECK-NEXT: 0000000000000000 - 01 0000 SO --- !mach-o arch: x86_64 @@ -19,35 +19,35 @@ current-version: 0.0 has-UUID: false OS: unknown min-os-version-kind: LC_VERSION_MIN_MACOSX -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 16 address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0xC7, 0x45, - 0xFC, 0x00, 0x00, 0x00, 0x00, 0x89, 0x7D, 0xF8, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x31, 0xC0, 0xC7, 0x45, + 0xFC, 0x00, 0x00, 0x00, 0x00, 0x89, 0x7D, 0xF8, 0x48, 0x89, 0x75, 0xF0, 0x5D, 0xC3 ] - segment: __DWARF section: __debug_str type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x0000000000000016 - content: [ 0x41, 0x70, 0x70, 0x6C, 0x65, 0x20, 0x4C, 0x4C, - 0x56, 0x4D, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6F, 0x6E, 0x20, 0x38, 0x2E, 0x30, 0x2E, 0x30, - 0x20, 0x28, 0x63, 0x6C, 0x61, 0x6E, 0x67, 0x2D, - 0x38, 0x30, 0x30, 0x2E, 0x30, 0x2E, 0x32, 0x34, - 0x2E, 0x31, 0x29, 0x00, 0x68, 0x77, 0x2E, 0x63, - 0x00, 0x2F, 0x55, 0x73, 0x65, 0x72, 0x73, 0x2F, - 0x6C, 0x68, 0x61, 0x6D, 0x65, 0x73, 0x2F, 0x50, - 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x73, 0x2F, - 0x6C, 0x6C, 0x64, 0x2F, 0x6C, 0x6C, 0x64, 0x2D, - 0x73, 0x76, 0x6E, 0x2D, 0x74, 0x6F, 0x74, 0x2F, - 0x73, 0x63, 0x72, 0x61, 0x74, 0x63, 0x68, 0x00, - 0x6D, 0x61, 0x69, 0x6E, 0x00, 0x69, 0x6E, 0x74, - 0x00, 0x61, 0x72, 0x67, 0x63, 0x00, 0x61, 0x72, + content: [ 0x41, 0x70, 0x70, 0x6C, 0x65, 0x20, 0x4C, 0x4C, + 0x56, 0x4D, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6F, 0x6E, 0x20, 0x38, 0x2E, 0x30, 0x2E, 0x30, + 0x20, 0x28, 0x63, 0x6C, 0x61, 0x6E, 0x67, 0x2D, + 0x38, 0x30, 0x30, 0x2E, 0x30, 0x2E, 0x32, 0x34, + 0x2E, 0x31, 0x29, 0x00, 0x68, 0x77, 0x2E, 0x63, + 0x00, 0x2F, 0x55, 0x73, 0x65, 0x72, 0x73, 0x2F, + 0x6C, 0x68, 0x61, 0x6D, 0x65, 0x73, 0x2F, 0x50, + 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x73, 0x2F, + 0x6C, 0x6C, 0x64, 0x2F, 0x6C, 0x6C, 0x64, 0x2D, + 0x73, 0x76, 0x6E, 0x2D, 0x74, 0x6F, 0x74, 0x2F, + 0x73, 0x63, 0x72, 0x61, 0x74, 0x63, 0x68, 0x00, + 0x6D, 0x61, 0x69, 0x6E, 0x00, 0x69, 0x6E, 0x74, + 0x00, 0x61, 0x72, 0x67, 0x63, 0x00, 0x61, 0x72, 0x67, 0x76, 0x00, 0x63, 0x68, 0x61, 0x72, 0x00 ] - segment: __DWARF section: __debug_loc @@ -59,39 +59,39 @@ sections: type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x000000000000008E - content: [ 0x01, 0x11, 0x01, 0x25, 0x0E, 0x13, 0x05, 0x03, - 0x0E, 0x10, 0x06, 0x1B, 0x0E, 0x11, 0x01, 0x12, - 0x01, 0x00, 0x00, 0x02, 0x2E, 0x01, 0x11, 0x01, - 0x12, 0x01, 0x40, 0x0A, 0x03, 0x0E, 0x3A, 0x0B, - 0x3B, 0x0B, 0x27, 0x0C, 0x49, 0x13, 0x3F, 0x0C, - 0x00, 0x00, 0x03, 0x05, 0x00, 0x02, 0x0A, 0x03, - 0x0E, 0x3A, 0x0B, 0x3B, 0x0B, 0x49, 0x13, 0x00, - 0x00, 0x04, 0x24, 0x00, 0x03, 0x0E, 0x3E, 0x0B, - 0x0B, 0x0B, 0x00, 0x00, 0x05, 0x0F, 0x00, 0x49, + content: [ 0x01, 0x11, 0x01, 0x25, 0x0E, 0x13, 0x05, 0x03, + 0x0E, 0x10, 0x06, 0x1B, 0x0E, 0x11, 0x01, 0x12, + 0x01, 0x00, 0x00, 0x02, 0x2E, 0x01, 0x11, 0x01, + 0x12, 0x01, 0x40, 0x0A, 0x03, 0x0E, 0x3A, 0x0B, + 0x3B, 0x0B, 0x27, 0x0C, 0x49, 0x13, 0x3F, 0x0C, + 0x00, 0x00, 0x03, 0x05, 0x00, 0x02, 0x0A, 0x03, + 0x0E, 0x3A, 0x0B, 0x3B, 0x0B, 0x49, 0x13, 0x00, + 0x00, 0x04, 0x24, 0x00, 0x03, 0x0E, 0x3E, 0x0B, + 0x0B, 0x0B, 0x00, 0x00, 0x05, 0x0F, 0x00, 0x49, 0x13, 0x00, 0x00, 0x00 ] - segment: __DWARF section: __debug_info type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x00000000000000DA - content: [ 0x7F, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x56, 0x60, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, - 0x6A, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x91, - 0x78, 0x69, 0x00, 0x00, 0x00, 0x01, 0x01, 0x6A, - 0x00, 0x00, 0x00, 0x03, 0x02, 0x91, 0x70, 0x6E, - 0x00, 0x00, 0x00, 0x01, 0x01, 0x71, 0x00, 0x00, - 0x00, 0x00, 0x04, 0x65, 0x00, 0x00, 0x00, 0x05, - 0x04, 0x05, 0x76, 0x00, 0x00, 0x00, 0x05, 0x7B, - 0x00, 0x00, 0x00, 0x04, 0x73, 0x00, 0x00, 0x00, + content: [ 0x7F, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, + 0x56, 0x60, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, + 0x6A, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x91, + 0x78, 0x69, 0x00, 0x00, 0x00, 0x01, 0x01, 0x6A, + 0x00, 0x00, 0x00, 0x03, 0x02, 0x91, 0x70, 0x6E, + 0x00, 0x00, 0x00, 0x01, 0x01, 0x71, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x65, 0x00, 0x00, 0x00, 0x05, + 0x04, 0x05, 0x76, 0x00, 0x00, 0x00, 0x05, 0x7B, + 0x00, 0x00, 0x00, 0x04, 0x73, 0x00, 0x00, 0x00, 0x06, 0x01, 0x00 ] - relocations: + relocations: - offset: 0x00000037 type: X86_64_RELOC_UNSIGNED length: 3 @@ -132,61 +132,61 @@ sections: type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x000000000000015E - content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x6A, 0x7F, 0x9A, 0x7C, - 0x2C, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x2E, 0x00, 0x00, 0x00, + content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x6A, 0x7F, 0x9A, 0x7C, + 0x2C, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - segment: __DWARF section: __apple_objc type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x000000000000019A - content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, + content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, 0xFF, 0xFF, 0xFF, 0xFF ] - segment: __DWARF section: __apple_namespac type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x00000000000001BE - content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, + content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, 0xFF, 0xFF, 0xFF, 0xFF ] - segment: __DWARF section: __apple_types type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x00000000000001E2 - content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, - 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, - 0x03, 0x00, 0x05, 0x00, 0x04, 0x00, 0x0B, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x30, 0x80, 0x88, 0x0B, 0x63, 0x20, 0x95, 0x7C, - 0x40, 0x00, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00, - 0x65, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, - 0x6A, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x7B, 0x00, 0x00, 0x00, 0x24, + content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, + 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x06, 0x00, + 0x03, 0x00, 0x05, 0x00, 0x04, 0x00, 0x0B, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x30, 0x80, 0x88, 0x0B, 0x63, 0x20, 0x95, 0x7C, + 0x40, 0x00, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00, + 0x65, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x6A, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00, 0x01, + 0x00, 0x00, 0x00, 0x7B, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - segment: __DWARF section: __apple_exttypes type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x0000000000000248 - content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x07, 0x00, 0x06, 0x00, + content: [ 0x48, 0x53, 0x41, 0x48, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x07, 0x00, 0x06, 0x00, 0xFF, 0xFF, 0xFF, 0xFF ] - segment: __LD section: __compact_unwind @@ -194,11 +194,11 @@ sections: attributes: [ S_ATTR_DEBUG ] alignment: 8 address: 0x0000000000000270 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x16, 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 @@ -211,35 +211,35 @@ sections: attributes: [ ] alignment: 8 address: 0x0000000000000290 - 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, - 0x50, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, - 0x16, 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, + 0x50, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x41, 0x0E, 0x10, 0x86, 0x02, 0x43, 0x0D, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - segment: __DWARF section: __debug_line type: S_REGULAR attributes: [ S_ATTR_DEBUG ] address: 0x00000000000002D0 - content: [ 0x37, 0x00, 0x00, 0x00, 0x02, 0x00, 0x1B, 0x00, - 0x00, 0x00, 0x01, 0x01, 0xFB, 0x0E, 0x0D, 0x00, - 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x01, 0x00, 0x68, 0x77, 0x2E, 0x63, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x02, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x05, 0x03, 0x0A, 0x08, 0x3D, 0x02, 0x02, + content: [ 0x37, 0x00, 0x00, 0x00, 0x02, 0x00, 0x1B, 0x00, + 0x00, 0x00, 0x01, 0x01, 0xFB, 0x0E, 0x0D, 0x00, + 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, + 0x00, 0x00, 0x01, 0x00, 0x68, 0x77, 0x2E, 0x63, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x02, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x05, 0x03, 0x0A, 0x08, 0x3D, 0x02, 0x02, 0x00, 0x01, 0x01 ] - relocations: + relocations: - offset: 0x00000028 type: X86_64_RELOC_UNSIGNED length: 3 pc-rel: false extern: false symbol: 1 -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] diff --git a/lld/test/mach-o/eh-frame-relocs-arm64.yaml b/lld/test/mach-o/eh-frame-relocs-arm64.yaml index 6681ded7949..e23dd7c48ed 100644 --- a/lld/test/mach-o/eh-frame-relocs-arm64.yaml +++ b/lld/test/mach-o/eh-frame-relocs-arm64.yaml @@ -12,15 +12,15 @@ compat-version: 0.0 current-version: 0.0 has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 4 address: 0x0000000000000000 - content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xC0, 0x03, 0x5F, 0xD6, 0xC0, 0x03, 0x5F, 0xD6, + content: [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xC0, 0x03, 0x5F, 0xD6, 0xC0, 0x03, 0x5F, 0xD6, 0xC0, 0x03, 0x5F, 0xD6 ] - segment: __TEXT section: __gcc_except_tab @@ -40,15 +40,15 @@ sections: attributes: [ ] alignment: 8 address: 0x0000000000000020 - content: [ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + content: [ 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x00000020 type: ARM64_RELOC_UNSIGNED length: 3 @@ -67,25 +67,25 @@ sections: attributes: [ ] alignment: 8 address: 0x0000000000000060 - content: [ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x03, 0x7A, 0x50, 0x4C, 0x52, 0x00, 0x01, 0x78, - 0x1E, 0x07, 0x9B, 0xED, 0xFF, 0xFF, 0xFF, 0x10, - 0x10, 0x0C, 0x1F, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0xDC, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x08, 0xCB, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0E, 0x10, 0x9E, - 0x01, 0x9D, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x03, 0x7A, 0x50, 0x4C, 0x52, 0x00, 0x01, 0x78, - 0x1E, 0x07, 0x9B, 0xA9, 0xFF, 0xFF, 0xFF, 0x10, - 0x10, 0x0C, 0x1F, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x94, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x08, 0x83, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0E, 0x10, 0x9E, + content: [ 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x03, 0x7A, 0x50, 0x4C, 0x52, 0x00, 0x01, 0x78, + 0x1E, 0x07, 0x9B, 0xED, 0xFF, 0xFF, 0xFF, 0x10, + 0x10, 0x0C, 0x1F, 0x00, 0x28, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0xDC, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x08, 0xCB, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0E, 0x10, 0x9E, + 0x01, 0x9D, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x03, 0x7A, 0x50, 0x4C, 0x52, 0x00, 0x01, 0x78, + 0x1E, 0x07, 0x9B, 0xA9, 0xFF, 0xFF, 0xFF, 0x10, + 0x10, 0x0C, 0x1F, 0x00, 0x28, 0x00, 0x00, 0x00, + 0x20, 0x00, 0x00, 0x00, 0x94, 0xFF, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x08, 0x83, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0E, 0x10, 0x9E, 0x01, 0x9D, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 ] - relocations: + relocations: - offset: 0x0000007D type: ARM64_RELOC_SUBTRACTOR length: 3 @@ -146,7 +146,7 @@ sections: pc-rel: true extern: true symbol: 9 -local-symbols: +local-symbols: - name: ltmp0 type: N_SECT sect: 1 @@ -175,7 +175,7 @@ local-symbols: type: N_SECT sect: 5 value: 0x0000000000000060 -global-symbols: +global-symbols: - name: __Z3fooi type: N_SECT scope: [ N_EXT ] @@ -211,24 +211,24 @@ page-size: 0x00000000 # CHECK: --- !native # CHECK: path: '<linker-internal>' -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - ref-name: L000 # CHECK: type: unwind-cfi -# CHECK: content: [ 18, 00, 00, 00, 00, 00, 00, 00, 03, 7A, 50, 4C, -# CHECK: 52, 00, 01, 78, 1E, 07, 9B, {{..}}, {{..}}, {{..}}, {{..}}, 10, +# CHECK: content: [ 18, 00, 00, 00, 00, 00, 00, 00, 03, 7A, 50, 4C, +# CHECK: 52, 00, 01, 78, 1E, 07, 9B, {{..}}, {{..}}, {{..}}, {{..}}, 10, # CHECK: 10, 0C, 1F, 00 ] # CHECK: alignment: 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: unwindCIEToPersonalityFunction # CHECK: offset: 19 # CHECK: target: __gxx_personality_v0 # CHECK: - type: unwind-cfi -# CHECK: content: [ 28, 00, 00, 00, 20, 00, 00, 00, {{..}}, {{..}}, {{..}}, {{..}}, -# CHECK: {{..}}, {{..}}, {{..}}, {{..}}, 04, 00, 00, 00, 00, 00, 00, 00, -# CHECK: 08, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, 0E, 10, 9E, +# CHECK: content: [ 28, 00, 00, 00, 20, 00, 00, 00, {{..}}, {{..}}, {{..}}, {{..}}, +# CHECK: {{..}}, {{..}}, {{..}}, {{..}}, 04, 00, 00, 00, 00, 00, 00, 00, +# CHECK: 08, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, 0E, 10, 9E, # CHECK: 01, 9D, 02, 00, 00, 00, 00, 00 ] # CHECK: alignment: 4 mod 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 # CHECK: target: L000 @@ -240,21 +240,21 @@ page-size: 0x00000000 # CHECK: target: _bar1 # CHECK: - ref-name: L001 # CHECK: type: unwind-cfi -# CHECK: content: [ 18, 00, 00, 00, 00, 00, 00, 00, 03, 7A, 50, 4C, -# CHECK: 52, 00, 01, 78, 1E, 07, 9B, {{..}}, {{..}}, {{..}}, {{..}}, 10, +# CHECK: content: [ 18, 00, 00, 00, 00, 00, 00, 00, 03, 7A, 50, 4C, +# CHECK: 52, 00, 01, 78, 1E, 07, 9B, {{..}}, {{..}}, {{..}}, {{..}}, 10, # CHECK: 10, 0C, 1F, 00 ] # CHECK: alignment: 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: unwindCIEToPersonalityFunction # CHECK: offset: 19 # CHECK: target: __gxx_personality_v1 # CHECK: - type: unwind-cfi -# CHECK: content: [ 28, 00, 00, 00, 20, 00, 00, 00, {{..}}, {{..}}, {{..}}, {{..}}, -# CHECK: {{..}}, {{..}}, {{..}}, {{..}}, 04, 00, 00, 00, 00, 00, 00, 00, -# CHECK: 08, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, 0E, 10, 9E, +# CHECK: content: [ 28, 00, 00, 00, 20, 00, 00, 00, {{..}}, {{..}}, {{..}}, {{..}}, +# CHECK: {{..}}, {{..}}, {{..}}, {{..}}, 04, 00, 00, 00, 00, 00, 00, 00, +# CHECK: 08, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, {{..}}, 0E, 10, 9E, # CHECK: 01, 9D, 02, 00, 00, 00, 00, 00 ] # CHECK: alignment: 4 mod 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: negDelta32 # CHECK: offset: 4 # CHECK: target: L001 diff --git a/lld/test/mach-o/gcc_except_tab-got-arm64.yaml b/lld/test/mach-o/gcc_except_tab-got-arm64.yaml index 9645f41f2c6..47b174d6cf2 100644 --- a/lld/test/mach-o/gcc_except_tab-got-arm64.yaml +++ b/lld/test/mach-o/gcc_except_tab-got-arm64.yaml @@ -6,11 +6,11 @@ # is not removed. --- !native -defined-atoms: +defined-atoms: - name: _main scope: global - content: [ FD, 7B, BF, A9, FD, 03, 00, 91, FF, 43, 00, D1, - BF, C3, 1F, B8, 00, 00, 00, 94, BF, 03, 00, 91, + content: [ FD, 7B, BF, A9, FD, 03, 00, 91, FF, 43, 00, D1, + BF, C3, 1F, B8, 00, 00, 00, 94, BF, 03, 00, 91, FD, 7B, C1, A8, C0, 03, 5F, D6 ] alignment: 4 - name: __ZTSP1A @@ -20,25 +20,25 @@ defined-atoms: merge: as-weak - name: GCC_except_table0 type: unwind-lsda - content: [ FF, 9B, E7, 80, 00, 03, 5B, 00, 00, 00, 00, 1C, - 00, 00, 00, 00, 00, 00, 00, 00, 1C, 00, 00, 00, - 18, 00, 00, 00, 84, 00, 00, 00, 03, 40, 00, 00, - 00, 10, 00, 00, 00, 94, 00, 00, 00, 03, 60, 00, - 00, 00, 20, 00, 00, 00, B4, 00, 00, 00, 05, 80, - 00, 00, 00, 68, 00, 00, 00, 00, 00, 00, 00, 00, - E8, 00, 00, 00, 08, 00, 00, 00, 28, 01, 00, 00, - 00, F0, 00, 00, 00, 74, 00, 00, 00, 00, 00, 00, + content: [ FF, 9B, E7, 80, 00, 03, 5B, 00, 00, 00, 00, 1C, + 00, 00, 00, 00, 00, 00, 00, 00, 1C, 00, 00, 00, + 18, 00, 00, 00, 84, 00, 00, 00, 03, 40, 00, 00, + 00, 10, 00, 00, 00, 94, 00, 00, 00, 03, 60, 00, + 00, 00, 20, 00, 00, 00, B4, 00, 00, 00, 05, 80, + 00, 00, 00, 68, 00, 00, 00, 00, 00, 00, 00, 00, + E8, 00, 00, 00, 08, 00, 00, 00, 28, 01, 00, 00, + 00, F0, 00, 00, 00, 74, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 01, 7D, 01, 00, A8, FF, FF, FF ] alignment: 4 - references: + references: - kind: delta32ToGOT offset: 104 target: __ZTIP1A - name: __ZTIP1A scope: hidden type: data - content: [ 10, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, - 00, 00, 00, 80, 00, 00, 00, 00, 00, 00, 00, 00, + content: [ 10, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, + 00, 00, 00, 80, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 ] merge: as-weak alignment: 16 diff --git a/lld/test/mach-o/hello-world-arm64.yaml b/lld/test/mach-o/hello-world-arm64.yaml index a85e3a6cb14..138af594099 100644 --- a/lld/test/mach-o/hello-world-arm64.yaml +++ b/lld/test/mach-o/hello-world-arm64.yaml @@ -96,7 +96,7 @@ undefined-symbols: # CHECK-PRIVATE-HEADER: sectname __stubs # CHECK-PRIVATE-HEADER-NEXT: segname __TEXT -# CHECK-PRIVATE-HEADER-NEXT: addr -# CHECK-PRIVATE-HEADER-NEXT: size -# CHECK-PRIVATE-HEADER-NEXT: offset +# CHECK-PRIVATE-HEADER-NEXT: addr +# CHECK-PRIVATE-HEADER-NEXT: size +# CHECK-PRIVATE-HEADER-NEXT: offset # CHECK-PRIVATE-HEADER-NEXT: align 2^1 (2) diff --git a/lld/test/mach-o/lit.local.cfg b/lld/test/mach-o/lit.local.cfg index 739a0994fdd..ccbf4e12fbf 100644 --- a/lld/test/mach-o/lit.local.cfg +++ b/lld/test/mach-o/lit.local.cfg @@ -1,4 +1,4 @@ # mach-o test cases encode input files in yaml and use .yaml extension -config.suffixes = ['.yaml'] +config.suffixes = ['.yaml'] config.excludes = ['Inputs'] diff --git a/lld/test/mach-o/objc-category-list-atom.yaml b/lld/test/mach-o/objc-category-list-atom.yaml index e0611712419..93974a646e0 100644 --- a/lld/test/mach-o/objc-category-list-atom.yaml +++ b/lld/test/mach-o/objc-category-list-atom.yaml @@ -17,9 +17,9 @@ sections: attributes: [ S_ATTR_NO_DEAD_STRIP ] alignment: 8 address: 0x00000000000003F8 - 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 @@ -32,7 +32,7 @@ sections: pc-rel: false extern: true symbol: 1 -undefined-symbols: +undefined-symbols: - name: __category1 type: N_UNDF scope: [ N_EXT ] @@ -47,12 +47,12 @@ page-size: 0x00000000 # Make sure we atomize the category list section by pointer sized atoms. # CHECK: path: '<linker-internal>' -# CHECK: defined-atoms: +# CHECK: defined-atoms: # CHECK: - type: objc-category-list # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] # CHECK: merge: by-content # CHECK: alignment: 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: __category2 @@ -60,11 +60,11 @@ page-size: 0x00000000 # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ] # CHECK: merge: by-content # CHECK: alignment: 8 -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: __category1 -# CHECK: undefined-atoms: +# CHECK: undefined-atoms: # CHECK: - name: __category1 # CHECK: - name: __category2 # CHECK: ... 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 72a256ef1f0..6b5bb4b8fb5 100644 --- a/lld/test/mach-o/parse-data-relocs-x86_64.yaml +++ b/lld/test/mach-o/parse-data-relocs-x86_64.yaml @@ -60,7 +60,7 @@ sections: type: S_REGULAR attributes: [ ] address: 0x000000000000000A - content: [ + content: [ # .quad _foo # No addend is needed here as we are referencing _foo directly and that is # encoded entirely in the X86_64_RELOC_UNSIGNED @@ -301,7 +301,7 @@ page-size: 0x00000000 ... -# CHECK:defined-atoms: +# CHECK:defined-atoms: # CHECK: - name: _d # CHECK: type: data # CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00, 04, 00, 00, 00, @@ -313,7 +313,7 @@ page-size: 0x00000000 # CHECK: B8, FF, FF, FF, B4, FF, FF, FF, B4, FF, FF, FF, # CHECK: {{..}}, {{..}}, {{..}}, {{..}} ] # CHECK: dead-strip: never -# CHECK: references: +# CHECK: references: # CHECK: - kind: pointer64 # CHECK: offset: 0 # CHECK: target: _foo diff --git a/lld/test/mach-o/run-tlv-pass-x86-64.yaml b/lld/test/mach-o/run-tlv-pass-x86-64.yaml index 0e648458645..dd524c067d8 100644 --- a/lld/test/mach-o/run-tlv-pass-x86-64.yaml +++ b/lld/test/mach-o/run-tlv-pass-x86-64.yaml @@ -13,17 +13,17 @@ compat-version: 0.0 current-version: 0.0 has-UUID: false OS: unknown -sections: +sections: - segment: __TEXT section: __text type: S_REGULAR attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] alignment: 16 address: 0x0000000000000000 - content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x3D, 0x00, - 0x00, 0x00, 0x00, 0xFF, 0x17, 0x8B, 0x00, 0x5D, + content: [ 0x55, 0x48, 0x89, 0xE5, 0x48, 0x8B, 0x3D, 0x00, + 0x00, 0x00, 0x00, 0xFF, 0x17, 0x8B, 0x00, 0x5D, 0xC3 ] - relocations: + relocations: - offset: 0x00000007 type: X86_64_RELOC_TLV length: 2 @@ -42,10 +42,10 @@ sections: type: S_THREAD_LOCAL_VARIABLES attributes: [ ] address: 0x0000000000000018 - content: [ 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 ] - relocations: + relocations: - offset: 0x00000010 type: X86_64_RELOC_UNSIGNED length: 3 @@ -67,12 +67,12 @@ sections: 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 ] -local-symbols: +local-symbols: - name: '_x$tlv$init' type: N_SECT sect: 2 value: 0x0000000000000014 -global-symbols: +global-symbols: - name: _main type: N_SECT scope: [ N_EXT ] diff --git a/lld/test/mach-o/use-dylib.yaml b/lld/test/mach-o/use-dylib.yaml index ddde2a8fe8d..c173cc0af35 100644 --- a/lld/test/mach-o/use-dylib.yaml +++ b/lld/test/mach-o/use-dylib.yaml @@ -2,7 +2,7 @@ # RUN: %p/Inputs/use-simple-dylib.yaml %p/Inputs/x86_64/libSystem.yaml -dylib -o %t.dylib # RUN: llvm-objdump -private-headers %t.dylib | FileCheck %s -# This test ensures that we have a LC_LOAD_DYLIB for libspecial.dylib even though we don't +# This test ensures that we have a LC_LOAD_DYLIB for libspecial.dylib even though we don't # use any atoms from it. This matches the ld64 behaviour. --- !mach-o arch: x86_64 |