Document a change of behavior in r315552.

We used to reject this, but we now accept. The output seems
reasonable, so this is probably an OK extension over bfd/gold.

llvm-svn: 316376
This commit is contained in:
Rafael Espindola 2017-10-23 21:00:15 +00:00
parent d9af383d58
commit 615a064e33
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t -pie
# RUN: llvm-readelf -r -s %t | FileCheck %s
# Unlike bfd and gold we accept this.
# CHECK: .foobar PROGBITS 00001000
# CHECK: .got PROGBITS [[GOT:[0-9a-z]*]]
# CHECK: [[GOT]] 00000008 R_386_RELATIVE
# CHECK: 00001002 00000008 R_386_RELATIVE
foo:
.section .foobar, "awx"
.global _start
_start:
movl foo@GOT, %ebx