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