You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
414 B
18 lines
414 B
7 months ago
|
; 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 [.text]:
|
||
|
; CHECK-NEXT: OFFSET TYPE VALUE
|
||
|
; CHECK-NEXT: 00000002 R_AVR_16_PM .text
|
||
|
|
||
|
foo:
|
||
|
ret
|
||
|
|
||
|
.globl ptr
|
||
|
ptr:
|
||
|
.short gs(foo)
|
||
|
|