mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
57d74cd85f
This relaxes an assertion that required symbols to start before the end of a block. Instead, symbols are now required to end on or before the end of a block. This fixes two important corner cases: Symbols at the start of empty blocks/sections, and block/section end symbols.
17 lines
370 B
ArmAsm
17 lines
370 B
ArmAsm
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t.o %s
|
|
# RUN: llvm-jitlink -noexec -entry hook %t.o
|
|
#
|
|
# Make sure that an empty __text section doesn't cause any problems.
|
|
|
|
.section __TEXT,__text,regular,pure_instructions
|
|
.macosx_version_min 10, 15
|
|
l_empty:
|
|
|
|
.section __TEXT,__const
|
|
.globl hook
|
|
.p2align 2
|
|
hook:
|
|
.long 42
|
|
|
|
.subsections_via_symbols
|