-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay elf initialization and pass argv to DSO functions
This patch addresses two issues related to Golang support on OSv. Firstly it provides a workaround around the issue described by #810. In essence some applications like Golang runtime during initialization of it's ELF object invoke init functions that access variables from TLS (Thread Local Storage) memory area by static offset determined during compilation. This type of TLS access is called "initial exec" (or static) and is only supported on OSv if shared library runs on new thread. To address this limitation this patch introduces changes that allow delaying ELF initialization until new thread is run. Secondly this patch provides changes to ELF initialization code that allow passing argv and other data to shared object init functions as explained by #795. This is for example required by Golang runtime. Fixes #795 The content of this patch was authored by Benoit Canet. Signed-off-by: Waldemar Kozaczuk <[email protected]> Message-Id: <[email protected]>
- Loading branch information
Showing
4 changed files
with
161 additions
and
51 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