@@ -2038,9 +2038,6 @@ struct elf_thread_status
20382038 struct elf_prstatus prstatus ; /* NT_PRSTATUS */
20392039 elf_fpregset_t fpu ; /* NT_PRFPREG */
20402040 struct task_struct * thread ;
2041- #ifdef ELF_CORE_COPY_XFPREGS
2042- elf_fpxregset_t xfpu ; /* ELF_CORE_XFPREG_TYPE */
2043- #endif
20442041 struct memelfnote notes [3 ];
20452042 int num_notes ;
20462043};
@@ -2071,15 +2068,6 @@ static int elf_dump_thread_status(long signr, struct elf_thread_status *t)
20712068 t -> num_notes ++ ;
20722069 sz += notesize (& t -> notes [1 ]);
20732070 }
2074-
2075- #ifdef ELF_CORE_COPY_XFPREGS
2076- if (elf_core_copy_task_xfpregs (p , & t -> xfpu )) {
2077- fill_note (& t -> notes [2 ], "LINUX" , ELF_CORE_XFPREG_TYPE ,
2078- sizeof (t -> xfpu ), & t -> xfpu );
2079- t -> num_notes ++ ;
2080- sz += notesize (& t -> notes [2 ]);
2081- }
2082- #endif
20832071 return sz ;
20842072}
20852073
@@ -2090,9 +2078,6 @@ struct elf_note_info {
20902078 struct elf_prpsinfo * psinfo ; /* NT_PRPSINFO */
20912079 struct list_head thread_list ;
20922080 elf_fpregset_t * fpu ;
2093- #ifdef ELF_CORE_COPY_XFPREGS
2094- elf_fpxregset_t * xfpu ;
2095- #endif
20962081 user_siginfo_t csigdata ;
20972082 int thread_status_size ;
20982083 int numnote ;
@@ -2116,11 +2101,6 @@ static int elf_note_info_init(struct elf_note_info *info)
21162101 info -> fpu = kmalloc (sizeof (* info -> fpu ), GFP_KERNEL );
21172102 if (!info -> fpu )
21182103 return 0 ;
2119- #ifdef ELF_CORE_COPY_XFPREGS
2120- info -> xfpu = kmalloc (sizeof (* info -> xfpu ), GFP_KERNEL );
2121- if (!info -> xfpu )
2122- return 0 ;
2123- #endif
21242104 return 1 ;
21252105}
21262106
@@ -2184,13 +2164,6 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
21842164 if (info -> prstatus -> pr_fpvalid )
21852165 fill_note (info -> notes + info -> numnote ++ ,
21862166 "CORE" , NT_PRFPREG , sizeof (* info -> fpu ), info -> fpu );
2187- #ifdef ELF_CORE_COPY_XFPREGS
2188- if (elf_core_copy_task_xfpregs (current , info -> xfpu ))
2189- fill_note (info -> notes + info -> numnote ++ ,
2190- "LINUX" , ELF_CORE_XFPREG_TYPE ,
2191- sizeof (* info -> xfpu ), info -> xfpu );
2192- #endif
2193-
21942167 return 1 ;
21952168}
21962169
@@ -2243,9 +2216,6 @@ static void free_note_info(struct elf_note_info *info)
22432216 kfree (info -> psinfo );
22442217 kfree (info -> notes );
22452218 kfree (info -> fpu );
2246- #ifdef ELF_CORE_COPY_XFPREGS
2247- kfree (info -> xfpu );
2248- #endif
22492219}
22502220
22512221#endif
0 commit comments