From: Chris Demetriou Date: Wed, 19 Jun 2002 05:34:56 +0000 (+0000) Subject: 2002-06-18 Chris Demetriou X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d0a848ef992287d77b941f0a3a501b2a0023f8c;p=binutils-gdb.git 2002-06-18 Chris Demetriou * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check section flags for SEC_DATA, rather than for SEC_CODE being unset. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index bca31fb7dcc..d90217b65cf 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-06-18 Chris Demetriou + + * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check + section flags for SEC_DATA, rather than for SEC_CODE being unset. + 2002-06-18 Chris Demetriou * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em index d3054e882de..62a53e0a57f 100644 --- a/ld/emultempl/mipself.em +++ b/ld/emultempl/mipself.em @@ -121,7 +121,7 @@ mips_elf${ELFSIZE}_check_sections (abfd, sec, sdatasec) asection *sec; PTR sdatasec; { - if ((bfd_get_section_flags (abfd, sec) & SEC_CODE) == 0 + if ((bfd_get_section_flags (abfd, sec) & SEC_DATA) && sec != (asection *) sdatasec && sec->reloc_count != 0) einfo ("%B%X: section %s has relocs; cannot use --embedded-relocs\n",