diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-07-27 00:14:57 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-07-27 00:14:57 -0400 |
commit | e1b9c1b01be294cc2865acfe33544d5e5cc50eb4 (patch) | |
tree | b3efaa1aa0c3ec7ce04dd43bc5c02bd1f26f6c1c /src/internal/libc.c | |
parent | 07e62953c768f9f09485388c22ffaed98d11d676 (diff) | |
download | musl-e1b9c1b01be294cc2865acfe33544d5e5cc50eb4.tar.gz musl-e1b9c1b01be294cc2865acfe33544d5e5cc50eb4.tar.xz musl-e1b9c1b01be294cc2865acfe33544d5e5cc50eb4.zip |
save AT_HWCAP from auxv for subsequent use in machine-specific code
it's expected that this will be needed/useful only in asm, so I've given it its own symbol that can be addressed in pc-relative ways from asm rather than adding a field in the __libc structure which would require hard-coding the offset wherever it's used.
Diffstat (limited to 'src/internal/libc.c')
-rw-r--r-- | src/internal/libc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/libc.c b/src/internal/libc.c index c1e21ca0..004c1a33 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -13,3 +13,5 @@ struct __libc __libc; #ifdef BROKEN_VISIBILITY __asm__(".hidden __libc"); #endif + +size_t __hwcap; |