aboutsummaryrefslogtreecommitdiff
path: root/lib/std/dynamic_library.zig
AgeCommit message (Collapse)Author
2020-12-31Year++Frank Denis
2020-11-30Fix WindowsDynLib.openW trying to strip the \??\ prefix when it does not existMichael Freundorfer
2020-11-24make start code more versatileAndrew Kelley
* always align the stack to 16. I saw an instance on x86_64 linux where it was needed. * detect at runtime if being interpreted by a dynamic loader and if so avoid clobbering the fs register.
2020-11-23Fix logic for detecting _DYNAMIC symbolLemonBoy
Prevent spurious crashes for non-PIE executables.
2020-11-22modernize the PIE patch for the latest master branchAndrew Kelley
This is the part of #3960 that has to be rewritten to apply to latest master branch code.
2020-11-22Merge branch 'piepiepie' of https://github.com/LemonBoy/zig into pieAndrew Kelley
Conflicts: lib/std/dynamic_library.zig (fixed in this commit) src/all_types.hpp src/codegen.cpp src/link.cpp src/main.cpp Will manually apply the diffs to these deleted files to the new zig code in a followup commit.
2020-10-17Merge branch 'master' into openbsd-minimalSebastien Marie
2020-10-12Rename .macosx to .macosVignesh Rajagopalan
2020-10-11add minimal openbsd supportSébastien Marie
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-05-08publicize member functions affected by #4909Josh Junon
2020-05-02fix regressions in windows std lib testsAndrew Kelley
2020-03-30std lib API deprecations for the upcoming 0.6.0 releaseAndrew Kelley
See #3811
2020-02-28complete the native target detection based on /usr/bin/envAndrew Kelley
2020-02-28introduce operating system version ranges as part of the targetAndrew Kelley
* re-introduce `std.build.Target` which is distinct from `std.Target`. `std.build.Target` wraps `std.Target` so that it can be annotated as "the native target" or an explicitly specified target. * `std.Target.Os` is moved to `std.Target.Os.Tag`. The former is now a struct which has the tag as well as version range information. * `std.elf` gains some more ELF header constants. * `std.Target.parse` gains the ability to parse operating system version ranges as well as glibc version. * Added `std.Target.isGnuLibC()`. * self-hosted dynamic linker detection and glibc version detection. This also adds the improved logic using `/usr/bin/env` rather than invoking the system C compiler to find the dynamic linker when zig is statically linked. Related: #2084 Note: this `/usr/bin/env` code is work-in-progress. * `-target-glibc` CLI option is removed in favor of the new `-target` syntax. Example: `-target x86_64-linux-gnu.2.27` closes #1907
2020-02-05std: improve non-libc dynamic library loadingAndrew Kelley
this is a cherry-pick of 5076f2d4f6918946616504d22907c9f80601caf8 from the llvm10 branch
2020-01-18fixed typo - "path" lead to undeclared identifierSebastian
2020-01-14Correct l_name field typeLemonBoy
2019-12-22freebsd: add missing OS and libc bitsJethro Nederhof
2019-12-21Initial support for static PIE executablesLemonBoy
2019-12-10fix windows dynamic lib loading testAndrew Kelley
2019-12-10fix load dynamic library API when linking libcAndrew Kelley
2019-12-10load dynamic library test: update API usage codeAndrew Kelley
2019-12-10improve dynamic library APIAndrew Kelley
2019-12-10fixed windows dynamic library loading and added loading for darwinemekoi
2019-11-26std.elf: breaking improvements to the APIAndrew Kelley
and also integration with std.Target.Arch
2019-11-25more sentinel-terminated pointers std lib integrationAndrew Kelley
See #3767
2019-11-08update the codebase to use `@as`Andrew Kelley
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221