Mark the function called by the MIPS .init/.fini sequence with .local.

As with r328939 we need to mark local symbols as such. Without this the
assembly parser treats the symbols as global and created relocations
against these private symbols.

MFC with:	r339738
Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-11-23 16:33:03 +00:00
parent fbca55a51c
commit e1fa5626cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340840

View File

@ -36,6 +36,7 @@
"1: \n" \
".cpload $ra \n" \
".set reorder \n" \
".local " __STRING(func) "\n" \
"jal " __STRING(func)
#else
#define INIT_CALL_SEQ(func) \
@ -45,6 +46,7 @@
"1: \n" \
".set reorder \n" \
".cpsetup $ra, $v0, 1b \n" \
".local " __STRING(func) "\n" \
"jal " __STRING(func)
#endif