From f11e3f6278f65a685fde16ffbcadfef574935fea Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 9 Aug 1996 16:47:15 +0000 Subject: [PATCH] * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn section if it might be needed, not just if info->shared. (mips_elf_adjust_dynamic_symbol): Make room for a null element at the start of .rel.dyn if we are going to use it. (mips_elf_finish_dynamic_sections): Only clear the first element of .rel.dyn if the size is greater than zero. Fix this case from c-torture: extern int abort(); typedef int (*frob)(); frob f[] = {abort}; main() { exit(0); } --- bfd/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3a5fa598005..b91457d6807 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +Fri Aug 9 12:44:57 1996 Ian Lance Taylor + + * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn + section if it might be needed, not just if info->shared. + (mips_elf_adjust_dynamic_symbol): Make room for a null element at + the start of .rel.dyn if we are going to use it. + (mips_elf_finish_dynamic_sections): Only clear the first element + of .rel.dyn if the size is greater than zero. + Thu Aug 8 16:24:55 1996 Ian Lance Taylor * xcofflink.c (xcoff_link_input_bfd): If we already called the -- 2.30.2