aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/armelf.em
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2009-06-12 14:27:21 +0000
committerPhil Blundell <philb@gnu.org>2009-06-12 14:27:21 +0000
commitf37111339e22353181634dfb3498923a89f2f16c (patch)
tree8a62ba57fda2abde040e80fd21d3703ef2a8670d /ld/emultempl/armelf.em
parentdec9d5dfd7080bdb8937a3a17ff7befecbca40b4 (diff)
downloadgdb-f37111339e22353181634dfb3498923a89f2f16c.zip
gdb-f37111339e22353181634dfb3498923a89f2f16c.tar.gz
gdb-f37111339e22353181634dfb3498923a89f2f16c.tar.bz2
2009-06-10 Philip Blundell <philb@gnu.org>
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash if section has no ELF data.
Diffstat (limited to 'ld/emultempl/armelf.em')
-rw-r--r--ld/emultempl/armelf.em1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
index de7fe68..0713c72 100644
--- a/ld/emultempl/armelf.em
+++ b/ld/emultempl/armelf.em
@@ -309,6 +309,7 @@ gld${EMULATION_NAME}_finish (void)
asection *out_sec = sec->output_section;
if (out_sec
+ && elf_section_data (sec)
&& elf_section_type (sec) == SHT_PROGBITS
&& (elf_section_flags (sec) & SHF_EXECINSTR) != 0
&& (sec->flags & SEC_EXCLUDE) == 0