diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-10-23 21:00:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-10-23 21:00:15 +0000 |
commit | 615a064e338e45f6dd95700561643becf50fae19 (patch) | |
tree | 1de71d55736b51ee0e44990ba2d2c25dd78f2e34 | |
parent | d9af383d58ef8b0b4e9a65af862cae61d99ca44c (diff) | |
download | bcm5719-llvm-615a064e338e45f6dd95700561643becf50fae19.tar.gz bcm5719-llvm-615a064e338e45f6dd95700561643becf50fae19.zip |
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
-rw-r--r-- | lld/test/ELF/got32-i386-pie-rw.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lld/test/ELF/got32-i386-pie-rw.s b/lld/test/ELF/got32-i386-pie-rw.s new file mode 100644 index 00000000000..18b019c2cc9 --- /dev/null +++ b/lld/test/ELF/got32-i386-pie-rw.s @@ -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 |