Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/ld/ld Also accept (and ignore) -export-dynamic (...



details:   https://anonhg.NetBSD.org/src/rev/1ac338c23eb9
branches:  trunk
changeset: 514213:1ac338c23eb9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Aug 26 00:02:46 2001 +0000

description:
Also accept (and ignore) -export-dynamic (already accepted --export-dynamic).

diffstat:

 gnu/usr.bin/ld/ld/ld.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9f8afc89eefd -r 1ac338c23eb9 gnu/usr.bin/ld/ld/ld.c
--- a/gnu/usr.bin/ld/ld/ld.c    Sat Aug 25 23:08:39 2001 +0000
+++ b/gnu/usr.bin/ld/ld/ld.c    Sun Aug 26 00:02:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld.c,v 1.74 2000/12/26 01:29:03 jhawk Exp $    */
+/*     $NetBSD: ld.c,v 1.75 2001/08/26 00:02:46 thorpej Exp $  */
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -88,7 +88,7 @@
 
 #ifndef lint
 /* from: "@(#)ld.c     6.10 (Berkeley) 5/22/91"; */
-__RCSID("$NetBSD: ld.c,v 1.74 2000/12/26 01:29:03 jhawk Exp $");
+__RCSID("$NetBSD: ld.c,v 1.75 2001/08/26 00:02:46 thorpej Exp $");
 #endif /* not lint */
 
 #define GNU_BINUTIL_COMPAT     /* forwards compatiblity with binutils 2.x */
@@ -896,6 +896,11 @@
        if (!strcmp(swt + 1, "assert"))
                return;
 #ifdef GNU_BINUTIL_COMPAT
+       if (!strcmp(swt + 1, "export-dynamic")) {
+               if (warn_forwards_compatible_inexact)
+                       warnx("-export-dynamic ignored"); 
+               return;
+       }
        if (!strcmp(swt + 1, "-export-dynamic")) {
                if (warn_forwards_compatible_inexact)
                        warnx("-export-dynamic ignored");



Home | Main Index | Thread Index | Old Index