[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / eh-frame-pcrel-overflow.s
blob3dfcf9ee1a7f9ad4eecf000938a8bf072c85e0f8
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/eh-frame-pcrel-overflow.s -o %t1.o
5 # RUN: ld.lld --eh-frame-hdr -Ttext=0x90000000 %t.o -o /dev/null
6 # RUN: not ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null 2>&1 | FileCheck %s
7 # RUN: ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s --check-prefix=WARN
8 # CHECK: error: {{.*}}.o:(.eh_frame): PC offset is too large: 0x90001054
9 # WARN: warning: {{.*}}.o:(.eh_frame): PC offset is too large: 0x90001054
11 .text
12 .global _start
13 _start:
14 ret
16 .section .eh_frame,"a",@unwind
17 .long 12 # Size
18 .long 0x00 # ID
19 .byte 0x01 # Version.
21 .byte 0x52 # Augmentation string: 'R','\0'
22 .byte 0x00
24 .byte 0x01
26 .byte 0x01 # LEB128
27 .byte 0x01 # LEB128
29 .byte 0x00 # DW_EH_PE_absptr
31 .byte 0xFF
33 .long 12 # Size
34 .long 0x14 # ID
35 .quad _start + 0x70000000