xref: /llvm-project-15.0.7/lld/test/ELF/mips-nonalloc.s (revision 0d4e6519)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: mips
2# Check reading addends for relocations in non-allocatable sections.
3
4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t1.o
5# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
6# RUN:         %S/Inputs/mips-nonalloc.s -o %t2.o
7# RUN: ld.lld %t1.o %t2.o -o %t.exe
8# RUN: llvm-objdump -t -s %t.exe | FileCheck %s
9
10# CHECK: [[SYM:[0-9a-f]+]]  .text  00000000 __start
11
12# CHECK:      Contents of section .debug_info:
13# CHECK-NEXT:  0000 ffffffff [[SYM]] [[SYM]]
14#                            ^-------^-- __start
15
16
17  .global __start
18__start:
19  nop
20
21.section .debug_info
22  .word 0xffffffff
23  .word __start
24

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026