mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
2b8d134be4
The igen/dgen and opc2c tools leak their heap-allocated memory (on purpose) at program exit, which makes AddressSanitizer fail the tool execution. This breaks the build, as it makes the tool return a non-zero exit code. Fix that by disabling leak detection through the setting of that environment variable. I also changed the opc2c rules for m32c to go through a temporary file. What happened is that the failing opc2c would produce an incomplete file (probably because ASan exits the process before stdout is flushed). This meant that further make attempts didn't try to re-create the file, as it already existed. A "clean" was therefore necessary. This can also happen in regular builds if the user interrupts the build (^C) in the middle of the opc2c execution and tries to resume it. Going to a temporary file avoids this issue. sim/m32c/ChangeLog: * Makefile.in: Set ASAN_OPTIONS when running opc2c. sim/mips/ChangeLog: * Makefile.in: Set ASAN_OPTIONS when running igen. sim/mn10300/ChangeLog: * Makefile.in: Set ASAN_OPTIONS when running igen. sim/ppc/ChangeLog: * Makefile.in: Set ASAN_OPTIONS when running igen. sim/v850/ChangeLog: * Makefile.in: Set ASAN_OPTIONS when running igen. Change-Id: I00f21d4dc1aff0ef73471925d41ce7c23e83e082 |
||
---|---|---|
.. | ||
aclocal.m4 | ||
ChangeLog | ||
config.in | ||
configure | ||
configure.ac | ||
cpu.h | ||
gdb-if.c | ||
int.c | ||
int.h | ||
load.c | ||
load.h | ||
m32c.opc | ||
main.c | ||
Makefile.in | ||
mem.c | ||
mem.h | ||
misc.c | ||
misc.h | ||
opc2c.c | ||
r8c.opc | ||
reg.c | ||
safe-fgets.c | ||
safe-fgets.h | ||
srcdest.c | ||
syscall.h | ||
syscalls.c | ||
syscalls.h | ||
timer_a.h | ||
trace.c | ||
trace.h |