• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s
2
3; Checks that a global symbol with the address of another
4; symbol generates a R_AVR_16_PM relocation, as the symbol
5; will always be in program memory.
6
7; CHECK: RELOCATION RECORDS FOR [.rela.text]:
8; CHECK-NEXT: 00000002 R_AVR_16_PM .text
9
10foo:
11	ret
12
13.globl	ptr
14ptr:
15	.short gs(foo)
16
17