This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
USE_MMAP
- To: binutils@sourceware.cygnus.com
- Subject: USE_MMAP
- From: Krister Walfridsson <cato@df.lth.se>
- Date: Sun, 13 Jun 1999 00:34:35 +0200 (CEST)
Is USE_MMAP in bfd meant to be used? NetBSD's toolchain is defining it,
and it causes some trouble for at least nm on a.out platforms.
The problem is that nm gets a pointer to minisyms in display_rel_file().
The minisyms are memory mapped, but nm wants to free() the memory anyway.
What is the correct way to solve it? Don't use USE_MMAP? Add #ifdef USE_MMAP
in nm too? Add some kind of release_minisymbols() to bfd?
/Krister