]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s390: Mention GOTIE20 relocation in TLS related comment
authorJens Remus <jremus@linux.ibm.com>
Fri, 14 Nov 2025 08:42:13 +0000 (09:42 +0100)
committerJens Remus <jremus@linux.ibm.com>
Fri, 14 Nov 2025 08:42:13 +0000 (09:42 +0100)
Commit bd1ea41b84b0 introduced the R_390_TLS_GOTIE20 relocation, but
missed to update a comment that mentions the related R_390_TLS_GOTIE12
relocation.

bfd/
* elf32-s390.c (allocate_dynrelocs): Mention GOTIE20 relocation
in TLS related comment.
* elf64-s390.c (allocate_dynrelocs): Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
bfd/elf32-s390.c
bfd/elf64-s390.c

index ea5368ea9ddb50faf74f522ff68a655aa3cc1e23..252ec44f4095b5a8f88096f75cd5b707d393b7c4 100644 (file)
@@ -1624,9 +1624,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
       elf_s390_adjust_gotplt((struct elf_s390_link_hash_entry *) h);
     }
 
-  /* If R_390_TLS_{IE32,GOTIE32,GOTIE12,IEENT} symbol is now local to
+  /* If R_390_TLS_{IE32,GOTIE32,GOTIE12,GOTIE20,IEENT} symbol is now local to
      the binary, we can optimize a bit. IE32 and GOTIE32 get converted
-     to R_390_TLS_LE32 requiring no TLS entry. For GOTIE12 and IEENT
+     to R_390_TLS_LE32 requiring no TLS entry. For GOTIE12, GOTIE20, and IEENT
      we can save the dynamic TLS relocation.  */
   if (h->got.refcount > 0
       && !bfd_link_pic (info)
index 9242407b1b5da0cd4ee6f0c91dbbbcff604fbbfc..6394f27e0e2e132a18f2e155ea8031b5d3e21556 100644 (file)
@@ -1776,9 +1776,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
       elf_s390_adjust_gotplt((struct elf_s390_link_hash_entry *) h);
     }
 
-  /* If R_390_TLS_{IE64,GOTIE64,GOTIE12,IEENT} symbol is now local to
+  /* If R_390_TLS_{IE64,GOTIE64,GOTIE12,GOTIE20,IEENT} symbol is now local to
      the binary, we can optimize a bit. IE64 and GOTIE64 get converted
-     to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
+     to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12, GOTIE20, and IEENT
      we can save the dynamic TLS relocation.  */
   if (h->got.refcount > 0
       && !bfd_link_dll (info)