diff options
Diffstat (limited to 'ld')
-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", |