summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-08-01 08:33:17 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-08-01 08:33:17 +0200
commitb616893b365572efe90e1482aa9d3a62c112bf74 (patch)
tree16c6bf9c5901753d9925b64b52e547e25c68d919
parentcfa77100929e31771730e964f63ff28b0e6ce387 (diff)
downloadbxgen-b616893b365572efe90e1482aa9d3a62c112bf74.zip
Fix num program headers
-rwxr-xr-xbxgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bxgen.c b/bxgen.c
index da4c8d4..7e7440e 100755
--- a/bxgen.c
+++ b/bxgen.c
@@ -2565,7 +2565,7 @@ i64 unit_write_in_memory(
emit_unit(pool, codegen, unit, arch);
- u16 num_program_headers = 9;
+ u16 num_program_headers = 10;
i64 program_offset = align(ELF_HEADER_SIZE + ELF_PROGRAM_HEADER_SIZE * num_program_headers, X86_64_PAGE_SIZE);
i64 base_address = X86_64_BASE_ADDRESS;