Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 1 | // REQUIRES: x86 |
| 2 | // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o |
Fangrui Song | 40a9f22 | 2018-07-02 17:48:23 +0000 | [diff] [blame] | 3 | // RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s |
Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 4 | |
| 5 | .section .rodata.str1.1,"aMS",@progbits,1 |
| 6 | .asciz "abc" |
| 7 | |
Rafael Espindola | ac95264 | 2016-05-04 20:25:19 +0000 | [diff] [blame] | 8 | .data |
Rafael Espindola | f82ed2a | 2015-10-24 22:51:01 +0000 | [diff] [blame] | 9 | .long .rodata.str1.1 + 4 |
| 10 | |
Ben Dunbobbin | df6f0ad | 2018-08-31 11:51:51 +0000 | [diff] [blame] | 11 | // CHECK: merge-string-error.s.tmp.o:(.rodata.str1.1): offset is outside the section |