summaryrefslogtreecommitdiff
path: root/loader
AgeCommit message (Collapse)AuthorFilesLines
2020-08-22loader: use "--" between musl ldso options and the executable pathAriadne Conill1-3/+8
This is needed for semantic correctness and also ensures argv is set up to provide a 16-byte aligned stack on aarch64 as required by hardware.
2018-02-08loader: quiet some valgrind warningsWilliam Pitcock1-3/+3
2018-02-07loader: gracefully handle user-exec of the ELF interpreter itselfWilliam Pitcock1-0/+12
2018-01-14loader: Several improvementsSamuel Holland1-18/+75
* Handle programs that have a DT_NEEDED entry for glibc's ld.so. * Handle when LD_PRELOAD is already set. * Use the --argv0 option to properly set argv[0] in the target program. * Ensure the the argument list is terminated with a NULL sentinel. * Document the details of the loader's implementation. [NOTE: Better commit summary?] Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-14global: Format the code consistentlySamuel Holland1-3/+4
* Apply clang-format. * Change all comments to the same style. * Add braces as dictated by the coding style guidelines. Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-06-14implement program loaderWilliam Pitcock1-0/+56