PR 21910
	* elflink.c (bfd_elf_final_link): Don't segfault when sections
	needed to define various dynamic tags have been discarded.
+2017-08-07  Alan Modra  <amodra@gmail.com>
+
+       PR 21910
+       * elflink.c (bfd_elf_final_link): Don't segfault when sections
+       needed to define various dynamic tags have been discarded.
+
 2017-08-07  Nick Clifton  <nickc@redhat.com>
 
        PR 21884
 
            get_vma:
              o = bfd_get_linker_section (dynobj, name);
            do_vma:
-             if (o == NULL)
+             if (o == NULL || bfd_is_abs_section (o->output_section))
                {
                  _bfd_error_handler
                    (_("could not find section %s"), name);