Changeset 0546e65e in rtems


Ignore:
Timestamp:
May 31, 2016, 7:12:43 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a9cff51b
Parents:
ccda9459
git-author:
Sebastian Huber <sebastian.huber@…> (05/31/16 07:12:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/16 08:10:36)
Message:

bsps: Add defines for some linker subsections

The GNU ld sort by name or alignment needs distinct input sections.

Location:
c/src/lib/libbsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/linker-symbols.h

    rccda9459 r0546e65e  
    88
    99/*
    10  * Copyright (c) 2008-2015 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008, 2016 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    145145#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
    146146
     147#define BSP_NOCACHE_SUBSECTION(subsection) \
     148  __attribute__((section(".bsp_nocache." # subsection)))
     149
    147150#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
     151
     152#define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \
     153  __attribute__((section(".bsp_noload_nocache." # subsection)))
    148154
    149155LINKER_SYMBOL(bsp_processor_count)
  • c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h

    rccda9459 r0546e65e  
    88
    99/*
    10  * Copyright (c) 2010-2015 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2010, 2016 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    118118#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
    119119
     120#define BSP_NOCACHE_SUBSECTION(subsection) \
     121  __attribute__((section(".bsp_nocache." # subsection)))
     122
    120123#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
    121124
     125#define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \
     126  __attribute__((section(".bsp_noload_nocache." # subsection)))
     127
    122128#define BSP_NVRAM_SECTION __attribute__((section(".bsp_nvram")))
     129
     130#define BSP_NVRAM_SUBSECTION(subsection) \
     131  __attribute__((section(".bsp_nvram." # subsection)))
    123132
    124133/** @} */
Note: See TracChangeset for help on using the changeset viewer.