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


Ignore:
Timestamp:
Apr 22, 2014, 7:45:39 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 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/v850/gdbv850sim/startup/linkcmds

    re2782684 rd60e760  
    103103  }
    104104  __TLS_Data_size = __TLS_Data_end - __TLS_Data_begin;
     105  __TLS_Data_begin = __TLS_Data_size != 0 ? __TLS_Data_begin : __TLS_BSS_begin;
     106  __TLS_Data_end = __TLS_Data_size != 0 ? __TLS_Data_end : __TLS_BSS_begin;
    105107  __TLS_BSS_size = __TLS_BSS_end - __TLS_BSS_begin;
    106108  __TLS_Size = __TLS_BSS_end - __TLS_Data_begin;
    107   __TLS_Alignment = ALIGNOF (.tdata);
     109  __TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
    108110  .data         :
    109111  {
Note: See TracChangeset for help on using the changeset viewer.