mirror of git://git.musl-libc.org/musl
remove gratuitous aligned attribute from __ptrace_syscall_info
this change was discussed on the mailing list thread for the linux
uapi v5.3 patches, and submitted as a v2 patch, but overlooked when I
applied the patches much later.
revert commit f291c09ec9
and apply the
v2 as submitted; the net change is just padding.
notes by Szabolcs Nagy follow:
compared to the linux uapi (and glibc) a padding is used instead of
aligned attribute for keeping the layout the same across targets, this
means the alignment of the struct may be different on some targets
(e.g. m68k where uint64_t is 2 byte aligned) but that should not affect
syscalls and this way the abi does not depend on nonstandard extensions.
This commit is contained in:
parent
d6bbea2acf
commit
ac89e2ccf5
|
@ -109,7 +109,8 @@ struct __ptrace_seccomp_metadata {
|
|||
|
||||
struct __ptrace_syscall_info {
|
||||
uint8_t op;
|
||||
uint32_t arch __attribute__((__aligned__(4)));
|
||||
uint8_t __pad[3];
|
||||
uint32_t arch;
|
||||
uint64_t instruction_pointer;
|
||||
uint64_t stack_pointer;
|
||||
union {
|
||||
|
|
Loading…
Reference in New Issue