ppc64 ld : linker synthesized _savegpr* and _restgpr*

Alan Modra amodra@gmail.com
Wed May 6 00:12:59 GMT 2020


On Tue, May 05, 2020 at 03:41:04PM -0700, Fangrui Song wrote:
> Isn't it cleaner and more elegant to define these functions in libgcc, like
> everything else does?

No, and there is another benefit to having the linker generate
out-of-line register save and restore functions: If the binary is so
large that "bl" can't reach them from some location, the linker
inserts multiple copies of those functions rather than bouncing
through long branch trampolines.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list