1# REQUIRES: x86 2# GNU gold 1.14 (the newest version as of July 2017) seems to create 3# non-standard-compliant SHT_GROUP sections when the -r option is given. 4# 5# Such SHT_GROUP sections use section names as their signatures 6# instead of symbols pointed by sh_link field. Since it is prevalent, 7# we accept such nonstandard sections. 8 9# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 10# RUN: ld.lld %p/Inputs/sht-group-gold-r.elf %t.o -o %t.exe 11# RUN: llvm-objdump -t %t.exe | FileCheck %s 12 13# CHECK: .text 0000000000000000 bar 14# CHECK: .text 0000000000000000 foo 15 16.globl _start 17_start: 18 ret 19