1// Check that llvm-objdump does not attempt to disassemble symbols outside 2// of section boundaries. 3// RUN: llvm-objdump -d -t %p/Inputs/out-of-section-sym.elf-i386 >%t0 4// RUN: llvm-objdump -dt %p/Inputs/out-of-section-sym.elf-i386 >%t1 5// RUN: cmp %t0 %t1 6// RUN: FileCheck --input-file %t0 %s 7 8CHECK: SYMBOL TABLE: 9CHECK-NEXT: 00000010 l d .text 00000000 .text 10CHECK-NEXT: 00000010 l .text 00000000 _start 11CHECK-NEXT: 00000020 g .text 00000000 _fdata 12CHECK-NEXT: 00000010 g .text 00000000 _ftext 13CHECK-EMPTY: 14CHECK-NEXT: Disassembly of section .text: 15CHECK-EMPTY: 16CHECK-NEXT: <_start>: 17CHECK-NEXT: 10: c3 retl 18