Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2020 02:18:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 245024] elftoolchain objcopy is missing --add-symbol
Message-ID:  <bug-245024-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245024

            Bug ID: 245024
           Summary: elftoolchain objcopy is missing --add-symbol
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: markj@FreeBSD.org

The objcopy from GNU binutils implements --add-symbol:

=3D=3D
--add-symbol name=3D[section:]value[,flags]

    Add a new symbol named name while copying the file. This option may be
specified multiple times. If the section is given, the symbol will be
associated with and relative to that section, otherwise it will be an ABS
symbol. Specifying an undefined section will result in a fatal error. There=
 is
no check for the value, it will be taken as specified. Symbol flags can be
specified and not all flags will be meaningful for all object file formats.=
 By
default, the symbol will be global. The special flag =E2=80=99before=3Dothe=
rsym=E2=80=99 will
insert the new symbol in front of the specified othersym, otherwise the
symbol(s) will be added at the end of the symbol table in the order they
appear.
=3D=3D

elftoolchain objcopy does not.  I noticed because it would have been useful=
 for
a project I'm working on; I haven't seen a case where the lack of compatibi=
lity
is a problem.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245024-227>