This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

USE_MMAP


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]