mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
linux: export elf_aux_maybe so that libraries can call getauxval
This commit is contained in:
parent
750998eef6
commit
731c6d3fbb
@ -153,6 +153,10 @@ pub usingnamespace @import("linux/io_uring.zig");
|
||||
|
||||
/// Set by startup code, used by `getauxval`.
|
||||
pub var elf_aux_maybe: ?[*]std.elf.Auxv = null;
|
||||
pub extern var _elf_aux_maybe: ?[*]std.elf.Auxv;
|
||||
comptime {
|
||||
@export(elf_aux_maybe, .{ .name = "_elf_aux_maybe", .linkage = .Weak });
|
||||
}
|
||||
|
||||
/// See `std.elf` for the constants.
|
||||
pub fn getauxval(index: usize) usize {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user