From owner-svn-src-head@FreeBSD.ORG Mon Oct 28 05:55:47 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D5905BEA; Mon, 28 Oct 2013 05:55:47 +0000 (UTC) (envelope-from rea@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B521723DA; Mon, 28 Oct 2013 05:55:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9S5tl1A026818; Mon, 28 Oct 2013 05:55:47 GMT (envelope-from rea@svn.freebsd.org) Received: (from rea@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9S5tlTs026817; Mon, 28 Oct 2013 05:55:47 GMT (envelope-from rea@svn.freebsd.org) Message-Id: <201310280555.r9S5tlTs026817@svn.freebsd.org> From: Eygene Ryabinkin Date: Mon, 28 Oct 2013 05:55:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257239 - head/gnu/usr.bin/binutils/ld X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 05:55:48 -0000 Author: rea (ports committer) Date: Mon Oct 28 05:55:47 2013 New Revision: 257239 URL: http://svnweb.freebsd.org/changeset/base/257239 Log: Correct ld(1) manual page for --no-add-needed set as default after r253839 Approved by: dim MFC after: 2 weeks Modified: head/gnu/usr.bin/binutils/ld/ld.1 Modified: head/gnu/usr.bin/binutils/ld/ld.1 ============================================================================== --- head/gnu/usr.bin/binutils/ld/ld.1 Mon Oct 28 04:41:49 2013 (r257238) +++ head/gnu/usr.bin/binutils/ld/ld.1 Mon Oct 28 05:55:47 2013 (r257239) @@ -929,20 +929,6 @@ the default behaviour of the linker, bef behaviour from release 2.14 onwards is to reject such input files, and so the \fB\-\-accept\-unknown\-input\-arch\fR option has been added to restore the old behaviour. -.IP "\fB\-\-as\-needed\fR" 4 -.IX Item "--as-needed" -.PD 0 -.IP "\fB\-\-no\-as\-needed\fR" 4 -.IX Item "--no-as-needed" -.PD -This option affects \s-1ELF\s0 \s-1DT_NEEDED\s0 tags for dynamic libraries mentioned -on the command line after the \fB\-\-as\-needed\fR option. Normally, -the linker will add a \s-1DT_NEEDED\s0 tag for each dynamic library mentioned -on the command line, regardless of whether the library is actually -needed. \fB\-\-as\-needed\fR causes \s-1DT_NEEDED\s0 tags to only be emitted -for libraries that satisfy some symbol reference from regular objects -which is undefined at the point that the library was linked. -\&\fB\-\-no\-as\-needed\fR restores the default behaviour. .IP "\fB\-\-add\-needed\fR" 4 .IX Item "--add-needed" .PD 0 @@ -951,11 +937,25 @@ which is undefined at the point that the .PD This option affects the treatment of dynamic libraries from \s-1ELF\s0 \&\s-1DT_NEEDED\s0 tags in dynamic libraries mentioned on the command line after -the \fB\-\-no\-add\-needed\fR option. Normally, the linker will add -a \s-1DT_NEEDED\s0 tag for each dynamic library from \s-1DT_NEEDED\s0 tags. -\&\fB\-\-no\-add\-needed\fR causes \s-1DT_NEEDED\s0 tags will never be emitted -for those libraries from \s-1DT_NEEDED\s0 tags. \fB\-\-add\-needed\fR restores -the default behaviour. +the \fB\-\-add\-needed\fR option. Normally, the linker will not copy +a \s-1DT_NEEDED\s0 tags from each dynamic library to the produced output object. +\&\fB\-\-add\-needed\fR makes linker to copy \s-1DT_NEEDED\s0 tags from all +dynamic libraries mentioned after this flag. +\fB\-\-no\-add\-needed\fR restores the default behaviour. +.IP "\fB\-\-as\-needed\fR" 4 +.IX Item "--as-needed" +.PD 0 +.IP "\fB\-\-no\-as\-needed\fR" 4 +.IX Item "--no-as-needed" +.PD +This option affects \s-1ELF\s0 \s-1DT_NEEDED\s0 tags for dynamic +libraries mentioned on the command line after the \fB\-\-as\-needed\fR +option when \fB\-\-add\-needed\fR is in effect. +In such a case \fB\-\-as\-needed\fR causes \s-1DT_NEEDED\s0 tags +to only be emitted for libraries that satisfy some symbol reference +from regular objects which is undefined at the point that the library +was linked. +\&\fB\-\-no\-as\-needed\fR restores the default behaviour. .IP "\fB\-assert\fR \fIkeyword\fR" 4 .IX Item "-assert keyword" This option is ignored for SunOS compatibility.