1# Check that if input file contains .MIPS.options section and symbol 2# points to the section and the linker generates a relocatable output, 3# LLD does not crash. 4# 5# PR 27878 6# 7# Input object file created using the following script: 8# % cat t.s 9# .text 10# nop 11# % as -mabi=64 -mips64r2 t.s 12 13# RUN: ld.lld -r %p/Inputs/mips-options.o -o %t.o 14# RUN: llvm-readobj -S %t.o | FileCheck %s 15 16# REQUIRES: mips 17 18# CHECK: Name: .MIPS.options 19