summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:27:01 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:27:01 +0000
commitd948afe15686149af3193ed4f15c626a4c4aa5b2 (patch)
treec5d7186bdfd0673c0fe6b07a662ebf0108cbaa27
parent9eeeb68e88dc0c018475f97cb56c857d1749c347 (diff)
downloadbinutils-redhat-d948afe15686149af3193ed4f15c626a4c4aa5b2.tar.gz
* elf32-vax.c (elf_vax_relocate_section)
<R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-vax.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 766bd2dc79..a3daca5f00 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,11 @@
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.
diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c
index 735f2231f6..5b86329f19 100644
--- a/bfd/elf32-vax.c
+++ b/bfd/elf32-vax.c
@@ -1692,8 +1692,7 @@ elf_vax_relocate_section (bfd *output_bfd,
}
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