1# REQUIRES: x86 2 3# We used to crash on this 4# RUN: not ld.lld %p/Inputs/local-symbol-in-dso.so -o /dev/null 2>&1 | FileCheck %s 5# CHECK: error: {{.*}}local-symbol-in-dso.so: invalid local symbol 'foo' in global part of symbol table 6 7# RUN: llvm-mc %s -o %t.o -filetype=obj -triple x86_64-pc-linux 8# RUN: not ld.lld %t.o %p/Inputs/local-symbol-in-dso.so -o /dev/null 9 10.globl main 11main: 12 movq foo@GOTTPOFF(%rip), %rax 13