On Fri, Mar 18, 2022 at 01:34:05AM -0500, Glenn Washburn wrote: > Add linker flags when linking kernel.exec to have malloc and free point to > grub_malloc and grub_free respectively. Some gdb functionality depends on > gdb locating the symbols "malloc" and "free", such as dynamically creating > strings for arguments to injected function calls. A trivial example would > the gdb command 'p strlen("astring")'. Make sure not to do this on emu > platforms, or an infinite loop occurs because emu has a special > grub_malloc() that calls malloc(). > > Signed-off-by: Glenn Washburn <developm...@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel