Don't include libbfd.h outside of bfd, part 1
[binutils-gdb.git] / ld / pe-dll.c
index a2806473da0af0408d27db5da43e80d58171bb01..1f176ecb46aaf67c6b1da99d57a37a935680a3a6 100644 (file)
@@ -905,6 +905,9 @@ process_def_file_and_drectve (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *
        {
          *name = '_';
          strcpy (name + 1, int_name);
+
+         /* PR 19803: The alias must be preserved as well.  */
+         lang_add_gc_name (xstrdup (name));
        }
       else
        strcpy (name, int_name);