On 28/06/2019 01:37, Chris Johns wrote:
On 27/6/19 10:08 pm, Sebastian Huber wrote:
I would like to get rid of the -qrtems command for normal RTEMS applications.
I do not think you can remove -qrtems as it will break all existing configure
scripts. The default needs to be stubs.

Ok, this was just some side-effect of an attempt to get rid of the bsp_specs. What about the attached patch.

You can add startfiles via the linker command file. Is it possible to add also endfiles? I didn't find anything in the GNU ld documentation about this.


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>From b17b2b3532277c2c4a5efce74ff842524fb1f383 Mon Sep 17 00:00:00 2001
From: Sebastian Huber <sebastian.hu...@embedded-brains.de>
Date: Fri, 28 Jun 2019 09:56:22 +0200
Subject: [PATCH] RTEMS: Use stub crt0.o only if not -qrtems

---
 gcc/config/rtems.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index 71ae2fd3575..6c4fbd7946c 100644
--- a/gcc/config/rtems.h
+++ b/gcc/config/rtems.h
@@ -27,7 +27,7 @@
  * needed by autoconf scripts using this compiler.
  */
 #undef STARTFILE_SPEC
-#define STARTFILE_SPEC "crt0.o%s"
+#define STARTFILE_SPEC "%{!qrtems: crt0.o}%s"
 
 #undef ENDFILE_SPEC
 #define ENDFILE_SPEC   ""
-- 
2.16.4

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to