~vcs-imports/eglibc/trunk

« back to all changes in this revision

Viewing changes to libc/elf/ldconfig.c

  • Committer: joseph
  • Date: 2013-06-04 15:48:26 UTC
  • Revision ID: svn-v4:7b3dc134-2b1b-0410-93df-9e9f96275f8d:trunk:23218
Merge changes between r23097 and r23217 from /fsf/trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
{
175
175
  int hwcap_idx = _dl_string_hwcap (name);
176
176
 
177
 
  /* Is this a normal hwcap for the machine e.g. fpu?  */
 
177
  /* Is this a normal hwcap for the machine like "fpu?"  */
178
178
  if (hwcap_idx != -1 && ((1 << hwcap_idx) & hwcap_mask))
179
179
    return 1;
180
180
 
181
 
  /* ... Or is it a platform pseudo-hwcap e.g. i686?  */
 
181
  /* Is this a platform pseudo-hwcap like "i686?"  */
182
182
  hwcap_idx = _dl_string_platform (name);
183
183
  if (hwcap_idx != -1)
184
184
    return 1;
185
185
 
186
 
  /* ... Or is this one of the extra pseudo-hwcaps that we map beyond
187
 
     _DL_FIRST_EXTRA e.g. tls, or nosegneg?  */
 
186
  /* Is this one of the extra pseudo-hwcaps that we map beyond
 
187
     _DL_FIRST_EXTRA like "tls", or "nosegneg?"  */
188
188
  for (hwcap_idx = _DL_FIRST_EXTRA; hwcap_idx < 64; ++hwcap_idx)
189
189
    if (hwcap_extra[hwcap_idx - _DL_FIRST_EXTRA] != NULL
190
190
        && !strcmp (name, hwcap_extra[hwcap_idx - _DL_FIRST_EXTRA]))
1270
1270
          add_dir (argv[i]);
1271
1271
    }
1272
1272
 
1273
 
  /* The last entry in hwcap_extra is reserved for the "tls"
1274
 
     pseudo-hwcap which indicates support for TLS.  */
 
1273
  /* The last entry in hwcap_extra is reserved for the "tls" pseudo-hwcap which
 
1274
     indicates support for TLS.  This pseudo-hwcap is only used by old versions
 
1275
     under which TLS support was optional.  The entry is no longer needed, but
 
1276
     must remain for compatibility.  */
1275
1277
  hwcap_extra[63 - _DL_FIRST_EXTRA] = "tls";
1276
1278
 
1277
1279
  set_hwcap ();