forked from OSchip/llvm-project
20 lines
508 B
Plaintext
20 lines
508 B
Plaintext
|
# 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 and write section symbols point to the output
|
||
|
# .MIPS.options section.
|
||
|
#
|
||
|
# 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 -t %t.o | FileCheck %s
|
||
|
|
||
|
# REQUIRES: mips
|
||
|
|
||
|
# CHECK: Section: .MIPS.options
|