From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kwanyin.sergiodj.net (kwanyin.sergiodj.net [158.69.185.54]) by sourceware.org (Postfix) with ESMTPS id 12F8D385BF83 for ; Tue, 7 Apr 2020 02:06:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 12F8D385BF83 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Mention .tdata in comment in _bfd_elf_tls_setup() From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: Date: Mon, 06 Apr 2020 22:06:26 -0400 X-Spam-Status: No, score=-15.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-testers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-testers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 02:06:31 -0000 *** TEST RESULTS FOR COMMIT fdde2fb60cc2d0c60d9d3f085a7b6c648376991e *** commit fdde2fb60cc2d0c60d9d3f085a7b6c648376991e Author: Sebastian Huber AuthorDate: Mon Mar 23 14:01:05 2020 +0100 Commit: Sebastian Huber CommitDate: Mon Mar 23 17:04:28 2020 +0100 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 646868762c..b5e0f2822e 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 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;