[all-commits] [llvm/llvm-project] 72e6f0: [libc] Fix start up crash on 32 bit systems (#66210)
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Thu Sep 14 06:02:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 72e6f06119a10babeb259c42c1ffcc71253e9081
https://github.com/llvm/llvm-project/commit/72e6f06119a10babeb259c42c1ffcc71253e9081
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M libc/config/linux/app.h
M libc/startup/linux/riscv64/start.cpp
Log Message:
-----------
[libc] Fix start up crash on 32 bit systems (#66210)
This patch changes the default types of argc/argv so it's no longer a
uint64_t in all systems, instead, it's now a uintptr_t, which fixes
crashes in 32-bit systems that expect 32-bit types. This patch also adds
two uintptr_t types (EnvironType and AuxEntryType) for the same reason.
The patch also adds a PgrHdrTableType type behind an ifdef that's
Elf64_Phdr in 64-bit systems and Elf32_Phdr in 32-bit systems.
More information about the All-commits
mailing list