aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 44cae03..c80146b 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -3130,6 +3130,7 @@ elf_cris_discard_excess_program_dynamics (h, inf)
introduce new problems. Of course we don't do this if we're
exporting all dynamic symbols. */
if (! info->export_dynamic
+ && h->root.dynindx != -1
&& !h->root.def_dynamic
&& !h->root.ref_dynamic)
{