mirror of git://sourceware.org/git/glibc.git
Update.
* sysdeps/generic/dl-fptr.c (_dl_unmap): Fix typo in test. (_dl_make_fptr): Fix typos introduced in last change.
This commit is contained in:
parent
0a8fe08964
commit
ceb927c971
|
|
@ -1,5 +1,8 @@
|
||||||
2003-05-02 Ulrich Drepper <drepper@redhat.com>
|
2003-05-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/dl-fptr.c (_dl_unmap): Fix typo in test.
|
||||||
|
(_dl_make_fptr): Fix typos introduced in last change.
|
||||||
|
|
||||||
* sysdeps/generic/dl-fptr.c: Put back one optimization from the
|
* sysdeps/generic/dl-fptr.c: Put back one optimization from the
|
||||||
original patch. Use non-exported symbols. Mark translatable
|
original patch. Use non-exported symbols. Mark translatable
|
||||||
strings. Pretty printing.
|
strings. Pretty printing.
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
02111-1307 USA. */
|
02111-1307 USA. */
|
||||||
|
|
||||||
|
#include <libintl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
@ -187,7 +188,7 @@ make_fptr_table (struct link_map *map)
|
||||||
PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,
|
PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,
|
||||||
-1, 0);
|
-1, 0);
|
||||||
if (fptr_table == MAP_FAILED)
|
if (fptr_table == MAP_FAILED)
|
||||||
INTUSE(_dl_signal)_error (errno, NULL, NULL,
|
INTUSE(_dl_signal_error) (errno, NULL, NULL,
|
||||||
N_("cannot map pages for fptr table"));
|
N_("cannot map pages for fptr table"));
|
||||||
|
|
||||||
if (COMPARE_AND_SWAP ((ElfW(Addr) *) &map->l_mach.fptr_table,
|
if (COMPARE_AND_SWAP ((ElfW(Addr) *) &map->l_mach.fptr_table,
|
||||||
|
|
@ -282,7 +283,7 @@ _dl_unmap (struct link_map *map)
|
||||||
{
|
{
|
||||||
*(struct fdesc **) ftab[i] = head;
|
*(struct fdesc **) ftab[i] = head;
|
||||||
head = (struct fdesc *) ftab[i];
|
head = (struct fdesc *) ftab[i];
|
||||||
if (tail = NULL)
|
if (tail == NULL)
|
||||||
tail = head;
|
tail = head;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue