mirror of
git://git.musl-libc.org/musl
synced 2024-12-15 03:05:15 +00:00
fix riscv64 elf_fpregset_t type and member names mismatch
in order for sys/procfs.h (provided by sys/user.h) to be useful, it needs to match the API its consumers (gdb, etc.) expect, including the member names established by glibc. this partly reverts commit29e8737f81
, which partly revertedd493206de7
, eliminating struct user_fpregs_struct which seems to have had no precedent and using union __riscv_mc_fp_state for elf_fpregset_t. this requires indirect inclusion of signal.h to make union __riscv_mc_fp_state visible, but being that these are nonstandard "junk" headers with no official restrictions on what they can pull in, that's no big deal. split off and expanded from patch by Khem Raj.
This commit is contained in:
parent
ab3eb89a8b
commit
2c2477da9a
@ -1,8 +1,5 @@
|
||||
struct user_fpregs_struct {
|
||||
double f[32];
|
||||
unsigned int fcsr;
|
||||
};
|
||||
#include <signal.h>
|
||||
|
||||
#define ELF_NGREG 32
|
||||
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
|
||||
typedef struct user_fpregs_struct elf_fpregset_t;
|
||||
typedef union __riscv_mc_fp_state elf_fpregset_t;
|
||||
|
Loading…
Reference in New Issue
Block a user