On Wed, Sep 29, 2021 at 11:37 AM LoveSy <[email protected]> wrote: > > From: YU Jincheng <[email protected]> > > - clang 9+ will load the const pointer first before the const > pointer assignment trick and thus cause null pointer defer. > - This patch creates a shadow variable to prevent the above from > happening for clang 9+. > - Also, this patch applies `BB_GLOBAL_CONST` to all variables > using the same trick, allowing archs or toolchains having the > same issue to bypass this trick correctly. > > This patch fixes https://bugs.busybox.net/show_bug.cgi?id=14231 > and https://bugs.busybox.net/show_bug.cgi?id=14236
While we are looking at less obscure ways to convince clang to behave, I applied most of the change - the part which generalizes the trick. Thank you. Please pull current git. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
