OSDN Git Service

2005-01-15 Marc Espie <espie@openbsd.org>
authorespie <espie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jan 2005 10:43:19 +0000 (10:43 +0000)
committerespie <espie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jan 2005 10:43:19 +0000 (10:43 +0000)
* collect2.c (main): Explicitly parse -dynamic-linker option.

okay Mark Mitchell

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93693 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index 8aec528..7dbed63 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-15  Marc Espie  <espie@openbsd.org>
+
+       * collect2.c (main): Explicitly parse -dynamic-linker option.
+
 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/19060
index 999e670..a951a3d 100644 (file)
@@ -1099,6 +1099,11 @@ main (int argc, char **argv)
                  ld1--;
                  ld2--;
                }
+             if (!strcmp (arg, "-dynamic-linker") && argv[1])
+               {
+                 ++argv;
+                 *ld1++ = *ld2++ = *argv;
+               }
              break;
 
            case 'l':