[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-symbolizer / adjust-vma.s
blob5bb5a336a52c5a5304ac7fcd6fe4924ef47e4d82
1 # REQUIRES: x86-registered-target
3 .type foo,@function
4 .size foo,12
5 foo:
6 .space 10
7 nop
8 nop
10 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o -g
12 # RUN: llvm-symbolizer 0xa 0xb --print-address --obj=%t.o \
13 # RUN: | FileCheck %s --check-prefix=NORMAL
14 # RUN: llvm-symbolizer 0x10a 0x10b --print-address --adjust-vma 0x100 --obj=%t.o \
15 # RUN: | FileCheck %s --check-prefix=ADJUST
17 # Show that we can handle addresses less than the offset.
18 # RUN: llvm-symbolizer 0xa 0xb --print-address --adjust-vma 0xc --obj=%t.o \
19 # RUN: | FileCheck %s --check-prefix=OVERFLOW
21 # NORMAL: 0xa
22 # NORMAL-NEXT: foo
23 # NORMAL-NEXT: adjust-vma.s:7:0
24 # NORMAL-EMPTY:
25 # NORMAL-NEXT: 0xb
26 # NORMAL-NEXT: foo
27 # NORMAL-NEXT: adjust-vma.s:8:0
29 # ADJUST: 0x10a
30 # ADJUST-NEXT: foo
31 # ADJUST-NEXT: adjust-vma.s:7:0
32 # ADJUST-EMPTY:
33 # ADJUST-NEXT: 0x10b
34 # ADJUST-NEXT: foo
35 # ADJUST-NEXT: adjust-vma.s:8:0
37 # OVERFLOW: 0xa
38 # OVERFLOW-NEXT: ??
39 # OVERFLOW-NEXT: ??