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
22 lines
323 B
ArmAsm
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
|