diff options
| author | Bin Meng <bmeng.cn@gmail.com> | 2025-06-01 12:26:06 +0800 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-07-01 21:21:16 +0200 |
| commit | 244f5c47954010d45b7bf19dc4c7c9c041bf6807 (patch) | |
| tree | b0aa8c7192f6b4a1124b0db8bfd9b2a9852ace52 /scripts/mkdiff_obj | |
| parent | dcd8df258a402658ad1fdc018a245b06a610ca8d (diff) | |
| download | busybox-w32-244f5c47954010d45b7bf19dc4c7c9c041bf6807.tar.gz busybox-w32-244f5c47954010d45b7bf19dc4c7c9c041bf6807.tar.bz2 busybox-w32-244f5c47954010d45b7bf19dc4c7c9c041bf6807.zip | |
libbb: Prevent clang from reading the G pointer before it is assigned
It was observed that getty crashes on RISC-V 64-bit target, with the
busybox binary compiled by clang/LLVM 17 with -O2. Not only getty,
but also some other applets like syslogd/vi are broken too.
Commit 5156b245 ("Make const ptr assign as function call in clang")
introduced XZALLOC_CONST_PTR() to defeat the compiler optimization,
however it only fixed a small number of broken places when compiling
busybox with clang/LLVM. A large number of places remain broken.
This commit treats ASSIGN_CONST_PTR() the same way as XZALLOC_CONST_PTR().
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/mkdiff_obj')
0 files changed, 0 insertions, 0 deletions
