Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: serialize Reloc.Variant field to Go object files #14218
In RISC architectures, address relocations usually need to
For example, Power load/store instructions have two forms,
Currently, we have two separate relocations in
We already have a
The proposal is to serialize the
The benefit is that: the variants are defined in arch-specific
I've sent a basic CL that does this: https://go-review.googlesource.com/#/c/27932/
It increases object file size by about 1.6%. I think it would be possible to reduce the object sizes by reducing the sizes of the types we are using for
I'm not sure what other changes are planned that this could be submitted with/integrated into to minimize disruption from the object file format change.
On 29 August 2016 at 03:20, Michael Munday email@example.com wrote:
You should update cmd/internal/goobj though.
I have a CL that needs some updates to improve its efficiency and demonstrate its value better. I'll try and allocate it some time this week.
The change is very minor and would be fully reversible in future versions (Go makes no guarantees about object file format that I know of), so I don't know if it counts as a 'proposal'.