mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 02:45:37 +08:00
2009-06-10 Philip Blundell <philb@gnu.org>
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash if section has no ELF data.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-06-10 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
|
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
|
||||||
|
if section has no ELF data.
|
||||||
|
|
||||||
2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
|
2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
|
* scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
|
||||||
|
@ -309,6 +309,7 @@ gld${EMULATION_NAME}_finish (void)
|
|||||||
asection *out_sec = sec->output_section;
|
asection *out_sec = sec->output_section;
|
||||||
|
|
||||||
if (out_sec
|
if (out_sec
|
||||||
|
&& elf_section_data (sec)
|
||||||
&& elf_section_type (sec) == SHT_PROGBITS
|
&& elf_section_type (sec) == SHT_PROGBITS
|
||||||
&& (elf_section_flags (sec) & SHF_EXECINSTR) != 0
|
&& (elf_section_flags (sec) & SHF_EXECINSTR) != 0
|
||||||
&& (sec->flags & SEC_EXCLUDE) == 0
|
&& (sec->flags & SEC_EXCLUDE) == 0
|
||||||
|
Reference in New Issue
Block a user