Changeset 6970c47 in rtems-tools


Ignore:
Timestamp:
01/12/23 21:09:20 (2 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
a735d42
Parents:
66b81d6
git-author:
Kinsey Moore <kinsey.moore@…> (01/12/23 21:09:20)
git-committer:
Joel Sherrill <joel@…> (01/17/23 15:32:45)
Message:

linkers/rtems-syms: Generate TLS symbols

When generating the symbol table for loadable modules, include TLS
symbols so that the modules can reference them.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-syms.cpp

    r66b81d6 r6970c47  
    243243  c.write_line ("asm(\"  .asciz \\\"" + sym.name () + "\\\"\");");
    244244
     245  if (sym.type() == STT_TLS)
     246  {
     247    c.write_line ("asm(\"  .type \\\"" + sym.name () + "\\\", %tls_object\");");
     248  }
     249
    245250  if (embed)
    246251  {
  • rtemstoolkit/rld-elf.cpp

    r66b81d6 r6970c47  
    892892          if (((stype == STT_NOTYPE) ||
    893893               (stype == STT_OBJECT) ||
     894               (stype == STT_TLS) ||
    894895               (stype == STT_FUNC)) &&
    895896              ((weak && (sbind == STB_WEAK)) ||
  • rtemstoolkit/rld-symbols.cpp

    r66b81d6 r6970c47  
    278278          type = "STT_FILE   ";
    279279          break;
     280        case STT_TLS:
     281          type = "STT_TLS    ";
     282          break;
    280283        default:
    281284          if ((type_val >= STT_LOPROC) && (type_val <= STT_HIPROC))
Note: See TracChangeset for help on using the changeset viewer.