]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ix86: drop dead part of a conditional in elf_i386_convert_load_reloc()
authorJan Beulich <jbeulich@suse.com>
Fri, 21 Feb 2025 09:27:35 +0000 (10:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 21 Feb 2025 09:27:35 +0000 (10:27 +0100)
A few lines up we would have already bailed when "baseless && is_pic".

bfd/elf32-i386.c

index 77ae13527a880fbea65f7e2f95f1b950226451be..b417cb0d67a7503e804611df6cc4ae7d38953477 100644 (file)
@@ -1322,9 +1322,9 @@ elf_i386_convert_load_reloc (bfd *abfd, Elf_Internal_Shdr *symtab_hdr,
        }
     }
 
-  /* Convert to R_386_32 if PIC is false or there is no base
-     register.  */
-  to_reloc_32 = !is_pic || baseless;
+  /* Convert to R_386_32 if PIC is false (if PIC is true we already know
+     there is a base register).  */
+  to_reloc_32 = !is_pic;
 
   eh = elf_x86_hash_entry (h);