brintos

brintos / llvm-project-archived public Read only

0
0
Text · 740 B · 8776279 Raw
24 lines · plain
1# REQUIRES: mips2# Check handling of relocations against __gnu_local_gp symbol.3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o5# RUN: echo "SECTIONS { \6# RUN:         . = 0x10000; .text ALIGN(0x1000) : { *(.text) } \7# RUN:         . = 0x30000; .got :  { *(.got) } \8# RUN:       }" > %t.script9# RUN: ld.lld --script %t.script -o %t.exe %t.o10# RUN: llvm-objdump --no-print-imm-hex -d -t --no-show-raw-insn %t.exe | FileCheck %s11 12# CHECK: 00037ff0 l .got  00000000 .hidden _gp13# CHECK: 00011000 g .text 00000000 __start14 15# CHECK:      <__start>:16# CHECK-NEXT:    lui   $8, 317# CHECK-NEXT:    addi  $8, $8, 3275218 19  .text20  .globl  __start21__start:22  lui    $t0,%hi(__gnu_local_gp)23  addi   $t0,$t0,%lo(__gnu_local_gp)24