Fix PR 20221 - adjust syms and relocs only if relax shrunk section.
[deliverable/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);
This page took 0.02633 seconds and 4 git commands to generate.