Eric Christopher | 9cad53c | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 1 | RUN: llvm-readobj -t %p/Inputs/trivial.obj.coff-i386 \ |
| 2 | RUN: | FileCheck %s -check-prefix COFF |
| 3 | RUN: llvm-readobj -t %p/Inputs/trivial.obj.elf-i386 \ |
| 4 | RUN: | FileCheck %s -check-prefix ELF |
| 5 | |
| 6 | COFF: Symbols [ |
| 7 | COFF-NEXT: Symbol { |
Rui Ueyama | f078eff | 2014-03-18 23:37:53 +0000 | [diff] [blame] | 8 | COFF-NEXT: Name: @comp.id |
| 9 | COFF-NEXT: Value: 14766605 |
David Majnemer | f4dc456 | 2014-09-20 00:25:06 +0000 | [diff] [blame] | 10 | COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1) |
Rui Ueyama | f078eff | 2014-03-18 23:37:53 +0000 | [diff] [blame] | 11 | COFF-NEXT: BaseType: Null (0x0) |
| 12 | COFF-NEXT: ComplexType: Null (0x0) |
| 13 | COFF-NEXT: StorageClass: Static (0x3) |
| 14 | COFF-NEXT: AuxSymbolCount: 0 |
| 15 | COFF-NEXT: } |
| 16 | COFF-NEXT: Symbol { |
| 17 | COFF-NEXT: Name: @feat.00 |
| 18 | COFF-NEXT: Value: 2147484049 |
David Majnemer | f4dc456 | 2014-09-20 00:25:06 +0000 | [diff] [blame] | 19 | COFF-NEXT: Section: IMAGE_SYM_ABSOLUTE (-1) |
Rui Ueyama | f078eff | 2014-03-18 23:37:53 +0000 | [diff] [blame] | 20 | COFF-NEXT: BaseType: Null (0x0) |
| 21 | COFF-NEXT: ComplexType: Null (0x0) |
| 22 | COFF-NEXT: StorageClass: Static (0x3) |
| 23 | COFF-NEXT: AuxSymbolCount: 0 |
| 24 | COFF-NEXT: } |
| 25 | COFF-NEXT: Symbol { |
Eric Christopher | 9cad53c | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 26 | COFF-NEXT: Name: .text |
| 27 | COFF-NEXT: Value: 0 |
| 28 | COFF-NEXT: Section: .text (1) |
| 29 | COFF-NEXT: BaseType: Null (0x0) |
| 30 | COFF-NEXT: ComplexType: Null (0x0) |
| 31 | COFF-NEXT: StorageClass: Static (0x3) |
| 32 | COFF-NEXT: AuxSymbolCount: 1 |
| 33 | COFF-NEXT: AuxSectionDef { |
| 34 | COFF-NEXT: Length: 22 |
| 35 | COFF-NEXT: RelocationCount: 3 |
| 36 | COFF-NEXT: LineNumberCount: 0 |
| 37 | COFF-NEXT: Checksum: 0x0 |
| 38 | COFF-NEXT: Number: 1 |
| 39 | COFF-NEXT: Selection: 0x0 |
Eric Christopher | 9cad53c | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 40 | COFF-NEXT: } |
| 41 | COFF-NEXT: } |
| 42 | |
| 43 | ELF: Symbols [ |
| 44 | ELF-NEXT: Symbol { |
Rafael Espindola | 7c346c2 | 2013-06-05 20:33:54 +0000 | [diff] [blame] | 45 | ELF-NEXT: Name: (0) |
| 46 | ELF-NEXT: Value: 0x0 |
| 47 | ELF-NEXT: Size: 0 |
| 48 | ELF-NEXT: Binding: Local (0x0) |
| 49 | ELF-NEXT: Type: None (0x0) |
| 50 | ELF-NEXT: Other: 0 |
Rafael Espindola | cfee7ef | 2014-03-24 05:00:34 +0000 | [diff] [blame] | 51 | ELF-NEXT: Section: Undefined (0x0) |
Rafael Espindola | 7c346c2 | 2013-06-05 20:33:54 +0000 | [diff] [blame] | 52 | ELF-NEXT: } |
| 53 | ELF-NEXT: Symbol { |
Eric Christopher | 9cad53c | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 54 | ELF-NEXT: Name: trivial.ll (1) |
| 55 | ELF-NEXT: Value: 0x0 |
| 56 | ELF-NEXT: Size: 0 |
| 57 | ELF-NEXT: Binding: Local (0x0) |
| 58 | ELF-NEXT: Type: File (0x4) |
| 59 | ELF-NEXT: Other: 0 |
Rafael Espindola | cfee7ef | 2014-03-24 05:00:34 +0000 | [diff] [blame] | 60 | ELF-NEXT: Section: Absolute (0xFFF1) |
Eric Christopher | 9cad53c | 2013-04-03 18:31:38 +0000 | [diff] [blame] | 61 | ELF-NEXT: } |
| 62 | ELF-NEXT: Symbol { |
| 63 | ELF-NEXT: Name: .L.str (39) |
| 64 | ELF-NEXT: Value: 0x0 |
| 65 | ELF-NEXT: Size: 13 |
| 66 | ELF-NEXT: Binding: Local (0x0) |
| 67 | ELF-NEXT: Type: Object (0x1) |
| 68 | ELF-NEXT: Other: 0 |
| 69 | ELF-NEXT: Section: .rodata.str1.1 (0x5) |
| 70 | ELF-NEXT: } |