Author: labath Date: Thu Dec 13 04:13:29 2018 New Revision: 349027 URL: http://llvm.org/viewvc/llvm-project?rev=349027&view=rev Log: Classify tests in lit/Modules
We've recently developed a convention where the tests are placed into subfolders according to the object file type. This applies that convention to existing tests too. Added: lldb/trunk/lit/Modules/ELF/ lldb/trunk/lit/Modules/ELF/build-id-case.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/build-id-case.yaml lldb/trunk/lit/Modules/ELF/compressed-sections.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/compressed-sections.yaml lldb/trunk/lit/Modules/ELF/duplicate-section.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/elf-duplicate-section.yaml lldb/trunk/lit/Modules/ELF/many-sections.s - copied, changed from r348936, lldb/trunk/lit/Modules/elf-many-sections.s lldb/trunk/lit/Modules/ELF/section-types.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/elf-section-types.yaml lldb/trunk/lit/Modules/ELF/short-build-id.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/short-build-id.yaml lldb/trunk/lit/Modules/MachO/lc_build_version.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/lc_build_version.yaml lldb/trunk/lit/Modules/MachO/lc_build_version_notools.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/lc_build_version_notools.yaml lldb/trunk/lit/Modules/MachO/lc_version_min.yaml - copied, changed from r348936, lldb/trunk/lit/Modules/lc_version_min.yaml Removed: lldb/trunk/lit/Modules/build-id-case.yaml lldb/trunk/lit/Modules/compressed-sections.yaml lldb/trunk/lit/Modules/elf-duplicate-section.yaml lldb/trunk/lit/Modules/elf-many-sections.s lldb/trunk/lit/Modules/elf-section-types.yaml lldb/trunk/lit/Modules/lc_build_version.yaml lldb/trunk/lit/Modules/lc_build_version_notools.yaml lldb/trunk/lit/Modules/lc_version_min.yaml lldb/trunk/lit/Modules/short-build-id.yaml Copied: lldb/trunk/lit/Modules/ELF/build-id-case.yaml (from r348936, lldb/trunk/lit/Modules/build-id-case.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/build-id-case.yaml?p2=lldb/trunk/lit/Modules/ELF/build-id-case.yaml&p1=lldb/trunk/lit/Modules/build-id-case.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/ELF/compressed-sections.yaml (from r348936, lldb/trunk/lit/Modules/compressed-sections.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/compressed-sections.yaml?p2=lldb/trunk/lit/Modules/ELF/compressed-sections.yaml&p1=lldb/trunk/lit/Modules/compressed-sections.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/ELF/duplicate-section.yaml (from r348936, lldb/trunk/lit/Modules/elf-duplicate-section.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/duplicate-section.yaml?p2=lldb/trunk/lit/Modules/ELF/duplicate-section.yaml&p1=lldb/trunk/lit/Modules/elf-duplicate-section.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/ELF/many-sections.s (from r348936, lldb/trunk/lit/Modules/elf-many-sections.s) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/many-sections.s?p2=lldb/trunk/lit/Modules/ELF/many-sections.s&p1=lldb/trunk/lit/Modules/elf-many-sections.s&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/ELF/section-types.yaml (from r348936, lldb/trunk/lit/Modules/elf-section-types.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/section-types.yaml?p2=lldb/trunk/lit/Modules/ELF/section-types.yaml&p1=lldb/trunk/lit/Modules/elf-section-types.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/ELF/short-build-id.yaml (from r348936, lldb/trunk/lit/Modules/short-build-id.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/short-build-id.yaml?p2=lldb/trunk/lit/Modules/ELF/short-build-id.yaml&p1=lldb/trunk/lit/Modules/short-build-id.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/MachO/lc_build_version.yaml (from r348936, lldb/trunk/lit/Modules/lc_build_version.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/MachO/lc_build_version.yaml?p2=lldb/trunk/lit/Modules/MachO/lc_build_version.yaml&p1=lldb/trunk/lit/Modules/lc_build_version.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/MachO/lc_build_version_notools.yaml (from r348936, lldb/trunk/lit/Modules/lc_build_version_notools.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/MachO/lc_build_version_notools.yaml?p2=lldb/trunk/lit/Modules/MachO/lc_build_version_notools.yaml&p1=lldb/trunk/lit/Modules/lc_build_version_notools.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Copied: lldb/trunk/lit/Modules/MachO/lc_version_min.yaml (from r348936, lldb/trunk/lit/Modules/lc_version_min.yaml) URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/MachO/lc_version_min.yaml?p2=lldb/trunk/lit/Modules/MachO/lc_version_min.yaml&p1=lldb/trunk/lit/Modules/lc_version_min.yaml&r1=348936&r2=349027&rev=349027&view=diff ============================================================================== (empty) Removed: lldb/trunk/lit/Modules/build-id-case.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/build-id-case.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/build-id-case.yaml (original) +++ lldb/trunk/lit/Modules/build-id-case.yaml (removed) @@ -1,41 +0,0 @@ -# RUN: mkdir -p %t/.build-id/1b -# RUN: yaml2obj %s > %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug -# RUN: cd %t -# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out -# RUN: lldb-test object-file %t/stripped.out | FileCheck %s - -# CHECK: Name: .debug_frame -# CHECK-NEXT: Type: dwarf-frame - ---- !ELF -FileHeader: - Class: ELFCLASS64 - Data: ELFDATA2LSB - Type: ET_EXEC - Machine: EM_X86_64 - Entry: 0x00000000004003D0 -Sections: - - Name: .note.gnu.build-id - Type: SHT_NOTE - Flags: [ SHF_ALLOC ] - Address: 0x0000000000400274 - AddressAlign: 0x0000000000000004 - Content: 040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9 - - Name: .text - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Address: 0x00000000004003D0 - AddressAlign: 0x0000000000000010 - Content: DEADBEEFBAADF00D - - Name: .debug_frame - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000008 - Content: DEADBEEFBAADF00D -Symbols: - Local: - - Name: main - Type: STT_FUNC - Section: .text - Value: 0x00000000004003D0 - Size: 0x0000000000000008 -... Removed: lldb/trunk/lit/Modules/compressed-sections.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/compressed-sections.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/compressed-sections.yaml (original) +++ lldb/trunk/lit/Modules/compressed-sections.yaml (removed) @@ -1,33 +0,0 @@ -# REQUIRES: zlib -# RUN: yaml2obj %s > %t -# RUN: lldb-test object-file --contents %t | FileCheck %s ---- !ELF -FileHeader: - Class: ELFCLASS32 - Data: ELFDATA2LSB - Type: ET_REL - Machine: EM_386 -Sections: - - Name: .hello_elf - Type: SHT_PROGBITS - Flags: [ SHF_COMPRESSED ] - Content: 010000000800000001000000789c5330700848286898000009c802c1 - - Name: .bogus - Type: SHT_PROGBITS - Flags: [ SHF_COMPRESSED ] - Content: deadbeefbaadf00d - -# CHECK: Name: .hello_elf -# CHECK-NEXT: Type: regular -# CHECK-NEXT: Thread specific: no -# CHECK-NEXT: VM size: 0 -# CHECK-NEXT: File size: 28 -# CHECK-NEXT: Data: -# CHECK-NEXT: 20304050 60708090 - -# CHECK: Name: .bogus -# CHECK-NEXT: Type: regular -# CHECK-NEXT: Thread specific: no -# CHECK-NEXT: VM size: 0 -# CHECK-NEXT: File size: 8 -# CHECK-NEXT: Data: () Removed: lldb/trunk/lit/Modules/elf-duplicate-section.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/elf-duplicate-section.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/elf-duplicate-section.yaml (original) +++ lldb/trunk/lit/Modules/elf-duplicate-section.yaml (removed) @@ -1,42 +0,0 @@ -# RUN: mkdir -p %t/.build-id/1b -# RUN: yaml2obj %s > %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug -# RUN: cd %t -# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out -# RUN: lldb-test object-file %t/stripped.out | FileCheck %s - -# Make sure that the debug_frame section is present only once. -# CHECK: Name: .debug_frame -# CHECK-NOT: .debug_frame - ---- !ELF -FileHeader: - Class: ELFCLASS64 - Data: ELFDATA2LSB - Type: ET_EXEC - Machine: EM_X86_64 - Entry: 0x00000000004003D0 -Sections: - - Name: .note.gnu.build-id - Type: SHT_NOTE - Flags: [ SHF_ALLOC ] - Address: 0x0000000000400274 - AddressAlign: 0x0000000000000004 - Content: 040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9 - - Name: .text - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Address: 0x00000000004003D0 - AddressAlign: 0x0000000000000010 - Content: DEADBEEFBAADF00D - - Name: .debug_frame - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000008 - Content: DEADBEEFBAADF00D -Symbols: - Local: - - Name: main - Type: STT_FUNC - Section: .text - Value: 0x00000000004003D0 - Size: 0x0000000000000008 -... Removed: lldb/trunk/lit/Modules/elf-many-sections.s URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/elf-many-sections.s?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/elf-many-sections.s (original) +++ lldb/trunk/lit/Modules/elf-many-sections.s (removed) @@ -1,72 +0,0 @@ -# REQUIRES: x86 -# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o %t -# RUN: lldb-test object-file %t | FileCheck %s - -## Check that we are able to parse ELF files with more than SHN_LORESERVE -## sections. This generates a file that contains 64k sections from -## aaaaaaaa..dddddddd, plus a couple of standard ones (.strtab, etc.) -## Check the number is correct plus the names of a couple of chosen sections. - -# CHECK: Showing 65541 sections -# CHECK: Name: aaaaaaaa -# CHECK: Name: bbbbbbbb -# CHECK: Name: cccccccc -# CHECK: Name: abcdabcd -# CHECK: Name: dddddddd - -.macro gen_sections4 x - .section a\x - .section b\x - .section c\x - .section d\x -.endm - -.macro gen_sections16 x - gen_sections4 a\x - gen_sections4 b\x - gen_sections4 c\x - gen_sections4 d\x -.endm - -.macro gen_sections64 x - gen_sections16 a\x - gen_sections16 b\x - gen_sections16 c\x - gen_sections16 d\x -.endm - -.macro gen_sections256 x - gen_sections64 a\x - gen_sections64 b\x - gen_sections64 c\x - gen_sections64 d\x -.endm - -.macro gen_sections1024 x - gen_sections256 a\x - gen_sections256 b\x - gen_sections256 c\x - gen_sections256 d\x -.endm - -.macro gen_sections4096 x - gen_sections1024 a\x - gen_sections1024 b\x - gen_sections1024 c\x - gen_sections1024 d\x -.endm - -.macro gen_sections16384 x - gen_sections4096 a\x - gen_sections4096 b\x - gen_sections4096 c\x - gen_sections4096 d\x -.endm - -gen_sections16384 a -gen_sections16384 b -gen_sections16384 c -gen_sections16384 d - -.global _start -_start: Removed: lldb/trunk/lit/Modules/elf-section-types.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/elf-section-types.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/elf-section-types.yaml (original) +++ lldb/trunk/lit/Modules/elf-section-types.yaml (removed) @@ -1,81 +0,0 @@ -# RUN: yaml2obj %s > %t -# RUN: lldb-test object-file %t | FileCheck %s - -# CHECK-LABEL: Name: .text -# CHECK-NEXT: Type: code - -# CHECK-LABEL: Name: .debug_info -# CHECK-NEXT: Type: dwarf-info - -# CHECK-LABEL: Name: .debug_types -# CHECK-NEXT: Type: dwarf-types - -# CHECK-LABEL: Name: .debug_names -# CHECK-NEXT: Type: dwarf-names - -# CHECK-LABEL: Name: .gnu_debugaltlink -# CHECK-NEXT: Type: dwarf-gnu-debugaltlink - -# CHECK-LABEL: Name: __codesection -# CHECK-NEXT: Type: code - -# CHECK-LABEL: Name: .data -# CHECK-NEXT: Type: data -# CHECK: Thread specific: no - -# CHECK-LABEL: Name: .tdata -# CHECK-NEXT: Type: data -# CHECK-NEXT: Thread specific: yes - -# CHECK-LABEL: Name: .tbss -# CHECK-NEXT: Type: zero-fill -# CHECK-NEXT: Thread specific: yes - ---- !ELF -FileHeader: - Class: ELFCLASS64 - Data: ELFDATA2LSB - Type: ET_DYN - Machine: EM_X86_64 - Entry: 0x00000000000007A0 -Sections: - - Name: .text - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Content: DEADBEEFBAADF00D - - Name: .debug_info - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000001 - Content: DEADBEEFBAADF00D - - Name: .debug_types - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000001 - Content: DEADBEEFBAADF00D - - Name: .debug_names - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000001 - Content: DEADBEEFBAADF00D - - Name: .gnu_debugaltlink - Type: SHT_PROGBITS - AddressAlign: 0x0000000000000001 - Content: DEADBEEFBAADF00D - - Name: __codesection - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Content: DEADBEEFBAADF00D - - Name: .data - Type: SHT_PROGBITS - Flags: [ SHF_WRITE, SHF_ALLOC ] - AddressAlign: 0x0000000000000004 - Content: 2F000000 - - Name: .tdata - Type: SHT_PROGBITS - Flags: [ SHF_WRITE, SHF_ALLOC, SHF_TLS ] - AddressAlign: 0x0000000000000004 - Content: 2F000000 - - Name: .tbss - Type: SHT_NOBITS - Flags: [ SHF_WRITE, SHF_ALLOC, SHF_TLS ] - AddressAlign: 0x0000000000000004 - Size: 0x0000000000000004 -... Removed: lldb/trunk/lit/Modules/lc_build_version.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/lc_build_version.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/lc_build_version.yaml (original) +++ lldb/trunk/lit/Modules/lc_build_version.yaml (removed) @@ -1,209 +0,0 @@ -# RUN: yaml2obj %s > %t.out -# RUN: lldb-test symbols %t.out | FileCheck %s -# Test that the deployment target is parsed from the load commands. -# CHECK: x86_64-apple-macosx10.14.0 ---- !mach-o -FileHeader: - magic: 0xFEEDFACF - cputype: 0x01000007 - cpusubtype: 0x80000003 - filetype: 0x00000002 - ncmds: 14 - sizeofcmds: 744 - flags: 0x00200085 - reserved: 0x00000000 -LoadCommands: - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __PAGEZERO - vmaddr: 0 - vmsize: 4294967296 - fileoff: 0 - filesize: 0 - maxprot: 0 - initprot: 0 - nsects: 0 - flags: 0 - - cmd: LC_SEGMENT_64 - cmdsize: 232 - segname: __TEXT - vmaddr: 4294967296 - vmsize: 4096 - fileoff: 0 - filesize: 4096 - maxprot: 7 - initprot: 5 - nsects: 2 - flags: 0 - Sections: - - sectname: __text - segname: __TEXT - addr: 0x0000000100000FB0 - size: 8 - offset: 0x00000FB0 - align: 4 - reloff: 0x00000000 - nreloc: 0 - flags: 0x80000400 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - sectname: __unwind_info - segname: __TEXT - addr: 0x0000000100000FB8 - size: 72 - offset: 0x00000FB8 - align: 2 - reloff: 0x00000000 - nreloc: 0 - flags: 0x00000000 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __LINKEDIT - vmaddr: 4294971392 - vmsize: 4096 - fileoff: 4096 - filesize: 152 - maxprot: 7 - initprot: 1 - nsects: 0 - flags: 0 - - cmd: LC_DYLD_INFO_ONLY - cmdsize: 48 - rebase_off: 0 - rebase_size: 0 - bind_off: 0 - bind_size: 0 - weak_bind_off: 0 - weak_bind_size: 0 - lazy_bind_off: 0 - lazy_bind_size: 0 - export_off: 4096 - export_size: 48 - - cmd: LC_SYMTAB - cmdsize: 24 - symoff: 4152 - nsyms: 3 - stroff: 4200 - strsize: 48 - - cmd: LC_DYSYMTAB - cmdsize: 80 - ilocalsym: 0 - nlocalsym: 0 - iextdefsym: 0 - nextdefsym: 2 - iundefsym: 2 - nundefsym: 1 - tocoff: 0 - ntoc: 0 - modtaboff: 0 - nmodtab: 0 - extrefsymoff: 0 - nextrefsyms: 0 - indirectsymoff: 0 - nindirectsyms: 0 - extreloff: 0 - nextrel: 0 - locreloff: 0 - nlocrel: 0 - - cmd: LC_LOAD_DYLINKER - cmdsize: 32 - name: 12 - PayloadString: /usr/lib/dyld - ZeroPadBytes: 7 - - cmd: LC_UUID - cmdsize: 24 - uuid: 8F41E140-23B9-3720-AC28-4E7AF9D159BA - - cmd: LC_BUILD_VERSION - cmdsize: 32 - platform: 1 - minos: 658944 - sdk: 658944 - ntools: 1 - Tools: - - tool: 3 - version: 26738944 - - cmd: LC_SOURCE_VERSION - cmdsize: 16 - version: 0 - - cmd: LC_MAIN - cmdsize: 24 - entryoff: 4016 - stacksize: 0 - - cmd: LC_LOAD_DYLIB - cmdsize: 56 - dylib: - name: 24 - timestamp: 2 - current_version: 82102276 - compatibility_version: 65536 - PayloadString: /usr/lib/libSystem.B.dylib - ZeroPadBytes: 6 - - cmd: LC_FUNCTION_STARTS - cmdsize: 16 - dataoff: 4144 - datasize: 8 - - cmd: LC_DATA_IN_CODE - cmdsize: 16 - dataoff: 4152 - datasize: 0 -LinkEditData: - ExportTrie: - TerminalSize: 0 - NodeOffset: 0 - Name: '' - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 0 - NodeOffset: 5 - Name: _ - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 2 - NodeOffset: 33 - Name: _mh_execute_header - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - - TerminalSize: 3 - NodeOffset: 37 - Name: main - Flags: 0x0000000000000000 - Address: 0x0000000000000FB0 - Other: 0x0000000000000000 - ImportName: '' - NameList: - - n_strx: 2 - n_type: 0x0F - n_sect: 1 - n_desc: 16 - n_value: 4294967296 - - n_strx: 22 - n_type: 0x0F - n_sect: 1 - n_desc: 0 - n_value: 4294971312 - - n_strx: 28 - n_type: 0x01 - n_sect: 0 - n_desc: 256 - n_value: 0 - StringTable: - - ' ' - - __mh_execute_header - - _main - - dyld_stub_binder - - '' - - '' - - '' -... Removed: lldb/trunk/lit/Modules/lc_build_version_notools.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/lc_build_version_notools.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/lc_build_version_notools.yaml (original) +++ lldb/trunk/lit/Modules/lc_build_version_notools.yaml (removed) @@ -1,206 +0,0 @@ -# RUN: yaml2obj %s > %t.out -# RUN: lldb-test symbols %t.out | FileCheck %s -# Test that the deployment target is parsed from the load commands. -# CHECK: x86_64-apple-macosx10.14.0 ---- !mach-o -FileHeader: - magic: 0xFEEDFACF - cputype: 0x01000007 - cpusubtype: 0x80000003 - filetype: 0x00000002 - ncmds: 14 - sizeofcmds: 738 - flags: 0x00200085 - reserved: 0x00000000 -LoadCommands: - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __PAGEZERO - vmaddr: 0 - vmsize: 4294967296 - fileoff: 0 - filesize: 0 - maxprot: 0 - initprot: 0 - nsects: 0 - flags: 0 - - cmd: LC_SEGMENT_64 - cmdsize: 232 - segname: __TEXT - vmaddr: 4294967296 - vmsize: 4096 - fileoff: 0 - filesize: 4096 - maxprot: 7 - initprot: 5 - nsects: 2 - flags: 0 - Sections: - - sectname: __text - segname: __TEXT - addr: 0x0000000100000FB0 - size: 8 - offset: 0x00000FB0 - align: 4 - reloff: 0x00000000 - nreloc: 0 - flags: 0x80000400 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - sectname: __unwind_info - segname: __TEXT - addr: 0x0000000100000FB8 - size: 72 - offset: 0x00000FB8 - align: 2 - reloff: 0x00000000 - nreloc: 0 - flags: 0x00000000 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __LINKEDIT - vmaddr: 4294971392 - vmsize: 4096 - fileoff: 4096 - filesize: 152 - maxprot: 7 - initprot: 1 - nsects: 0 - flags: 0 - - cmd: LC_DYLD_INFO_ONLY - cmdsize: 48 - rebase_off: 0 - rebase_size: 0 - bind_off: 0 - bind_size: 0 - weak_bind_off: 0 - weak_bind_size: 0 - lazy_bind_off: 0 - lazy_bind_size: 0 - export_off: 4096 - export_size: 48 - - cmd: LC_SYMTAB - cmdsize: 24 - symoff: 4152 - nsyms: 3 - stroff: 4200 - strsize: 48 - - cmd: LC_DYSYMTAB - cmdsize: 80 - ilocalsym: 0 - nlocalsym: 0 - iextdefsym: 0 - nextdefsym: 2 - iundefsym: 2 - nundefsym: 1 - tocoff: 0 - ntoc: 0 - modtaboff: 0 - nmodtab: 0 - extrefsymoff: 0 - nextrefsyms: 0 - indirectsymoff: 0 - nindirectsyms: 0 - extreloff: 0 - nextrel: 0 - locreloff: 0 - nlocrel: 0 - - cmd: LC_LOAD_DYLINKER - cmdsize: 32 - name: 12 - PayloadString: /usr/lib/dyld - ZeroPadBytes: 7 - - cmd: LC_UUID - cmdsize: 24 - uuid: 8F41E140-23B9-3720-AC28-4E7AF9D159BA - - cmd: LC_BUILD_VERSION - cmdsize: 24 - platform: 1 - minos: 658944 - sdk: 658944 - ntools: 0 - - cmd: LC_SOURCE_VERSION - cmdsize: 16 - version: 0 - - cmd: LC_MAIN - cmdsize: 24 - entryoff: 4016 - stacksize: 0 - - cmd: LC_LOAD_DYLIB - cmdsize: 56 - dylib: - name: 24 - timestamp: 2 - current_version: 82102276 - compatibility_version: 65536 - PayloadString: /usr/lib/libSystem.B.dylib - ZeroPadBytes: 6 - - cmd: LC_FUNCTION_STARTS - cmdsize: 16 - dataoff: 4144 - datasize: 8 - - cmd: LC_DATA_IN_CODE - cmdsize: 16 - dataoff: 4152 - datasize: 0 -LinkEditData: - ExportTrie: - TerminalSize: 0 - NodeOffset: 0 - Name: '' - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 0 - NodeOffset: 5 - Name: _ - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 2 - NodeOffset: 33 - Name: _mh_execute_header - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - - TerminalSize: 3 - NodeOffset: 37 - Name: main - Flags: 0x0000000000000000 - Address: 0x0000000000000FB0 - Other: 0x0000000000000000 - ImportName: '' - NameList: - - n_strx: 2 - n_type: 0x0F - n_sect: 1 - n_desc: 16 - n_value: 4294967296 - - n_strx: 22 - n_type: 0x0F - n_sect: 1 - n_desc: 0 - n_value: 4294971312 - - n_strx: 28 - n_type: 0x01 - n_sect: 0 - n_desc: 256 - n_value: 0 - StringTable: - - ' ' - - __mh_execute_header - - _main - - dyld_stub_binder - - '' - - '' - - '' -... Removed: lldb/trunk/lit/Modules/lc_version_min.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/lc_version_min.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/lc_version_min.yaml (original) +++ lldb/trunk/lit/Modules/lc_version_min.yaml (removed) @@ -1,205 +0,0 @@ -# RUN: yaml2obj %s > %t.out -# RUN: lldb-test object-file %t.out | FileCheck %s - -# Test that the deployment target is parsed from the load commands. -# CHECK: Architecture: x86_64-apple-macosx10.9.0 ---- !mach-o -FileHeader: - magic: 0xFEEDFACF - cputype: 0x01000007 - cpusubtype: 0x80000003 - filetype: 0x00000002 - ncmds: 14 - sizeofcmds: 728 - flags: 0x00200085 - reserved: 0x00000000 -LoadCommands: - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __PAGEZERO - vmaddr: 0 - vmsize: 4294967296 - fileoff: 0 - filesize: 0 - maxprot: 0 - initprot: 0 - nsects: 0 - flags: 0 - - cmd: LC_SEGMENT_64 - cmdsize: 232 - segname: __TEXT - vmaddr: 4294967296 - vmsize: 4096 - fileoff: 0 - filesize: 4096 - maxprot: 7 - initprot: 5 - nsects: 2 - flags: 0 - Sections: - - sectname: __text - segname: __TEXT - addr: 0x0000000100000FB0 - size: 8 - offset: 0x00000FB0 - align: 0 - reloff: 0x00000000 - nreloc: 0 - flags: 0x80000400 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - sectname: __unwind_info - segname: __TEXT - addr: 0x0000000100000FB8 - size: 72 - offset: 0x00000FB8 - align: 2 - reloff: 0x00000000 - nreloc: 0 - flags: 0x00000000 - reserved1: 0x00000000 - reserved2: 0x00000000 - reserved3: 0x00000000 - - cmd: LC_SEGMENT_64 - cmdsize: 72 - segname: __LINKEDIT - vmaddr: 4294971392 - vmsize: 4096 - fileoff: 4096 - filesize: 152 - maxprot: 7 - initprot: 1 - nsects: 0 - flags: 0 - - cmd: LC_DYLD_INFO_ONLY - cmdsize: 48 - rebase_off: 0 - rebase_size: 0 - bind_off: 0 - bind_size: 0 - weak_bind_off: 0 - weak_bind_size: 0 - lazy_bind_off: 0 - lazy_bind_size: 0 - export_off: 4096 - export_size: 48 - - cmd: LC_SYMTAB - cmdsize: 24 - symoff: 4152 - nsyms: 3 - stroff: 4200 - strsize: 48 - - cmd: LC_DYSYMTAB - cmdsize: 80 - ilocalsym: 0 - nlocalsym: 0 - iextdefsym: 0 - nextdefsym: 2 - iundefsym: 2 - nundefsym: 1 - tocoff: 0 - ntoc: 0 - modtaboff: 0 - nmodtab: 0 - extrefsymoff: 0 - nextrefsyms: 0 - indirectsymoff: 0 - nindirectsyms: 0 - extreloff: 0 - nextrel: 0 - locreloff: 0 - nlocrel: 0 - - cmd: LC_LOAD_DYLINKER - cmdsize: 32 - name: 12 - PayloadString: /usr/lib/dyld - ZeroPadBytes: 7 - - cmd: LC_UUID - cmdsize: 24 - uuid: E75E737C-4FB3-312D-9B17-10987F48F957 - - cmd: LC_VERSION_MIN_MACOSX - cmdsize: 16 - version: 657664 - sdk: 658944 - - cmd: LC_SOURCE_VERSION - cmdsize: 16 - version: 0 - - cmd: LC_MAIN - cmdsize: 24 - entryoff: 4016 - stacksize: 0 - - cmd: LC_LOAD_DYLIB - cmdsize: 56 - dylib: - name: 24 - timestamp: 2 - current_version: 82102276 - compatibility_version: 65536 - PayloadString: /usr/lib/libSystem.B.dylib - ZeroPadBytes: 6 - - cmd: LC_FUNCTION_STARTS - cmdsize: 16 - dataoff: 4144 - datasize: 8 - - cmd: LC_DATA_IN_CODE - cmdsize: 16 - dataoff: 4152 - datasize: 0 -LinkEditData: - ExportTrie: - TerminalSize: 0 - NodeOffset: 0 - Name: '' - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 0 - NodeOffset: 5 - Name: _ - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - Children: - - TerminalSize: 2 - NodeOffset: 33 - Name: _mh_execute_header - Flags: 0x0000000000000000 - Address: 0x0000000000000000 - Other: 0x0000000000000000 - ImportName: '' - - TerminalSize: 3 - NodeOffset: 37 - Name: main - Flags: 0x0000000000000000 - Address: 0x0000000000000FB0 - Other: 0x0000000000000000 - ImportName: '' - NameList: - - n_strx: 2 - n_type: 0x0F - n_sect: 1 - n_desc: 16 - n_value: 4294967296 - - n_strx: 22 - n_type: 0x0F - n_sect: 1 - n_desc: 0 - n_value: 4294971312 - - n_strx: 28 - n_type: 0x01 - n_sect: 0 - n_desc: 256 - n_value: 0 - StringTable: - - ' ' - - __mh_execute_header - - _main - - dyld_stub_binder - - '' - - '' - - '' -... Removed: lldb/trunk/lit/Modules/short-build-id.yaml URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/short-build-id.yaml?rev=349026&view=auto ============================================================================== --- lldb/trunk/lit/Modules/short-build-id.yaml (original) +++ lldb/trunk/lit/Modules/short-build-id.yaml (removed) @@ -1,26 +0,0 @@ -# RUN: yaml2obj %s >%t -# RUN: lldb-test object-file %t | FileCheck %s - -# CHECK: UUID: 333059A4-3CC3-D5F9 - ---- !ELF -FileHeader: - Class: ELFCLASS64 - Data: ELFDATA2LSB - Type: ET_EXEC - Machine: EM_X86_64 - Entry: 0x0000000000201000 -Sections: - - Name: .note.gnu.build-id - Type: SHT_NOTE - Flags: [ SHF_ALLOC ] - Address: 0x0000000000200190 - AddressAlign: 0x0000000000000004 - Content: 040000000800000003000000474E5500333059A43CC3D5F9 - - Name: .text - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Address: 0x0000000000201000 - AddressAlign: 0x0000000000000004 - Content: '' -... _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits