1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2021 Broadcom
8 static int do_test_stackprot_fail(struct cmd_tbl *cmdtp, int flag, int argc,
12 * In order to avoid having the compiler optimize away the stack smashing
13 * we need to do a little something here.
19 printf("We have smashed our stack as this should not exceed 128: sizeof(a) = %zd\n",
25 U_BOOT_CMD(stackprot_test, 1, 1, do_test_stackprot_fail,
26 "test stack protector fail", "");