source: rtems/c/src/lib/libbsp/powerpc/beatnik/bsp_specs @ d9769c9

Last change on this file since d9769c9 was d9769c9, checked in by Joel Sherrill <joel@…>, on Nov 22, 2017 at 3:35:04 PM

*/*/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.

  • Property mode set to 100644
File size: 368 bytes
Line 
1%rename endfile old_endfile
2%rename startfile old_startfile
3%rename link old_link
4
5*startfile:
6%{!qrtems: %(old_startfile)} \
7%{!nostdlib: %{qrtems:  ecrti%O%s rtems_crti%O%s crtbegin.o%s -e __rtems_entry_point -u __vectors motld_start.o%s}}
8
9*endfile:
10%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
11
12*link:
13%{!qrtems: %(old_link)} %{qrtems: -dp -Bstatic}
Note: See TracBrowser for help on using the repository browser.