2002-06-18 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Wed, 19 Jun 2002 05:34:56 +0000 (05:34 +0000)
committerChris Demetriou <cgd@google.com>
Wed, 19 Jun 2002 05:34:56 +0000 (05:34 +0000)
* emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
section flags for SEC_DATA, rather than for SEC_CODE being unset.

ld/ChangeLog
ld/emultempl/mipself.em

index bca31fb..d90217b 100644 (file)
@@ -1,5 +1,10 @@
 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
 
+       * 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  <cgd@broadcom.com>
+
        * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
        format specifier used to print BFD name.
 
index d3054e8..62a53e0 100644 (file)
@@ -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",