Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rui314/mold
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ca7b175378ae7764146f82e87a0645b6e3a5e8b
Choose a base ref
..
head repository: rui314/mold
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6db8501213380bfd930e2828da6932ca7fa6b9a
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 elf/tls.cc
8 changes: 4 additions & 4 deletions elf/tls.cc
Original file line number Diff line number Diff line change
@@ -43,10 +43,10 @@
// `add %dst, %tp, <link-time constant>`.
//
// 2. If we are creating a shared library, we don't excatly know where
// its TLS template image will be copied to relative TP, because we
// don't know how large is the main executable's and other libraries'
// TLS template images are. Only the runtime knows the exact
// TP-relative address.
// its TLS template image will be copied to in terms of the
// TP-relative address, because we don't know how large is the main
// executable's and other libraries' TLS template images are. Only the
// runtime knows the exact TP-relative address.
//
// We can solve the problem with an indirection. Specifically, for
// each TLV whose TP-relative address is only known at process startup