mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
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.
This commit is contained in:
@ -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>
|
2002-06-18 Chris Demetriou <cgd@broadcom.com>
|
||||||
|
|
||||||
* emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
|
* emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
|
||||||
|
@ -121,7 +121,7 @@ mips_elf${ELFSIZE}_check_sections (abfd, sec, sdatasec)
|
|||||||
asection *sec;
|
asection *sec;
|
||||||
PTR sdatasec;
|
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 != (asection *) sdatasec
|
||||||
&& sec->reloc_count != 0)
|
&& sec->reloc_count != 0)
|
||||||
einfo ("%B%X: section %s has relocs; cannot use --embedded-relocs\n",
|
einfo ("%B%X: section %s has relocs; cannot use --embedded-relocs\n",
|
||||||
|
Reference in New Issue
Block a user