Bug 226027

Summary: DTrace User-Defined Static Tracing is broken on armv6, armv7 and aarch64
Product: Base System Reporter: Mark Linimon <linimon>
Component: armAssignee: freebsd-arm mailing list <freebsd-arm>
Status: New ---    
Severity: Affects Many People CC: dtrace, mikael.urankar
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224271
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211389

Description Mark Linimon freebsd_committer freebsd_triage 2018-02-19 02:16:13 UTC
(This is a src tree equivalent to ports PR 224271, to migrate its content.  The ports tree is going to work around this for now.)

In 224271 2017-12-12 12:02 UTC by mikael.urankar@gmail.com wrote:

"On aarch64 ld(1) fails to link probes: Relocations in generic ELF (EM: 0)"

"On armv6/7 we have this error: dt_modtext:/usr/src/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(820): arm not implemented"

This is still heavily affecting armv7 package builds as of 20180219.  I'm taking it on myself to implement workarounds in the ports tree.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-02-19 02:17:00 UTC
This also affects 11-STABLE and 11.1R.
Comment 2 Jan Beich freebsd_committer 2018-02-19 07:45:10 UTC
aarch64 issue is the same as armv6. It's just base r325042 changed the error message.
Comment 3 Jan Beich freebsd_committer 2018-02-19 07:48:08 UTC
Also, aarch64 uses lld since 11.1, so ld reports errors slightly different.