aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/mips-options-r.test
blob: 40c61c0d2bac38af5aa981600c50e32924feb89c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Check that if input file contains .MIPS.options section and symbol
# points to the section and the linker generates a relocatable output,
# LLD does not crash.
#
# PR 27878
#
# Input object file created using the following script:
# % cat t.s
#   .text
#   nop
# % as -mabi=64 -mips64r2 t.s

# RUN: ld.lld -r %p/Inputs/mips-options.o -o %t.o
# RUN: llvm-readobj -s %t.o | FileCheck %s

# REQUIRES: mips

# CHECK: Name: .MIPS.options