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 bca31fb7dcc2216f71af68d5a2612ddc2f93db8f..d90217b65cf3a4e6bf6e2e79871a5adff5c2f203 100644 (file)
@@ -1,3 +1,8 @@
+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
index d3054e882de6d0166e18773b945de5f8c9411d40..62a53e0a57f36505967a6e8a8878517de267d9c6 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",
This page took 0.036405 seconds and 4 git commands to generate.