Index: head/devel/elfutils/Makefile =================================================================== --- head/devel/elfutils/Makefile (revision 459105) +++ head/devel/elfutils/Makefile (revision 459106) @@ -1,55 +1,54 @@ # Created by: Conrad Meyer # $FreeBSD$ PORTNAME= elfutils PORTVERSION= 0.170 CATEGORIES= devel MASTER_SITES= https://sourceware.org/elfutils/ftp/${PORTVERSION}/ MAINTAINER= cem@FreeBSD.org COMMENT= Library for manipulating ELF files and partial implementation of binutils LICENSE= LGPL3 GPLv2 GPLv3 LICENSE_COMB= multi LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING-GPLV2 LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING-LGPLV3 BROKEN_aarch64= fails to build: fatal error: linux/uio.h: No such file or directory BROKEN_armv6= fails to build: fails to compile i386_disasm.c BROKEN_armv7= fails to build: fails to compile i386_disasm.c BROKEN_powerpc64= fails to build: error: field 'r' has incomplete type -BROKEN_sparc64= fails to build: fails to compile dwarf_begin_elf.c LIB_DEPENDS= libargp.so:devel/argp-standalone PATCH_DEPENDS= ${NONEXISTENT}:devel/gnulib:extract PLIST_SUB= VERSION=${PORTVERSION} OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls USES= autoreconf gmake libtool tar:bzip2 USE_GCC= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes CFLAGS+= -Wno-null-dereference # Give i386 a prayer of building, and we can fix the warnings later: CFLAGS_i386+= -Wno-error # Avoid conflict with binutils / elftoolchain programs with the same names: CONFIGURE_ARGS+= --program-prefix=eu- post-patch: @${LN} -s `${MAKE} -C ${PORTSDIR}/devel/gnulib -V WRKSRC` ${WRKDIR}/gnulib @${CP} -a \ ${WRKDIR}/gnulib/lib/obstack.c \ ${WRKDIR}/gnulib/lib/obstack.h \ ${WRKDIR}/gnulib/lib/obstack_printf.c \ ${WRKSRC}/lib .include Index: head/devel/elfutils/files/patch-backends_sparc__initreg.c =================================================================== --- head/devel/elfutils/files/patch-backends_sparc__initreg.c (nonexistent) +++ head/devel/elfutils/files/patch-backends_sparc__initreg.c (revision 459106) @@ -0,0 +1,80 @@ +--- backends/sparc_initreg.c.orig 2017-06-19 14:45:16 UTC ++++ backends/sparc_initreg.c +@@ -33,7 +33,7 @@ + #include "system.h" + #include + #ifdef __sparc__ +-# include ++# include + # include + #endif + +@@ -50,29 +50,29 @@ EBLHOOK (set_initial_registers_tid) (pid + #else /* __sparc__ */ + + +- /* The pt_regs structure filled in by PTRACE_GETREGS provides the ++ /* The pt_regs structure filled in by PT_GETREGS provides the + PC, the global registers and the output registers. Note how the + %g0 register is not explicitly provided in the structure (it's + value is always 0) and the resulting weird packing in the u_regs + array: the last element is not used. */ + +- struct pt_regs regs; +- if (ptrace (PTRACE_GETREGS, tid, ®s, 0) == -1) ++ struct reg regs; ++ if (ptrace (PT_GETREGS, tid, (caddr_t)®s, 0) == -1) + return false; + + /* PC: no DWARF number */ +- if (!setfunc (-1, 1, (Dwarf_Word *) ®s.tpc, arg)) ++ if (!setfunc (-1, 1, (Dwarf_Word *) ®s.r_tpc, arg)) + return false; + + /* Global registers: DWARF 0 .. 7 */ + Dwarf_Word zero = 0; + if (!setfunc (0, 1, &zero, arg)) + return false; +- if (!setfunc (1, 7, (Dwarf_Word *) ®s.u_regs[0], arg)) ++ if (!setfunc (1, 7, (Dwarf_Word *) ®s.r_global[0], arg)) + return false; + + /* Output registers: DWARF 8 .. 15 */ +- if (!setfunc (8, 8, (Dwarf_Word *) ®s.u_regs[7], arg)) ++ if (!setfunc (8, 8, (Dwarf_Word *) ®s.r_out[0], arg)) + return false; + + /* Local and input registers must be read from the stack. They are +@@ -80,7 +80,7 @@ EBLHOOK (set_initial_registers_tid) (pid + read above. */ + + Dwarf_Word locals_outs[16]; +- Dwarf_Word sp = regs.u_regs[13]; ++ Dwarf_Word sp = regs.r_out[5]; + + if (sp & 1) + { +@@ -91,9 +91,9 @@ EBLHOOK (set_initial_registers_tid) (pid + + for (unsigned i = 0; i < 16; i++) + { +- locals_outs[i] = ptrace (PTRACE_PEEKDATA, tid, ++ locals_outs[i] = ptrace (PT_READ_D, tid, + (void *) (uintptr_t) (sp + (i * 8)), +- NULL); ++ 0); + if (errno != 0) + return false; + } +@@ -104,9 +104,9 @@ EBLHOOK (set_initial_registers_tid) (pid + + for (unsigned i = 0; i < 8; i++) + { +- Dwarf_Word tuple = ptrace (PTRACE_PEEKDATA, tid, ++ Dwarf_Word tuple = ptrace (PT_READ_D, tid, + (void *) (uintptr_t) (sp + (i * 8)), +- NULL); ++ 0); + if (errno != 0) + return false; + Property changes on: head/devel/elfutils/files/patch-backends_sparc__initreg.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property