[PATCH] or1k: add KEEP section directives to the linkcmds

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 5 06:41:18 UTC 2016


Hello Hesham,

I think this adds way to many KEEP() directives.

On 05/04/16 08:37, Hesham Almatary wrote:
> From: Hesham Almatary <heshamelmatary at gmail.com>
>
> ---
>   c/src/lib/libbsp/or1k/shared/startup/linkcmds.base | 86 +++++++++++-----------
>   1 file changed, 43 insertions(+), 43 deletions(-)
>
> diff --git a/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base b/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
> index 31bb92d..133ad0f 100644
> --- a/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
> +++ b/c/src/lib/libbsp/or1k/shared/startup/linkcmds.base
> @@ -41,7 +41,7 @@ bsp_processor_count = DEFINED (bsp_processor_count) ? bsp_processor_count : 1;
>   SECTIONS {
>   
>     .vector : ALIGN_WITH_INPUT {
> -    *(.vector)
> +    KEEP (*(.vector))
>       . = ALIGN(bsp_vector_table_size);
>       bsp_section_vector_end = .;
>     } > REGION_VECTOR AT > REGION_VECTOR

This should be the only one necessary.

[...]

-- 
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.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list