[PATCH 05/10] s390: Sync local variable name between {elf32|elf64}-s390.c
Jens Remus
jremus@linux.ibm.com
Thu Nov 13 13:21:56 GMT 2025
Use descriptive variable name "srelgot", used in elf32-s390.c
function elf_s390_relocate_section, in its elf64-s390.c counterpart
as well.
This simplifies comparison of elf32-s390.c and elf64-s390.c, as it
reduces the number of unimportant differences.
Non-functional change. Rename of local variable.
bfd/
* elf64-s390.c (elf_s390_relocate_section): Rename s to srelgot.
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---
bfd/elf64-s390.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 50ab703dd118..8f68cd0a38e4 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -2586,12 +2586,12 @@ elf_s390_relocate_section (bfd *output_bfd,
if (bfd_link_pic (info))
{
- asection *s;
+ asection *srelgot;
Elf_Internal_Rela outrel;
bfd_byte *loc;
- s = htab->elf.srelgot;
- if (s == NULL)
+ srelgot = htab->elf.srelgot;
+ if (srelgot == NULL)
abort ();
outrel.r_offset = (htab->elf.sgot->output_section->vma
@@ -2599,8 +2599,8 @@ elf_s390_relocate_section (bfd *output_bfd,
+ off);
outrel.r_info = ELF64_R_INFO (0, R_390_RELATIVE);
outrel.r_addend = relocation;
- loc = s->contents;
- loc += s->reloc_count++ * sizeof (Elf64_External_Rela);
+ loc = srelgot->contents;
+ loc += srelgot->reloc_count++ * sizeof (Elf64_External_Rela);
bfd_elf64_swap_reloca_out (output_bfd, &outrel, loc);
}
--
2.48.1
More information about the Binutils
mailing list