1 # Show that llvm-readelf properly prints the addend for relocations that do not
2 # have an associated symbol but have a negative addend.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readelf --relocations %t | FileCheck %s --check-prefix=REL
6 # RUN: llvm-readelf --dyn-relocations %t | FileCheck %s --check-prefix=DYN
8 # REL: Relocation section '.rela.text' at offset {{.*}} contains 1 entries:
9 # REL-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
10 # REL-NEXT: 0000000000000000 0000000000000000 R_X86_64_NONE ffffffffffffffff
12 # REL-NEXT: Relocation section '.rela.dyn' at offset {{.*}} contains 1 entries:
13 # REL-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
14 # REL-NEXT: 0000000000000008 0000000000000000 R_X86_64_NONE ffffffffffffffff
16 # DYN: 'RELA' relocation section at offset {{.*}} contains 24 bytes:
17 # DYN-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
18 # DYN-NEXT: 0000000000000008 0000000000000000 R_X86_64_NONE ffffffffffffffff