• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4# RUN: ld.lld -shared %t.o -o %t2.so
5# RUN: echo "{ local: *; };" > %t.script
6# RUN: ld.lld --version-script %t.script -shared %t.o %t2.so -o %t.so
7# RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s
8
9# The symbol foo must be hidden. This matches bfd and gold and is
10# required to make it possible for a c++ library to hide its own
11# operator delete.
12
13# CHECK:      DynamicSymbols [
14# CHECK-NEXT:   Symbol {
15# CHECK-NEXT:     Name:
16# CHECK-NEXT:     Value: 0x0
17# CHECK-NEXT:     Size: 0
18# CHECK-NEXT:     Binding: Local
19# CHECK-NEXT:     Type: None
20# CHECK-NEXT:     Other: 0
21# CHECK-NEXT:     Section: Undefined
22# CHECK-NEXT:   }
23# CHECK-NEXT: ]
24
25        .global foo
26foo:
27	nop
28
29