From f460d8455d39fc1ca5310c73b62c3d0746f9b874 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Sat, 28 Sep 2024 19:36:05 -0600 Subject: [PATCH] More on dynamic symbol requirements --- bootstrap/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bootstrap/main.c b/bootstrap/main.c index f76bf8d..fa2bf38 100644 --- a/bootstrap/main.c +++ b/bootstrap/main.c @@ -449,7 +449,7 @@ STRUCT(ELFVersionRequirementEntry) { u32 hash; u16 flags; - u16 other; + u16 index; u32 name_offset; u32 next; }; @@ -8463,15 +8463,15 @@ may_be_unused fn void write_elf(Thread* thread, const ObjectOptions* const restr { .hash = 0x9691a75, .flags = 0, - .other = 3, - .name_offset = 0x2c, - .next = 0x10, + .index = 3, + .name_offset = glibc_225, + .next = sizeof(ELFVersionRequirementEntry), }, { .hash = 0x69691b4, .flags = 0, - .other = 2, - .name_offset = 0x38, + .index = 2, + .name_offset = glibc_234, .next = 0, }, };