summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/sht-group-gold-r.test
blob: d1757eee6e7de44baa4986ed4992be6ec104e666 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# REQUIRES: x86
# GNU gold 1.14 (the newest version as of July 2017) seems to create
# non-standard-compliant SHT_GROUP sections when the -r option is given.
#
# Such SHT_GROUP sections use section names as their signatures
# instead of symbols pointed by sh_link field. Since it is prevalent,
# we accept such nonstandard sections.

# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld %p/Inputs/sht-group-gold-r.elf %t.o -o %t.exe
# RUN: llvm-objdump -t %t.exe | FileCheck %s

# CHECK: .text 00000000 bar
# CHECK: .text 00000000 foo

.globl _start
_start:
  ret
OpenPOWER on IntegriCloud