File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF
2
2
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF
3
- // RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
4
- // RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
3
+ // RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 --defsym MACHO=1 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
4
+ // RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 --defsym MACHO=1 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
5
5
6
6
// Test that we can assemble a GCC-like EH table that has 16381-16383 bytes of
7
7
// non-padding data between .ttbaseref and .ttbase. The assembler must insert
13
13
foo:
14
14
.byte 0xff // LPStart omitted
15
15
.byte 0x1 // TType encoding (uleb128)
16
+ .ifdef MACHO
17
+ .uleb128 Lttbase-Lttbaseref
18
+ Lttbaseref:
19
+ .else
16
20
.uleb128 .ttbase-.ttbaseref
17
21
.ttbaseref:
22
+ .endif
18
23
.fill 128*128 -1 , 1 , 0xcd // call site and actions tables
19
24
.balign 4
25
+ .ifdef MACHO
26
+ Lttbase:
27
+ .else
20
28
.ttbase:
29
+ .endif
21
30
.byte 1 , 2 , 3 , 4
22
31
23
32
// ELF: Name: .data
You can’t perform that action at this time.
0 commit comments