From Peter Schauer - fix mmalloc bitrot.

This commit is contained in:
Andrew Cagney 2000-02-29 12:58:51 +00:00
parent 024094993c
commit 2fc18c15d2
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Tue Feb 29 23:56:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* objfiles.c (open_mapped_file): Fix obsolete references to `mapped'
parameter.
Tue Feb 29 18:47:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-02-23 Eli Zaretskii <eliz@is.elta.co.il>:

View File

@ -865,7 +865,7 @@ open_mapped_file (filename, mtime, flags)
{
free (symsfilename);
symsfilename = concat (filename, ".syms", (char *) NULL);
fd = open_existing_mapped_file (symsfilename, mtime, mapped);
fd = open_existing_mapped_file (symsfilename, mtime, flags);
}
/* If we don't have an open file by now, then either the file does not
@ -877,7 +877,7 @@ open_mapped_file (filename, mtime, flags)
By default the file is rw for everyone, with the user's umask taking
care of turning off the permissions the user wants off. */
if ((fd < 0) && mapped)
if ((fd < 0) && (flags & OBJF_MAPPED))
{
free (symsfilename);
symsfilename = concat ("./", basename (filename), ".syms",