From: Sebastian Huber Date: Mon, 23 Mar 2020 13:01:05 +0000 (+0100) Subject: Mention .tdata in comment in _bfd_elf_tls_setup() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdde2fb60cc2d0c60d9d3f085a7b6c648376991e;p=binutils-gdb.git Mention .tdata in comment in _bfd_elf_tls_setup() This helps to find code areas which deal with the .tdata section. bfd/ * elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 646868762cb..b5e0f2822e0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-03-23 Sebastian Huber + + * elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment. + 2020-03-23 Alan Modra * ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and diff --git a/bfd/elflink.c b/bfd/elflink.c index 589550e11d2..7c0849423a3 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;