summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/bsp_specs
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-11-22 09:35:04 -0600
committerJoel Sherrill <joel@rtems.org>2017-11-27 09:51:47 -0600
commitd9769c96cf8370a5231fe8590c36d3706f828565 (patch)
treec195307e382d64cfb7b005d6a46d5cdfde6aac17 /c/src/lib/libbsp/i386/pc386/bsp_specs
parentaclocal/check-bsps.m4: Do not rely on bsp_specs to find BSP families (diff)
downloadrtems-d9769c96cf8370a5231fe8590c36d3706f828565.tar.bz2
*/*/bsp_specs: Increase similarity to ease future analysis
Done: arm bfin epiphany i386 lm32 m32c mips moxie nios2 or1k powerpc riscv sh sparc sparc64 v850 To do: m68k Differences noted: + endfile was sometimes before startfile + endfile sometimes was hard-coded and did not have -qrtems version + Should -e XXX (e.g. entry point) be in linkcmds? + Should -u XXX (e.g. undefined symbols) be in linkcmds? + Typos: Odd spacing, "old_endfiles" typo, and *(old_endfiles) (not %) + nios2: Referenced crtnn.o not crtn.o (error) Need to revisit: + m32c, moxie, sparc64 includes !nostdlib which is not used elsewhere + sh has -EL/-EB mapping. Why needed? + sparc64 didn't include crti.o/crtn.o but it is part of toolset + v850 uses something like this for link and end_file: "%{qrtems: %(old_link)}" This means that these are unnecessary. Try this on all. + mips uses old_link all the time also. + arm/tms750 adds -EB. + powerpc: Why do we have rtems_crt* and not use something from GCC? Updates #3520.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/bsp_specs')
-rw-r--r--c/src/lib/libbsp/i386/pc386/bsp_specs6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/bsp_specs b/c/src/lib/libbsp/i386/pc386/bsp_specs
index 0b334ed140..5154de8c55 100644
--- a/c/src/lib/libbsp/i386/pc386/bsp_specs
+++ b/c/src/lib/libbsp/i386/pc386/bsp_specs
@@ -2,12 +2,12 @@
%rename startfile old_startfile
%rename link old_link
-*endfile:
-crtend.o%s crtn.o%s
-
*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e start}}
*link:
%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
+
+*endfile:
+%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s crtn.o%s}