17 lines · plain
1// REQUIRES: x862// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux3// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s4// RUN: ld.lld %t.o -o /dev/null -shared --noinhibit-exec 2>&1 | FileCheck %s5// CHECK: .o:(.foo): offset is outside the section6// CHECCK: .o:(.rodata.str1.1): offset is outside the section7 8.data9.quad .foo + 1010.quad .rodata.str1.1 + 411 12.section .foo,"aM",@progbits,413.quad 014 15.section .rodata.str1.1,"aMS",@progbits,116.asciz "abc"17