mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
bcae288a5c
This fixes several issues. The behavior changes are: A SHN_COMMON symbol does not have the 'g' flag. An undefined symbol does not have 'g' or 'l' flag. A STB_GLOBAL SymbolRef::ST_Unknown symbol has the 'g' flag. A STB_LOCAL SymbolRef::ST_Unknown symbol has the 'l' flag. Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D75659
21 lines
298 B
ArmAsm
21 lines
298 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=i386-unknown-elf -defsym a=7 -defsym b=11 %s | llvm-objdump -t - | FileCheck %s
|
|
|
|
.ifndef a
|
|
.err
|
|
.endif
|
|
|
|
.if a<>7
|
|
.err
|
|
.endif
|
|
|
|
.ifndef b
|
|
.err
|
|
.endif
|
|
|
|
.if b<>11
|
|
.err
|
|
.endif
|
|
|
|
# CHECK: 00000007 l *ABS* 00000000 a
|
|
# CHECK: 0000000b l *ABS* 00000000 b
|