15 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s4 5# On some targets the location of the _GLOBAL_OFFSET_TABLE_ symbol table can6# matter for the correctness of some relocations. Follow the example of ld.gold7# and give a multiple definition error if input objects attempt to redefine it.8 9# CHECK: ld.lld: error: {{.*o}} cannot redefine linker defined symbol '_GLOBAL_OFFSET_TABLE_'10 11.data12.global _GLOBAL_OFFSET_TABLE_13_GLOBAL_OFFSET_TABLE_:14.word 015