xref: /llvm-project-15.0.7/lld/test/ELF/dynamic-list-cpp.s (revision 4e00a192)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3## Confirm both mangled and unmangled names may appear in
4## the --dynamic-list file.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7
8# RUN: echo '{ _Z1fv; extern "C++" { "g()"; }; };' > %t.list
9# RUN: ld.lld -pie --dynamic-list %t.list %t.o -o %t
10# RUN: llvm-readelf --dyn-syms %t | FileCheck %s
11
12# CHECK:      Symbol table '.dynsym' contains 3 entries:
13# CHECK:      _Z1fv
14# CHECK-NEXT: _Z1gv
15
16.globl _Z1fv, _Z1gv
17_Z1fv:
18_Z1gv:
19

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025