Skip to content

proposal: syscall: export padding field names on linux/s390x consistent with other arches #57313

Closed
@bcmills

Description

@bcmills

While investigating build reproducibility for the Go toolchain, we found that at least one distribution is patching syscall to change a padding field named _ to the X__… name used on other platforms. The patch was originally written for #18628 as https://go.dev/cl/35262.

#18632 was filed for the equivalent fields in x/sys/unix, and it was decided to unexport them on other platforms instead. However, syscall remains inconsistent, and the patch was dropped from the Go repo as unnecessary.

The existence of the downstream patch suggests to me that some Go user found it necessary after all.

To improve consistency and reduce the need for downstream patching, I propose that we export the syscall.IfInfomsg.X__ifi_pad field on linux/s390x, along with any other syscall struct fields that are similarly already exported on the other linux architectures, if any exist. (I will do a quick analysis to check.)

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeProposalarch-riscvIssues solely affecting the riscv64 architecture.arch-s390xIssues solely affecting the s390x architecture.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions