1# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-freebsd13.0 %s -o %t 2# RUN: llvm-readelf -s %t | FileCheck %s 3 4# CHECK: Type Bind Vis Ndx Name 5# CHECK: FUNC GLOBAL DEFAULT [<other: 0x60>] 2 foo 6# CHECK-NEXT: FUNC WEAK DEFAULT [<other: 0x60>] 2 foo@FBSD_1.1 7# CHECK-NEXT: FUNC GLOBAL DEFAULT [<other: 0x60>] 2 func 8# CHECK-NEXT: FUNC WEAK DEFAULT [<other: 0x60>] 2 weak_func 9 10.text 11.abiversion 2 12 13.globl foo 14.type foo,@function 15foo: 16 nop 17 nop 18 .localentry foo, 8 19 20.symver __impl_foo, foo@FBSD_1.1 21.weak __impl_foo 22.set __impl_foo, foo 23 24.globl func 25# Mimick FreeBSD weak function/reference 26.weak weak_func 27.equ weak_func, func 28 29.p2align 2 30.type func,@function 31func: 32 nop 33 nop 34 .localentry func, 8 35 36## PR44284 Don't crash if err is redefined after .set 37.set err, _err 38.globl err 39err: 40