blob: a0ffaafde8546421bb7850d9058937597a39c6c2 [file] [log] [blame]
Rafael Espindolaf82ed2a2015-10-24 22:51:01 +00001// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
Fangrui Song40a9f222018-07-02 17:48:23 +00003// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
Rafael Espindolaf82ed2a2015-10-24 22:51:01 +00004
5 .section .rodata.str1.1,"aMS",@progbits,1
6 .asciz "abc"
7
Rafael Espindolaac952642016-05-04 20:25:19 +00008 .data
Rafael Espindolaf82ed2a2015-10-24 22:51:01 +00009 .long .rodata.str1.1 + 4
10
Ben Dunbobbindf6f0ad2018-08-31 11:51:51 +000011// CHECK: merge-string-error.s.tmp.o:(.rodata.str1.1): offset is outside the section