<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/const_hack.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2025-07-01T19:21:16+00:00</updated>
<entry>
<title>libbb: Prevent clang from reading the G pointer before it is assigned</title>
<updated>2025-07-01T19:21:16+00:00</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2025-06-01T04:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=244f5c47954010d45b7bf19dc4c7c9c041bf6807'/>
<id>urn:sha1:244f5c47954010d45b7bf19dc4c7c9c041bf6807</id>
<content type='text'>
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 &lt;bmeng.cn@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Make const ptr assign as function call in clang</title>
<updated>2021-10-09T20:30:45+00:00</updated>
<author>
<name>YU Jincheng</name>
<email>shana@zju.edu.cn</email>
</author>
<published>2021-10-09T18:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5156b245536ce0f07165793f07c63fd9fa5dd3b7'/>
<id>urn:sha1:5156b245536ce0f07165793f07c63fd9fa5dd3b7</id>
<content type='text'>
- This can act as memory barrier in clang to avoid
  read before assign of a const ptr

Signed-off-by: LoveSy &lt;shana@zju.edu.cn&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
