summaryrefslogtreecommitdiff
path: root/test/ELF/Inputs/eh-frame-pcrel-overflow.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/Inputs/eh-frame-pcrel-overflow.s')
-rw-r--r--test/ELF/Inputs/eh-frame-pcrel-overflow.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/ELF/Inputs/eh-frame-pcrel-overflow.s b/test/ELF/Inputs/eh-frame-pcrel-overflow.s
new file mode 100644
index 0000000000000..7b3cff88b466f
--- /dev/null
+++ b/test/ELF/Inputs/eh-frame-pcrel-overflow.s
@@ -0,0 +1,25 @@
+.text
+.global foo
+foo:
+ ret
+
+.section .eh_frame, "a"
+ .long 12 # Size
+ .long 0x00 # ID
+ .byte 0x01 # Version.
+
+ .byte 0x52 # Augmentation string: 'R','\0'
+ .byte 0x00
+
+ .byte 0x01
+
+ .byte 0x01 # LEB128
+ .byte 0x01 # LEB128
+
+ .byte 0x00 # DW_EH_PE_absptr
+
+ .byte 0xFF
+
+ .long 12 # Size
+ .long 0x14 # ID
+ .quad foo + 0x90000000