]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a workaround to compile the crt init functions correctly with clang.
authorjhb <jhb@FreeBSD.org>
Tue, 6 Feb 2018 17:01:10 +0000 (17:01 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 6 Feb 2018 17:01:10 +0000 (17:01 +0000)
commit8263b4edd27e321ecc55621461e3df880a6263f1
treec626077260036a441aef0b3d9b8302f77783fa06
parent1899f7330de8621f04931199c102aaf16b00df8c
Use a workaround to compile the crt init functions correctly with clang.

The MIPS assembly parser treats forward-declared local symbols as global
symbols.  This results in CALL16 relocations being used against local
(private) symbols which then fail to resolve when linking binaries.
Add .local to force the init and fini functions to be treated as local as
a workaround.

Submitted by: sbruno
Sponsored by: DARPA / AFRL
contrib/gcc/config/mips/mips.h