The branch main has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=2166649fa1def0506f05a485919e277bf2a04a64

commit 2166649fa1def0506f05a485919e277bf2a04a64
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2023-02-06 18:20:45 +0000
Commit:     Mitchell Horne <[email protected]>
CommitDate: 2023-02-06 19:26:53 +0000

    libdtrace: drop remaining mips support
    
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D38300
---
 .../opensolaris/lib/libdtrace/common/dt_link.c     | 27 +---------------------
 .../opensolaris/lib/libdtrace/common/dt_printf.c   |  3 +--
 2 files changed, 2 insertions(+), 28 deletions(-)

diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c 
b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
index 927b4415409d..4e7935250620 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
@@ -215,10 +215,6 @@ prepare_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, 
dof_elf32_t *dep)
                            dofr[j].dofr_offset;
                        rel->r_info = ELF32_R_INFO(count + dep->de_global,
                            R_386_PC32);
-#elif defined(__mips__)
-/* XXX */
-                       printf("%s:%s(%d): MIPS not implemented\n",
-                           __FUNCTION__, __FILE__, __LINE__);
 #elif defined(__powerpc__)
                        /*
                         * Add 4 bytes to hit the low half of this 64-bit
@@ -401,8 +397,6 @@ prepare_elf64(dtrace_hdl_t *dtp, const dof_hdr_t *dof, 
dof_elf64_t *dep)
                            R_AARCH64_PREL64);
 #elif defined(__arm__)
 /* XXX */
-#elif defined(__mips__)
-/* XXX */
 #elif defined(__powerpc__)
                        rel->r_offset = s->dofs_offset +
                            dofr[j].dofr_offset;
@@ -504,8 +498,6 @@ dump_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd)
        elf_file.ehdr.e_type = ET_REL;
 #if defined(__arm__)
        elf_file.ehdr.e_machine = EM_ARM;
-#elif defined(__mips__)
-       elf_file.ehdr.e_machine = EM_MIPS;
 #elif defined(__powerpc__)
        elf_file.ehdr.e_machine = EM_PPC;
 #elif defined(__i386) || defined(__amd64)
@@ -644,8 +636,6 @@ dump_elf64(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd)
        elf_file.ehdr.e_type = ET_REL;
 #if defined(__arm__)
        elf_file.ehdr.e_machine = EM_ARM;
-#elif defined(__mips__)
-       elf_file.ehdr.e_machine = EM_MIPS;
 #elif defined(__powerpc64__)
 #if defined(_CALL_ELF) && _CALL_ELF == 2
        elf_file.ehdr.e_flags = 2;
@@ -843,17 +833,6 @@ dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, 
GElf_Rela *rela,
            __LINE__);
        return (-1);
 }
-#elif defined(__mips__)
-#define        DT_REL_NONE             R_MIPS_NONE
-
-static int
-dt_modtext(dtrace_hdl_t *dtp, char *p, int isenabled, GElf_Rela *rela,
-    uint32_t *off)
-{
-       printf("%s:%s(%d): MIPS not implemented\n", __FUNCTION__, __FILE__,
-           __LINE__);
-       return (-1);
-}
 #elif defined(__powerpc__)
 /* The sentinel is 'xor r3,r3,r3'. */
 #define DT_OP_XOR_R3   0x7c631a78
@@ -1167,9 +1146,7 @@ process_obj(dtrace_hdl_t *dtp, const char *obj, int 
*eprobesp)
 
        if (dtp->dt_oflags & DTRACE_O_LP64) {
                eclass = ELFCLASS64;
-#if defined(__mips__)
-               emachine1 = emachine2 = EM_MIPS;
-#elif defined(__powerpc__)
+#if defined(__powerpc__)
                emachine1 = emachine2 = EM_PPC64;
 #if !defined(_CALL_ELF) || _CALL_ELF == 1
                uses_funcdesc = 1;
@@ -1184,8 +1161,6 @@ process_obj(dtrace_hdl_t *dtp, const char *obj, int 
*eprobesp)
                eclass = ELFCLASS32;
 #if defined(__arm__)
                emachine1 = emachine2 = EM_ARM;
-#elif defined(__mips__)
-               emachine1 = emachine2 = EM_MIPS;
 #elif defined(__powerpc__)
                emachine1 = emachine2 = EM_PPC;
 #elif defined(__i386) || defined(__amd64)
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c 
b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
index 57a7db4ad0fd..c33ae955ba61 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
@@ -317,8 +317,7 @@ pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format,
        case sizeof (double):
                return (dt_printf(dtp, fp, format,
                    *((double *)addr) / n));
-#if !defined(__arm__) && !defined(__powerpc__) && \
-    !defined(__mips__) && !defined(__riscv)
+#if !defined(__arm__) && !defined(__powerpc__) && !defined(__riscv)
        case sizeof (long double):
                return (dt_printf(dtp, fp, format,
                    *((long double *)addr) / ldn));

Reply via email to