mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Use NT_GNU_HWCAP instead of literal 2.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-01-07 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
|
||||||
|
literal 2.
|
||||||
|
|
||||||
2010-01-06 Ulrich Drepper <drepper@redhat.com>
|
2010-01-06 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* dirent/dirent.h: Fix typo in feature selection macro use.
|
* dirent/dirent.h: Fix typo in feature selection macro use.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* Operating system support for run-time dynamic linker. Generic Unix version.
|
/* Operating system support for run-time dynamic linker. Generic Unix version.
|
||||||
Copyright (C) 1995-1998, 2000-2008, 2009 Free Software Foundation, Inc.
|
Copyright (C) 1995-1998,2000-2008,2009,2010
|
||||||
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -390,7 +391,7 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
|
|||||||
while ((ElfW(Addr)) (note + 1) - start < phdr[i].p_memsz)
|
while ((ElfW(Addr)) (note + 1) - start < phdr[i].p_memsz)
|
||||||
{
|
{
|
||||||
#define ROUND(len) (((len) + sizeof (ElfW(Word)) - 1) & -sizeof (ElfW(Word)))
|
#define ROUND(len) (((len) + sizeof (ElfW(Word)) - 1) & -sizeof (ElfW(Word)))
|
||||||
if (note->type == 2
|
if (note->type == NT_GNU_HWCAP
|
||||||
&& note->vendorlen == sizeof "GNU"
|
&& note->vendorlen == sizeof "GNU"
|
||||||
&& !memcmp ((note + 1), "GNU", sizeof "GNU")
|
&& !memcmp ((note + 1), "GNU", sizeof "GNU")
|
||||||
&& note->datalen > 2 * sizeof (ElfW(Word)) + 2)
|
&& note->datalen > 2 * sizeof (ElfW(Word)) + 2)
|
||||||
|
Reference in New Issue
Block a user