forked from OSchip/llvm-project
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:
parent
d9af383d58
commit
615a064e33
|
@ -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
|
Loading…
Reference in New Issue