<R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
* elf32-vax.c (elf_vax_relocate_section)
+ <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
+
+2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
+
+ * elf32-vax.c (elf_vax_relocate_section)
<R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
its name as the check for text sections.
}
if ((input_section->flags & SEC_CODE) != 0
- || (info->shared
- && ELF32_R_TYPE (outrel.r_info) != R_VAX_32
+ || (ELF32_R_TYPE (outrel.r_info) != R_VAX_32
&& ELF32_R_TYPE (outrel.r_info) != R_VAX_RELATIVE
&& ELF32_R_TYPE (outrel.r_info) != R_VAX_COPY
&& ELF32_R_TYPE (outrel.r_info) != R_VAX_JMP_SLOT