Fix link when nosys.specs is used to link

This patch fixes the issue where nosys.specs is used to link.
e.g. The use of crt0 without any support for semihosting requested.

The AArch64 crt0 was missing an #ifdef for the initialise_monitor_handles
which was causing the link to fail. Sorry for missing this before.
This commit is contained in:
Tamar Christina 2017-07-13 10:52:42 +00:00 committed by Corinna Vinschen
parent e09a25c01b
commit 13665a7c30
1 changed files with 2 additions and 0 deletions

View File

@ -144,8 +144,10 @@
sub x2, x2, x0 /* Third arg: length of block */ sub x2, x2, x0 /* Third arg: length of block */
bl FUNCTION (memset) bl FUNCTION (memset)
#ifdef ARM_RDI_MONITOR
/* Need to set up standard file handles */ /* Need to set up standard file handles */
bl FUNCTION (initialise_monitor_handles) bl FUNCTION (initialise_monitor_handles)
#endif
/* .init and .fini sections are used to create constructors /* .init and .fini sections are used to create constructors
and destructors. Here we call the _init function and arrange and destructors. Here we call the _init function and arrange