view lld/test/ELF/i386-linkonce.s @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
line wrap: on
line source

// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=i386-linux-gnu %p/Inputs/i386-linkonce.s -o %t2.o
// RUN: llvm-ar rcs %t2.a %t2.o
// RUN: not ld.lld %t.o %t2.a -o /dev/null 2>&1 | FileCheck %s

// CHECK: error: relocation refers to a symbol in a discarded section: __i686.get_pc_thunk.bx

    .globl _start
_start:
    call _strchr1