[PATCH 25/27] sparc64/*/bsp_specs, shared/.../start.S: Use GCC init/fini, improve consistency

Gedare Bloom gedare at rtems.org
Thu Nov 30 19:30:32 UTC 2017


ok with me

On Wed, Nov 29, 2017 at 2:42 PM, Joel Sherrill <joel at rtems.org> wrote:
> Updates #3520.
> ---
>  c/src/lib/libbsp/sparc64/niagara/bsp_specs    | 10 ++++------
>  c/src/lib/libbsp/sparc64/shared/start/start.S | 14 --------------
>  c/src/lib/libbsp/sparc64/usiii/bsp_specs      | 10 ++++------
>  3 files changed, 8 insertions(+), 26 deletions(-)
>
> diff --git a/c/src/lib/libbsp/sparc64/niagara/bsp_specs b/c/src/lib/libbsp/sparc64/niagara/bsp_specs
> index 640e73a..c2f4ae1 100644
> --- a/c/src/lib/libbsp/sparc64/niagara/bsp_specs
> +++ b/c/src/lib/libbsp/sparc64/niagara/bsp_specs
> @@ -4,12 +4,10 @@
>
>  *startfile:
>  %{!qrtems: %(old_startfile)} \
> -%{!nostdlib: %{qrtems: start.o%s crtbegin.o%s -e _start}}
> -
> -*endfile:
> -%{!qrtems: %(old_endfile)} \
> -%{!nostdlib: %{qrtems: crtend.o%s}}
> +%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e _start}}
>
>  *link:
> -%(old_link) %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
> +%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
>
> +*endfile:
> +%{!qrtems: %(old_endfile)} %{!nostdlib: %{qrtems: crtend.o%s crtn.o%s}}
> diff --git a/c/src/lib/libbsp/sparc64/shared/start/start.S b/c/src/lib/libbsp/sparc64/shared/start/start.S
> index 56ecc05..92c2177 100644
> --- a/c/src/lib/libbsp/sparc64/shared/start/start.S
> +++ b/c/src/lib/libbsp/sparc64/shared/start/start.S
> @@ -149,17 +149,3 @@ halted:    nop
>    .align CPU_ALIGNMENT
>    param_space:
>         .space 8
> -
> -.section .fini
> -  .global _fini
> -  _fini:
> -    nop
> -    retl
> -    nop
> -
> -.section .init
> -  .global _init
> -  _init:
> -    nop
> -    retl
> -    nop
> diff --git a/c/src/lib/libbsp/sparc64/usiii/bsp_specs b/c/src/lib/libbsp/sparc64/usiii/bsp_specs
> index 640e73a..c2f4ae1 100644
> --- a/c/src/lib/libbsp/sparc64/usiii/bsp_specs
> +++ b/c/src/lib/libbsp/sparc64/usiii/bsp_specs
> @@ -4,12 +4,10 @@
>
>  *startfile:
>  %{!qrtems: %(old_startfile)} \
> -%{!nostdlib: %{qrtems: start.o%s crtbegin.o%s -e _start}}
> -
> -*endfile:
> -%{!qrtems: %(old_endfile)} \
> -%{!nostdlib: %{qrtems: crtend.o%s}}
> +%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e _start}}
>
>  *link:
> -%(old_link) %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
> +%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
>
> +*endfile:
> +%{!qrtems: %(old_endfile)} %{!nostdlib: %{qrtems: crtend.o%s crtn.o%s}}
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list