aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
AgeCommit message (Collapse)Author
2020-09-07Fix compile when using EFI target (Fixes #6275)Peter Spiess-Knafl
2020-09-04update rest of testsVexu
2020-09-03update uses of deprecated type field accessVexu
2020-08-27ensure main return type is not i8Asherah Connor
Avoids a compile error from start.zig: /home/kivikakk/zig/build/lib/zig/std/start.zig:265:28: error: expected type 'u8', found 'i8' return result; ^ /home/kivikakk/zig/build/lib/zig/std/start.zig:265:28: note: unsigned 8-bit int cannot represent all possible signed 8-bit values return result;
2020-08-20add license header to all std lib filesAndrew Kelley
add SPDX license identifier copyright ownership is zig contributors
2020-07-20Merge branch 'master' of https://github.com/ziglang/zig into ↵Anthony Arian
5002-fix-entrypoint-with-winmain
2020-07-01Implement std.start for powerpc64leShawn Anastasio
This is a bit hacky since we end up doing more than just grabbing the stack pointer in the inline assembly block. Ideally _start would be implemented in pure asm for powerpc64le, but this will do for now. Still to be implemented is powerpc, powerpc64, and powerpc64 (ELFv2) support. The latter will just require correctly determing target ABI for powerpc64 and enabling the existing powerpc64le implementation for it.
2020-06-24@asyncCall now requires an argument tupleAlexandros Naskos
2020-06-15Implement WinMain Callers that Pass Valid ParamsAnthony Arian
2020-05-05zig fmtTadeo Kondrak
2020-04-24Add mips support to standard libraryTimon Kruiper
2020-03-28std: Minor changes to TLS handlingLemonBoy
* Always allocate an info block per-thread so that libc can store important stuff there. * Respect ABI-mandated alignment in more places. * Nicer code, use slices/pointers instead of raw addresses whenever possible.
2020-03-25Revert "Merge pull request #4807 from LemonBoy/tls-touchups"Andrew Kelley
This reverts commit ee6fda2297bf75432b8d7115ec4c60c213535bbe, reversing changes made to f313ab18aecea1ade0b6a90d671352a641ad351a. This caused a test failure: ``` behavior.misc.test "behavior-arm-linux-none-Debug-bare-multi thread local variable"...test failure /home/vsts/work/1/s/lib/std/testing.zig:191:14: 0x4608f in std.testing.expect (test) if (!ok) @panic("test failure"); ^ /home/vsts/work/1/s/test/stage1/behavior/misc.zig:616:11: 0x53e93 in behavior.misc.test "behavior-arm-linux-none-Debug-bare-multi thread local variable" (test) expect(S.t == 1235); ^ ```
2020-03-25std: Minor changes to TLS handlingLemonBoy
* Always allocate an info block per-thread so that libc can store important stuff there. * Respect ABI-mandated alignment in more places. * Nicer code, use slices/pointers instead of raw addresses whenever possible.
2020-03-20"generate .h files" feature is no longer supported in stage1Andrew Kelley
2020-03-12std/os/uefi: status reformNick Erdmann
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-22update std lib to integrate with libc for environAndrew Kelley
closes #3511
2020-02-07Add wWinMain and wWinMainCRTStartup to fix #4376Jared Miller
2020-01-19Small cleanupsLemonBoy
2020-01-09Merge pull request #3955 from LemonBoy/fix-1528Andrew Kelley
Pointer arithmetic affects the alignment factor
2020-01-09New @export() handlingLemonBoy
Use a struct as second parameter to be future proof (and also allows to specify default values for the parameters) Closes #2679 as it was just a matter of a few lines of code.
2020-01-08Pointer arithmetic affects the alignment factorLemonBoy
Closes #1528
2020-01-06zig fmt and update `extern fn` to `callconv(.C)`Andrew Kelley
2020-01-02Implement the callconv() annotationLemonBoy
2019-12-21Initial support for static PIE executablesLemonBoy
2019-12-12un-special-case startup code in the std libAndrew Kelley
Previously, the compiler had special logic to determine whether to include the startup code, which was in `std/special/start.zig`. Now, the file is moved to `std/start.zig`, and there is no special logic in the compiler. Instead, the standard library unconditionally imports the `start.zig` file, which then has a `comptime` block that does the logic of determining what, if any, start symbols to export. Instead of `start.zig` being in its own special package, it is just another normal file that is part of the standard library. `std.builtin.TestFn` is now part of the standard library rather than specially generated by the compiler.