From fdde2fb60cc2d0c60d9d3f085a7b6c648376991e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 23 Mar 2020 14:01:05 +0100 Subject: [PATCH] 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. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.30.2