Correct l_name field type

master
LemonBoy 2020-01-14 23:11:10 +01:00
parent 49771f356f
commit c85afff5a8
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ pub const DynLib = switch (builtin.os) {
// fashion.
const LinkMap = extern struct {
l_addr: usize,
l_name: [*]const u8,
l_name: [*:0]const u8,
l_ld: ?*elf.Dyn,
l_next: ?*LinkMap,
l_prev: ?*LinkMap,

View File

@ -1042,7 +1042,7 @@ pub fn uname(uts: *utsname) usize {
}
// XXX: This should be weak
extern const __ehdr_start: elf.Ehdr = undefined;
extern const __ehdr_start: elf.Ehdr;
pub fn dl_iterate_phdr(comptime T: type, callback: extern fn (info: *dl_phdr_info, size: usize, data: ?*T) i32, data: ?*T) isize {
if (builtin.link_libc) {