summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/dynamic-list-empty.s
blob: 5686ce0c431b0d235dc8761208498e6bcf1c0bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# REQUIRES: x86

# BFD reports a parse error on empty lists, but it is clear how to
# handle it.

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: echo "{ };" > %t.list
# RUN: ld.lld -dynamic-list %t.list -shared %t.o -o %t.so
# RUN: llvm-readobj -r %t.so | FileCheck  %s

# CHECK:      Relocations [
# CHECK-NEXT: ]

        .globl foo
foo:
        ret

        call foo@PLT
OpenPOWER on IntegriCloud