|
|
446cf2 |
commit ae67f2e562603a0b58f59aef4f31aa33de05ba88
|
|
|
446cf2 |
Author: H.J. Lu <hjl.tools@gmail.com>
|
|
|
446cf2 |
Date: Fri Aug 3 06:40:48 2018 -0700
|
|
|
446cf2 |
|
|
|
446cf2 |
x86: Cleanup cpu-features-offsets.sym
|
|
|
446cf2 |
|
|
|
446cf2 |
Remove the unused macros. There is no code changes in libc.so nor
|
|
|
446cf2 |
ld.so on i686 and x86-64.
|
|
|
446cf2 |
|
|
|
446cf2 |
* sysdeps/x86/cpu-features-offsets.sym
|
|
|
446cf2 |
(rtld_global_ro_offsetof): Removed.
|
|
|
446cf2 |
(CPU_FEATURES_SIZE): Likewise.
|
|
|
446cf2 |
(CPUID_OFFSET): Likewise.
|
|
|
446cf2 |
(CPUID_SIZE): Likewise.
|
|
|
446cf2 |
(CPUID_EAX_OFFSET): Likewise.
|
|
|
446cf2 |
(CPUID_EBX_OFFSET): Likewise.
|
|
|
446cf2 |
(CPUID_ECX_OFFSET): Likewise.
|
|
|
446cf2 |
(CPUID_EDX_OFFSET): Likewise.
|
|
|
446cf2 |
(FAMILY_OFFSET): Likewise.
|
|
|
446cf2 |
(MODEL_OFFSET): Likewise.
|
|
|
446cf2 |
(FEATURE_OFFSET): Likewise.
|
|
|
446cf2 |
(FEATURE_SIZ): Likewise.
|
|
|
446cf2 |
(COMMON_CPUID_INDEX_1): Likewise.
|
|
|
446cf2 |
(COMMON_CPUID_INDEX_7): Likewise.
|
|
|
446cf2 |
(FEATURE_INDEX_1): Likewise.
|
|
|
446cf2 |
(RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
|
|
|
446cf2 |
|
|
|
446cf2 |
diff --git a/sysdeps/x86/cpu-features-offsets.sym b/sysdeps/x86/cpu-features-offsets.sym
|
|
|
446cf2 |
index 33dd094e37f0fec7..6d03cea8e8fcdc36 100644
|
|
|
446cf2 |
--- a/sysdeps/x86/cpu-features-offsets.sym
|
|
|
446cf2 |
+++ b/sysdeps/x86/cpu-features-offsets.sym
|
|
|
446cf2 |
@@ -2,23 +2,5 @@
|
|
|
446cf2 |
|
|
|
446cf2 |
#include <ldsodefs.h>
|
|
|
446cf2 |
|
|
|
446cf2 |
-#define rtld_global_ro_offsetof(mem) offsetof (struct rtld_global_ro, mem)
|
|
|
446cf2 |
-
|
|
|
446cf2 |
-RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET rtld_global_ro_offsetof (_dl_x86_cpu_features)
|
|
|
446cf2 |
-
|
|
|
446cf2 |
-CPU_FEATURES_SIZE sizeof (struct cpu_features)
|
|
|
446cf2 |
-CPUID_OFFSET offsetof (struct cpu_features, cpuid)
|
|
|
446cf2 |
-CPUID_SIZE sizeof (struct cpuid_registers)
|
|
|
446cf2 |
-CPUID_EAX_OFFSET offsetof (struct cpuid_registers, eax)
|
|
|
446cf2 |
-CPUID_EBX_OFFSET offsetof (struct cpuid_registers, ebx)
|
|
|
446cf2 |
-CPUID_ECX_OFFSET offsetof (struct cpuid_registers, ecx)
|
|
|
446cf2 |
-CPUID_EDX_OFFSET offsetof (struct cpuid_registers, edx)
|
|
|
446cf2 |
-FAMILY_OFFSET offsetof (struct cpu_features, family)
|
|
|
446cf2 |
-MODEL_OFFSET offsetof (struct cpu_features, model)
|
|
|
446cf2 |
+RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET offsetof (struct rtld_global_ro, _dl_x86_cpu_features)
|
|
|
446cf2 |
XSAVE_STATE_SIZE_OFFSET offsetof (struct cpu_features, xsave_state_size)
|
|
|
446cf2 |
-FEATURE_OFFSET offsetof (struct cpu_features, feature)
|
|
|
446cf2 |
-FEATURE_SIZE sizeof (unsigned int)
|
|
|
446cf2 |
-
|
|
|
446cf2 |
-COMMON_CPUID_INDEX_1
|
|
|
446cf2 |
-COMMON_CPUID_INDEX_7
|
|
|
446cf2 |
-FEATURE_INDEX_1
|