]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Mention .tdata in comment in _bfd_elf_tls_setup()
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 23 Mar 2020 13:01:05 +0000 (14:01 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 23 Mar 2020 16:04:28 +0000 (17:04 +0100)
This helps to find code areas which deal with the .tdata section.

bfd/

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

bfd/ChangeLog
bfd/elflink.c

index 646868762cbf2fe0c9636185d4bd77f07e774399..b5e0f2822e0207d8faecfefede7e31c5046c3a2a 100644 (file)
@@ -1,3 +1,7 @@
+2020-03-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       * elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment.
+
 2020-03-23  Alan Modra  <amodra@gmail.com>
 
        * ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and
index 589550e11d288dd983d8b2db3cae5bbc6a57b72a..7c0849423a3d0eac6f4bbecb0135b127c8853519 100644 (file)
@@ -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;