_gp points to a position in the file, so it is not really absolute. It is also simpler to not force it to be absolute, so if there is no strong ABI requirement we should not do it.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Is it still possible to assign _gp an arbitrary value using a linker script? For example, point into the middle of .sdata section?
Comment Actions
Is it still possible to assign _gp an arbitrary value using a linker script? For example, point into the middle of .sdata section?
test/ELF/mips-gp-ext.s tests that, no?
You are right. The patch is LGTM.