-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JITLink][MachO] Detect MachO::S_THREAD_LOCAL_ZEROFILL sections as ze…
…ro-fill. This will be used in upcoming MachO native TLV support patches to LLVM and the ORC runtime.
- Loading branch information
Showing
3 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# RUN: llvm-mc -triple=x86_64-apple-macos10.9 -filetype=obj -o %t %s | ||
# RUN: llvm-jitlink -noexec -check=%s %t | ||
# | ||
# Check that __thread_bss sections are handled as zero-fill. | ||
# | ||
# jitlink-check: *{4}X = 0 | ||
|
||
.section __TEXT,__text,regular,pure_instructions | ||
.build_version macos, 10, 15 sdk_version 10, 15 | ||
.globl _main | ||
.p2align 4, 0x90 | ||
_main: | ||
retq | ||
|
||
.globl X | ||
.tbss X, 4, 2 | ||
|
||
|
||
.subsections_via_symbols |