Remove _gp from sparc linker script.
commitae84e3892dd1e1f3e2960d96fa8cc139cbe29a0f
authorJiří Zárevúcky <jiri.zarevucky@nic.cz>
Tue, 10 Apr 2018 18:51:14 +0000 (10 20:51 +0200)
committerJiří Zárevúcky <jiri.zarevucky@nic.cz>
Tue, 10 Apr 2018 18:51:14 +0000 (10 20:51 +0200)
tree1a1b8591e7b3de8a8c6b44c46a151beba6b1945d
parent202872234fa56c357a39df0a3cd16a73688b3ff4
Remove _gp from sparc linker script.

The global pointer is set by each PIC function individually,
so the value loaded to %l7 here is never used.
Especially if libc is shared library, since then the GOT
of __main has a different address than the GOT of the main
executable (if there even is one).
uspace/lib/c/arch/sparc64/_link.ld.in
uspace/lib/c/arch/sparc64/src/entry.S
uspace/lib/c/arch/sparc64/src/thread_entry.S