38 lines · plain
1// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF2// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF3// 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=MACHO4// 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=MACHO5 6// Test that we can assemble a GCC-like EH table that has 16381-16383 bytes of7// non-padding data between .ttbaseref and .ttbase. The assembler must insert8// extra padding either into the uleb128 or at the balign directive. See9// PR35809.10 11 .data12 .balign 413foo:14 .byte 0xff // LPStart omitted15 .byte 0x1 // TType encoding (uleb128)16.ifdef MACHO17 .uleb128 Lttbase-Lttbaseref18Lttbaseref:19.else20 .uleb128 .ttbase-.ttbaseref21.ttbaseref:22.endif23 .fill 128*128-1, 1, 0xcd // call site and actions tables24 .balign 425.ifdef MACHO26Lttbase:27.else28.ttbase:29.endif30 .byte 1, 2, 3, 431 32// ELF: Name: .data33// MACHO: Name: __data34// CHECK: SectionData (35// CHECK-NEXT: 0000: FF01FFFF 00CDCDCD CDCDCDCD CDCDCDCD36// CHECK: 4000: CDCDCDCD 0102030437// CHECK-NEXT: )38