diff options
author | emaste <emaste@FreeBSD.org> | 2017-11-28 00:56:20 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-11-28 00:56:20 +0000 |
commit | ebc6f410df977389d7732e08da8c0f1457da130e (patch) | |
tree | f520182ed32b8f753a1cf9b67009951aad574b59 /cddl/contrib | |
parent | cbf712b3a69d887467391715ae1079a47dbf6f39 (diff) | |
download | FreeBSD-src-ebc6f410df977389d7732e08da8c0f1457da130e.zip FreeBSD-src-ebc6f410df977389d7732e08da8c0f1457da130e.tar.gz |
MFC r326046: dt_modtext: return error on archs lacking an implementation
Reported by: mmel
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c index c8c543d..1da91f0 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c @@ -844,7 +844,7 @@ dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, GElf_Rela *rela, { printf("%s:%s(%d): aarch64 not implemented\n", __FUNCTION__, __FILE__, __LINE__); - return (0); + return (-1); } #elif defined(__arm__) /* XXX */ @@ -854,7 +854,7 @@ dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, GElf_Rela *rela, { printf("%s:%s(%d): arm not implemented\n", __FUNCTION__, __FILE__, __LINE__); - return (0); + return (-1); } #elif defined(__mips__) /* XXX */ @@ -864,7 +864,7 @@ dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, GElf_Rela *rela, { printf("%s:%s(%d): MIPS not implemented\n", __FUNCTION__, __FILE__, __LINE__); - return (0); + return (-1); } #elif defined(__powerpc__) /* The sentinel is 'xor r3,r3,r3'. */ @@ -955,7 +955,7 @@ dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, GElf_Rela *rela, { printf("%s:%s(%d): RISC-V implementation required\n", __FUNCTION__, __FILE__, __LINE__); - return (0); + return (-1); } #elif defined(__sparc) |