aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-11-21 03:15:32 +0000
committerEd Maste <emaste@FreeBSD.org>2017-11-21 03:15:32 +0000
commit4e4805ddf1e4b04882a8a2f041a3030af7909dbc (patch)
treeb958ec6e4d9431daa3953e22117db86d3be7891c /cddl/contrib/opensolaris/lib/libdtrace
parent1ccb14588b21fe492261cef994a61a4ce0d97dc3 (diff)
downloadsrc-4e4805ddf1e4b04882a8a2f041a3030af7909dbc.tar.gz
src-4e4805ddf1e4b04882a8a2f041a3030af7909dbc.zip
dt_modtext: return error on archs lacking an implementation
Reported by: mmel Reviewed by: markj MFC after: 1 week MFC with: r325042 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D13176
Notes
Notes: svn path=/head/; revision=326046
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c8
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 0184ec23a3ed..cbd457f0c0b7 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
@@ -808,7 +808,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 */
@@ -818,7 +818,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 */
@@ -828,7 +828,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'. */
@@ -919,7 +919,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)