svn commit: r278934 - in head: cddl/contrib/opensolaris/lib/libdtrace/common share/mk
Jan Beich
jbeich at FreeBSD.org
Mon Aug 10 18:01:31 UTC 2015
Mark Johnston <markj at FreeBSD.org> writes:
> Author: markj
> Date: Wed Feb 18 03:54:54 2015
> New Revision: 278934
> URL: https://svnweb.freebsd.org/changeset/base/278934
>
> Log:
> Remove drti.o's dependency on libelf. This makes it possible to add DTrace
> probes to userland programs and libraries without also needing to link
> libelf.
>
> dtrace -G places the __SUNW_dof symbol at the beginning of the DOF (DTrace
> probe and provider metdata) section in the generated object file; drti.o
> now just uses this symbol to locate the section. A complication occurs
> when multiple dtrace-generated object files are linked together, since the
> __SUNW_dof symbol defined in each file is global. This is handled by
> using objcopy(1) to convert __SUNW_dof to a local symbol once drti.o has
> been linked with the generated object file. Upstream, this is done using a
> linker feature not present in GNU ld.
>
> Differential Revision: https://reviews.freebsd.org/D1757
> Reviewed by: rpaulo
> MFC after: 1 month
> Relnotes: yes
Any reason this wasn't MFC'd yet? It would serve as incentive to *not*
add FreeBSD-specific conditionals for building dtrace probes in various
upstream projects.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20150810/c4c50d69/attachment.bin>
More information about the svn-src-all
mailing list