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