llvm-project/lld/test/old-elf/Mips/dynamic-linking.test

23 lines
662 B
Plaintext

# REQUIRES: mips
# Check _DYNAMIC_LINKING symbol definition.
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
# RUN: lld -flavor old-gnu -target mips %t.o -o %t.exe
# RUN: llvm-nm %t.exe | FileCheck -check-prefix=EXE-DYN %s
# EXE-DYN: 00000001 A _DYNAMIC_LINKING
# RUN: lld -flavor old-gnu -target mips -static %t.o -o %t.exe
# RUN: llvm-nm -just-symbol-name %t.exe | FileCheck -check-prefix=EXE-STATIC %s
# EXE-STATIC-NOT: _DYNAMIC_LINKING
# RUN: lld -flavor old-gnu -target mips -shared %t.o -o %t.so
# RUN: llvm-nm -just-symbol-name %t.so | FileCheck -check-prefix=DYNLIB %s
# DYNLIB-NOT: _DYNAMIC_LINKING
.globl __start;
__start: