• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: rm -rf %t && mkdir -p %t
2# RUN: llvm-mc -triple=arm-linux-gnueabihf -filetype=obj -o %t/reloc.o %s
3# RUN: llvm-rtdyld -triple=arm-linux-gnueabihf -verify -map-section reloc.o,.ARM.exidx=0x6000 -map-section reloc.o,.text=0x4000  -dummy-extern __aeabi_unwind_cpp_pr0=0x1234 -check=%s %t/reloc.o
4
5        .text
6        .syntax unified
7        .eabi_attribute 67, "2.09"      @ Tag_conformance
8        .cpu    cortex-a8
9        .fpu    neon
10        .file   "reloc.c"
11        .globl  g
12        .align  2
13        .type   g,%function
14g:
15        .fnstart
16        movw    r0, #1
17        bx      lr
18        .Lfunc_end0:
19        .size   g, .Lfunc_end0-g
20        .fnend
21
22# rtdyld-check: *{4}(section_addr(reloc.o, .ARM.exidx)) = (g - (section_addr(reloc.o, .ARM.exidx))) & 0x7fffffff
23# Compat unwind info: finish(0xb0), finish(0xb0), finish(0xb0)
24# rtdyld-check: *{4}(section_addr(reloc.o, .ARM.exidx) + 0x4) = 0x80b0b0b0
25