Changeset d9769c9 in rtems for c/src/lib/libbsp/i386


Ignore:
Timestamp:
Nov 22, 2017, 3:35:04 PM (2 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
22928656
Parents:
7d905df
git-author:
Joel Sherrill <joel@…> (11/22/17 15:35:04)
git-committer:
Joel Sherrill <joel@…> (11/27/17 15:51:47)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/bsp_specs

    r7d905df rd9769c9  
    22%rename startfile old_startfile
    33%rename link old_link
    4 
    5 *endfile:
    6 crtend.o%s crtn.o%s
    74
    85*startfile:
     
    129*link:
    1310%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
     11
     12*endfile:
     13%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s crtn.o%s}
Note: See TracChangeset for help on using the changeset viewer.