summaryrefslogtreecommitdiff
path: root/libc/elf/ldconfig.c
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-06-04 15:48:26 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-06-04 15:48:26 +0000
commit8548b3be8c48bf62bd4e20fb0ee958338b01bc6c (patch)
tree874deff152fded2f5b50110ee6d488d42605bb01 /libc/elf/ldconfig.c
parenteab7f6089510455a9b26643c64da331749a15650 (diff)
downloadeglibc2-8548b3be8c48bf62bd4e20fb0ee958338b01bc6c.tar.gz
Merge changes between r23097 and r23217 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@23218 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/elf/ldconfig.c')
-rw-r--r--libc/elf/ldconfig.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/elf/ldconfig.c b/libc/elf/ldconfig.c
index 13f262d65..c7b9eb92f 100644
--- a/libc/elf/ldconfig.c
+++ b/libc/elf/ldconfig.c
@@ -174,17 +174,17 @@ is_hwcap_platform (const char *name)
{
int hwcap_idx = _dl_string_hwcap (name);
- /* Is this a normal hwcap for the machine e.g. fpu? */
+ /* Is this a normal hwcap for the machine like "fpu?" */
if (hwcap_idx != -1 && ((1 << hwcap_idx) & hwcap_mask))
return 1;
- /* ... Or is it a platform pseudo-hwcap e.g. i686? */
+ /* Is this a platform pseudo-hwcap like "i686?" */
hwcap_idx = _dl_string_platform (name);
if (hwcap_idx != -1)
return 1;
- /* ... Or is this one of the extra pseudo-hwcaps that we map beyond
- _DL_FIRST_EXTRA e.g. tls, or nosegneg? */
+ /* Is this one of the extra pseudo-hwcaps that we map beyond
+ _DL_FIRST_EXTRA like "tls", or "nosegneg?" */
for (hwcap_idx = _DL_FIRST_EXTRA; hwcap_idx < 64; ++hwcap_idx)
if (hwcap_extra[hwcap_idx - _DL_FIRST_EXTRA] != NULL
&& !strcmp (name, hwcap_extra[hwcap_idx - _DL_FIRST_EXTRA]))
@@ -1270,8 +1270,10 @@ main (int argc, char **argv)
add_dir (argv[i]);
}
- /* The last entry in hwcap_extra is reserved for the "tls"
- pseudo-hwcap which indicates support for TLS. */
+ /* The last entry in hwcap_extra is reserved for the "tls" pseudo-hwcap which
+ indicates support for TLS. This pseudo-hwcap is only used by old versions
+ under which TLS support was optional. The entry is no longer needed, but
+ must remain for compatibility. */
hwcap_extra[63 - _DL_FIRST_EXTRA] = "tls";
set_hwcap ();