Mention .tdata in comment in _bfd_elf_tls_setup()

Message ID 20200323130400.7785-1-sebastian.huber@embedded-brains.de
State New
Headers show
Series
  • Mention .tdata in comment in _bfd_elf_tls_setup()
Related show

Commit Message

Sebastian Huber March 23, 2020, 1:04 p.m.
This helps to find code areas which deal with the .tdata section.

bfd/

    	* elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment.
---
 bfd/elflink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.16.4

Comments

Jose E. Marchesi via Binutils March 23, 2020, 3:48 p.m. | #1
Hi Sebastian,

> bfd/

> 

>     	* elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment.


Approved - please apply.

Cheers
  Nick

Patch

diff --git a/bfd/elflink.c b/bfd/elflink.c
index 589550e11d..7c0849423a 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -3323,8 +3323,8 @@  _bfd_elf_tls_setup (bfd *obfd, struct bfd_link_info *info)
 
   elf_hash_table (info)->tls_sec = tls;
 
-  /* Ensure the alignment of the first section is the largest alignment,
-     so that the tls segment starts aligned.  */
+  /* Ensure the alignment of the first section (usually .tdata) is the largest
+     alignment, so that the tls segment starts aligned.  */
   if (tls != NULL)
     tls->alignment_power = align;