diff options
author | Chris Demetriou <cgd@google.com> | 2002-06-19 05:34:56 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2002-06-19 05:34:56 +0000 |
commit | 7d0a848ef992287d77b941f0a3a501b2a0023f8c (patch) | |
tree | a3709e16924f6c622d9c5f6f6e7d765614ce5355 | |
parent | 33f5f537800aad5a854e03e77ba79ae2bff5ab00 (diff) | |
download | gdb-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.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/mipself.em | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index bca31fb..d90217b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. 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", |