Changeset 2c4e1cc in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2018-04-04T17:01:18Z (8 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.

Location:
uspace/lib/c/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/elf/elf.h

    r1433ecda r2c4e1cc  
    4141#include <libarch/elf.h>
    4242
     43extern const uint8_t __executable_start[];
     44
     45extern const elf_segment_header_t *elf_get_phdr(const void *, unsigned);
     46extern uintptr_t elf_get_bias(const void *);
     47
    4348#endif
    4449
  • uspace/lib/c/include/tls.h

    r1433ecda r2c4e1cc  
    4343#define DTV_GN(dtv) (((uintptr_t *)(dtv))[0])
    4444
    45 /*
    46  * Symbols defined in the respective linker script.
    47  */
    48 extern char _tls_alignment;
    49 extern char _tdata_start;
    50 extern char _tdata_end;
    51 extern char _tbss_start;
    52 extern char _tbss_end;
    53 
    5445extern tcb_t *tls_make(void);
    5546extern tcb_t *tls_alloc_arch(void **, size_t);
Note: See TracChangeset for help on using the changeset viewer.