[PATCH v2 6/7] ix86: drop dead part of a conditional in elf_i386_convert_load_reloc()

Jan Beulich jbeulich@suse.com
Fri Feb 14 09:56:51 GMT 2025


A few lines up we would have already bailed when "baseless && is_pic".
---
v2: New.

--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1322,9 +1322,9 @@ elf_i386_convert_load_reloc (bfd *abfd,
 	}
     }
 
-  /* 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);
 



More information about the Binutils mailing list