public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Mention .tdata in comment in _bfd_elf_tls_setup()
@ 2020-03-23 13:04 Sebastian Huber
  2020-03-23 15:48 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2020-03-23 13:04 UTC (permalink / raw)
  To: binutils

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(-)

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;
 
-- 
2.16.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Mention .tdata in comment in _bfd_elf_tls_setup()
  2020-03-23 13:04 [PATCH] Mention .tdata in comment in _bfd_elf_tls_setup() Sebastian Huber
@ 2020-03-23 15:48 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2020-03-23 15:48 UTC (permalink / raw)
  To: Sebastian Huber, binutils

Hi Sebastian,

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

Approved - please apply.

Cheers
  Nick



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-23 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 13:04 [PATCH] Mention .tdata in comment in _bfd_elf_tls_setup() Sebastian Huber
2020-03-23 15:48 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).