public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] s390: Fix memory leaks in assembler and linker
@ 2025-01-22 13:39 Jens Remus
  2025-01-22 13:39 ` [PATCH 1/2] s390: s390_machinemode leak Jens Remus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jens Remus @ 2025-01-22 13:39 UTC (permalink / raw)
  To: binutils, Andreas Krebbel; +Cc: Jens Remus

Motivated by Alan's recent work I ran the assembler and linker test
suites on s390x with ASAN enabled as follows and fixed the reported
memory leaks in s390-specific code.

$ ../configure --disable-gdb --disable-gdbserver --disable-gold \
--disable-sim --disable-readline --disable-nls --disable-werror \
CFLAGS="-g -O2 -fsanitize=address,undefined" \
CXXFLAGS="-g -O2 -fsanitize=address,undefined"
$ make -j $(nproc)
$ ASAN_OPTIONS=fast_unwind_on_malloc=false make check-gas
$ ASAN_OPTIONS=fast_unwind_on_malloc=false make check-ld

Regards,
Jens

Jens Remus (2):
  s390: s390_machinemode leak
  s390: s390_machine leak

 gas/config/tc-s390.c                       | 39 +++++++++-------------
 gas/testsuite/gas/s390/machine-parsing-1.l |  3 +-
 gas/testsuite/gas/s390/machine-parsing-1.s |  3 ++
 3 files changed, 20 insertions(+), 25 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-27 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-22 13:39 [PATCH 0/2] s390: Fix memory leaks in assembler and linker Jens Remus
2025-01-22 13:39 ` [PATCH 1/2] s390: s390_machinemode leak Jens Remus
2025-01-22 13:39 ` [PATCH 2/2] s390: s390_machine leak Jens Remus
2025-01-27  7:38 ` [PATCH 0/2] s390: Fix memory leaks in assembler and linker Andreas Krebbel
2025-01-27 15:46   ` Jens Remus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).