aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2002-06-19 05:34:56 +0000
committerChris Demetriou <cgd@google.com>2002-06-19 05:34:56 +0000
commit7d0a848ef992287d77b941f0a3a501b2a0023f8c (patch)
treea3709e16924f6c622d9c5f6f6e7d765614ce5355 /ld/emultempl
parent33f5f537800aad5a854e03e77ba79ae2bff5ab00 (diff)
downloadgdb-7d0a848ef992287d77b941f0a3a501b2a0023f8c.zip
gdb-7d0a848ef992287d77b941f0a3a501b2a0023f8c.tar.gz
gdb-7d0a848ef992287d77b941f0a3a501b2a0023f8c.tar.bz2
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/mipself.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em
index d3054e8..62a53e0 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",