Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <Tamar.Christina@arm.com>2017-07-13 13:52:42 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-07-14 11:36:32 +0300
commit13665a7c30b13d872a5a7f9af4104b5edfa0e5cc (patch)
tree7ede52cf77fe7f6f6713eb3440655cf71b7f2afe /libgloss/aarch64
parente09a25c01bccaff966cdbe44ad7d4da89885b89d (diff)
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.
Diffstat (limited to 'libgloss/aarch64')
-rw-r--r--libgloss/aarch64/crt0.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgloss/aarch64/crt0.S b/libgloss/aarch64/crt0.S
index ed4dafcb1..cbff11a49 100644
--- a/libgloss/aarch64/crt0.S
+++ b/libgloss/aarch64/crt0.S
@@ -144,8 +144,10 @@
sub x2, x2, x0 /* Third arg: length of block */
bl FUNCTION (memset)
+#ifdef ARM_RDI_MONITOR
/* Need to set up standard file handles */
bl FUNCTION (initialise_monitor_handles)
+#endif
/* .init and .fini sections are used to create constructors
and destructors. Here we call the _init function and arrange