annotate lld/test/ELF/global-offset-table-position-redef-err.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 # RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
150
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 # On some targets the location of the _GLOBAL_OFFSET_TABLE_ symbol table can
anatofuz
parents:
diff changeset
6 # matter for the correctness of some relocations. Follow the example of ld.gold
anatofuz
parents:
diff changeset
7 # and give a multiple definition error if input objects attempt to redefine it.
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 # CHECK: ld.lld: error: {{.*o}} cannot redefine linker defined symbol '_GLOBAL_OFFSET_TABLE_'
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 .data
anatofuz
parents:
diff changeset
12 .global _GLOBAL_OFFSET_TABLE_
anatofuz
parents:
diff changeset
13 _GLOBAL_OFFSET_TABLE_:
anatofuz
parents:
diff changeset
14 .word 0