Changeset b27ae65a in mainline for uspace/lib/c/include/rtld/rtld.h

Timestamp:
2025-01-27T12:45:12Z (5 weeks ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
97116a2
Parents:
eff458d
git-author:
Matěj Volf <mat.volfik@…> (2025-01-27 12:45:12)
git-committer:
GitHub <noreply@…> (2025-01-27 12:45:12)
Message:

fix calculation of TLS size for main fibril (#240)

  • explain why tcb_t is added at the end of tls allocation
  • fix calculation of TLS size for main fibril

Before this patch, _tcb_data_offset always used progsymbols.elfstart. However,
that is wrong when it is being called from the loader server!! Now we pass to it
a pointer to the correct ELF, falling back to elfstart in the public tls_get call.

(debugging this was quite an ordeal and took me like 5 hours, thanks for asking (':)

  • a few comments for TLS allocation
(No files)

Note: See TracChangeset for help on using the changeset viewer.