-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
215 additions
and
105 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
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 |
---|---|---|
@@ -1,3 +1,39 @@ | ||
.section .license, "a" | ||
ASM_SECT_LICENSE_DECL | ||
.incbin "../../LICENSE.md" | ||
.ascii "\n\n" | ||
|
||
#if BENZINA_OS_DARWIN | ||
# | ||
# On Darwin-based systems, we cannot make use of linker scripts because the | ||
# system linker, ld64, doesn't support them. | ||
# | ||
# We declare here certain "magic" symbols and make them global. | ||
# Then, we define them in terms of section start and end addresses, | ||
# synthesized by the linker. | ||
# | ||
.globl _license_benzina | ||
.globl ___lz4_cmd_array_start | ||
.globl ___lz4_cmd_array_end | ||
.globl ___tool_array_start | ||
.globl ___tool_array_end | ||
.globl ___lua_open_array_start | ||
.globl ___lua_open_array_preload_start | ||
.globl ___lua_open_array_preload_end | ||
.globl ___lua_open_array_end | ||
.globl ___lua_text_array_start | ||
.globl ___lua_text_array_end | ||
|
||
.set _license_benzina, section$start$__TEXT$__license | ||
.set ___lz4_cmd_array_start, section$start$__DATA$__lz4_cmd_array | ||
.set ___lz4_cmd_array_end, section$start$__DATA$__lz4_cmd_array | ||
.set ___tool_array_start, section$start$__DATA$__tool_array | ||
.set ___tool_array_end, section$start$__DATA$__tool_array | ||
.set ___lua_open_array_start, section$start$__DATA$__lua_open_array | ||
# Mach-O doesn't support sections with >16-character names, so we disable | ||
# support for that sub-array. The following two entries are *not* mistakes! | ||
.set ___lua_open_array_preload_start, section$start$__DATA$__lua_open_array | ||
.set ___lua_open_array_preload_end, section$start$__DATA$__lua_open_array | ||
.set ___lua_open_array_end, section$end$__DATA$__lua_open_array | ||
.set ___lua_text_array_start, section$start$__DATA$__lua_text_array | ||
.set ___lua_text_array_end, section$end$__DATA$__lua_text_array | ||
#endif |
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
Oops, something went wrong.