-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aot: Allow running aot binaries directly without calling runtime shim
Currently, even though we make a copy of the runtime shim and then embed the necessary metadata + bytecode into the binary, you still need to pass that binary as an argument to the runtime shim in order to run it (i.e. you need to do 'bpftrace-aotrt <file_name>'). Since the binary can fully function on its own, we don't need to do this anymore. This commit makes the executable just look inside itself for the metadata and bytecode, skipping the need to call bpftrace-aotrt. (i.e. you can now run the binary with just ./<file_name>.)
- Loading branch information
1 parent
024c696
commit fbad3cf
Showing
3 changed files
with
16 additions
and
9 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