summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AVR/symbol_relocation.s
blob: 2c62043916cca861f8de978ab1789e473fad919d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llvm-mc -filetype=obj -triple=avr %s -mattr=avr6 | llvm-objdump -r - | FileCheck %s

; Checks that a global symbol with the address of another
; symbol generates a R_AVR_16_PM relocation, as the symbol
; will always be in program memory.

; CHECK: RELOCATION RECORDS FOR [.rela.text]:
; CHECK-NEXT: 00000002 R_AVR_16_PM .text

foo:
	ret

.globl	ptr
ptr:
	.short	foo

OpenPOWER on IntegriCloud