Project

General

Profile

Actions

Bug #4795

closed

/usr/bin/ld manpage and help should indicate '-soname' not '--soname'

Added by Richard PALO over 8 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-04-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

$/usr/bin/ld -z help
...
    [-h name], [--soname name]
            use 'name' as internal shared object identifier
...
$ man /usr/bin/ld
...
     -h name
     --soname name

         In dynamic mode only, when  building  a  shared  object,
         records  name  in  the object's dynamic section. name is
         recorded in any dynamic objects  that  are  linked  with
         this  object  rather than the object's file system name.
         Accordingly, name is used by the runtime linker  as  the
         name  of the shared object to search for at runtime. See
         Recording a Shared Object Name in Linker  and  Libraries
         Guide.

sun ld has never supported '--soname', only '-soname' as do gnu ld and gold. These strings should be fixed.

(webrev coming)

Actions #2

Updated by Electric Monk 8 months ago

  • Gerrit CR set to 1987
Actions #3

Updated by Andy Fiddaman 8 months ago

I tested this by reviewing the updated man page and invoking ld to generate help text and the incompatible option error message.

Actions #4

Updated by Electric Monk 8 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 3b5bbfc55d79c42ba1d3c6de2178627cbfcccff8

commit  3b5bbfc55d79c42ba1d3c6de2178627cbfcccff8
Author: Richard PALO <richard@NetBSD.org>
Date:   2022-01-31T23:46:46.000Z

    4795 /usr/bin/ld manpage and help should indicate '-soname' not '--soname'
    Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org>
    Reviewed by: Yuri Pankov <ypankov@tintri.com>
    Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF