1
1
mirror of https://github.com/rui314/mold.git synced 2024-07-14 16:20:34 +03:00
This commit is contained in:
Felix Yan 2024-07-06 02:14:41 +01:00 committed by GitHub
commit cd35eb175b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,9 +88,9 @@ Problem: A statically-linked "hello world" program crashes after
reading a thread-local variable.
Investigation: Thread-local variables are very different from other
types of varaibles because there may be more than one instance of the
types of variables because there may be more than one instance of the
same variable in memory. Each thread has its copy of thread-local
varaibles. `%fs` segment register points the end of the variable area
variables. `%fs` segment register points the end of the variable area
for the current thread, and the variables are accessed as an offset
from `%fs`.