llvm-project/lld/test/elf2/resolution.s
Rafael Espindola 3a63f3fb22 Add support for weak absolute symbols.
On ELF being weak is independent of what we call the kind of the symbol. So
this also makes the code simpler.

llvm-svn: 246326
2015-08-28 20:19:34 +00:00

22 lines
323 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t
// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/resolution.s -o %t2
// RUN: lld -flavor gnu2 %t %t2 -o %t3
// REQUIRES: x86
.globl _start
_start:
nop
local:
.weak foo
foo:
.long bar
.weak zed
.long zed
.global abs
abs = 123