Changeset d60e760 in rtems for c/src/lib/libbsp/h8300


Ignore:
Timestamp:
Apr 22, 2014, 7:45:39 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
a531683
Parents:
e2782684
git-author:
Sebastian Huber <sebastian.huber@…> (04/22/14 07:45:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/22/14 07:51:17)
Message:

bsps: Fix TLS support in linker command files

The TLS section symbols had wrong values in case of an empty TLS data
section and a nonempty TLS BSS section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/startup/linkcmds

    re2782684 rd60e760  
    7171    }  >ram
    7272    __TLS_Data_size = __TLS_Data_end - __TLS_Data_begin;
     73    __TLS_Data_begin = __TLS_Data_size != 0 ? __TLS_Data_begin : __TLS_BSS_begin;
     74    __TLS_Data_end = __TLS_Data_size != 0 ? __TLS_Data_end : __TLS_BSS_begin;
    7375    __TLS_BSS_size = __TLS_BSS_end - __TLS_BSS_begin;
    7476    __TLS_Size = __TLS_BSS_end - __TLS_Data_begin;
    75     __TLS_Alignment = ALIGNOF (.tdata);
     77    __TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
    7678   .tors SIZEOF(.tbss) + ADDR(.tbss): {
    7779        ___ctors = . ;
Note: See TracChangeset for help on using the changeset viewer.