Changeset 2c4e1cc in mainline for uspace/lib/c/arch/mips32/_link.ld.in


Ignore:
Timestamp:
2018-04-04T17:01:18Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5754c31e
Parents:
1433ecda
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-03 16:54:34)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-04 17:01:18)
Message:

Define TLS consistently in linker scripts, and remove nonstandard symbols.

Read the program header to find TLS instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/mips32/_link.ld.in

    r1433ecda r2c4e1cc  
    88        text PT_LOAD FILEHDR PHDRS FLAGS(5);
    99        data PT_LOAD FLAGS(6);
     10        tls PT_TLS;
    1011}
    1112
     
    4950
    5051        .tdata : {
    51                 _tdata_start = .;
    5252                *(.tdata);
    53                 _tdata_end = .;
    54         } :data
     53                *(.tdata.*);
     54                *(.gnu.linkonce.td.*);
     55        } :data :tls
    5556
    5657        .tbss : {
    57                 _tbss_start = .;
    5858                *(.tbss);
    59                 _tbss_end = .;
    60         } :data
    61 
    62         _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
     59                *(.tbss.*);
     60                *(.gnu.linkonce.tb.*);
     61        } :data :tls
    6362
    6463        .sbss : {
Note: See TracChangeset for help on using the changeset viewer.