From: Jan Beulich Date: Fri, 21 Feb 2025 09:27:35 +0000 (+0100) Subject: ix86: drop dead part of a conditional in elf_i386_convert_load_reloc() X-Git-Tag: binutils-2_45~1512 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30b64be054a5a98b22437bfba69937513f612aab;p=thirdparty%2Fbinutils-gdb.git ix86: drop dead part of a conditional in elf_i386_convert_load_reloc() A few lines up we would have already bailed when "baseless && is_pic". --- diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 77ae13527a8..b417cb0d67a 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -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);