Changeset 9fac9f9 in rtems


Ignore:
Timestamp:
Feb 5, 2020, 7:42:03 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
cadff8f7
Parents:
bba1475
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/20 07:42:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/06/20 14:19:35)
Message:

score: Fix linker sets on small data area targets

Update #3865.

Location:
cpukit/include/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/linkersets.h

    rbba1475 r9fac9f9  
    11/*
    2  * Copyright (c) 2015, 2016 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2015, 2020 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    3838  RTEMS_SECTION( ".rtemsroset." #set ".end" ) RTEMS_USED
    3939
     40#define RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE( set, type, item, order ) \
     41  type const _Linker_set_##set##_##item \
     42  RTEMS_SECTION( ".rtemsroset." #set ".content.0." RTEMS_XSTRING( order ) )
     43
    4044#define RTEMS_LINKER_ROSET_ITEM_DECLARE( set, type, item ) \
    41   extern type const _Linker_set_##set##_##item
     45  extern type const _Linker_set_##set##_##item \
     46  RTEMS_SECTION( ".rtemsroset." #set ".content.1" )
    4247
    4348#define RTEMS_LINKER_ROSET_ITEM_REFERENCE( set, type, item ) \
     
    6974  RTEMS_SECTION( ".rtemsrwset." #set ".end" ) RTEMS_USED
    7075
     76#define RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE( set, type, item, order ) \
     77  extern type _Linker_set_##set##_##item \
     78  RTEMS_SECTION( ".rtemsrwset." #set ".content.0." RTEMS_XSTRING( order ) )
     79
    7180#define RTEMS_LINKER_RWSET_ITEM_DECLARE( set, type, item ) \
    72   extern type _Linker_set_##set##_##item
     81  extern type _Linker_set_##set##_##item \
     82  RTEMS_SECTION( ".rtemsrwset." #set ".content.1" )
    7383
    7484/*
  • cpukit/include/rtems/score/percpudata.h

    rbba1475 r9fac9f9  
    5858 */
    5959#define PER_CPU_DATA_ITEM_DECLARE( type, item ) \
    60   RTEMS_LINKER_RWSET_ITEM_DECLARE( _Per_CPU_Data, type, item ) \
    61   RTEMS_SECTION( ".rtemsrwset._Per_CPU_Data.content.1" )
     60  RTEMS_LINKER_RWSET_ITEM_DECLARE( _Per_CPU_Data, type, item )
    6261
    6362/**
Note: See TracChangeset for help on using the changeset viewer.