Index: head/devel/elfutils/Makefile =================================================================== --- head/devel/elfutils/Makefile (revision 484386) +++ head/devel/elfutils/Makefile (revision 484387) @@ -1,56 +1,55 @@ # Created by: Conrad Meyer # $FreeBSD$ PORTNAME= elfutils -PORTVERSION= 0.172 -PORTREVISION= 1 +PORTVERSION= 0.174 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_sparc64= sparc patch does not apply cleanly to 0.172 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_USES_OFF= gettext # used anyway NLS_CONFIGURE_ENABLE= nls USES= autoreconf gmake libtool tar:bzip2 USE_GCC= 7 GNU_CONFIGURE= yes USE_LDCONFIG= yes CFLAGS+= -Wno-null-dereference -Wno-unused-value # 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/distinfo =================================================================== --- head/devel/elfutils/distinfo (revision 484386) +++ head/devel/elfutils/distinfo (revision 484387) @@ -1,3 +1,3 @@ -TIMESTAMP = 1528748700 -SHA256 (elfutils-0.172.tar.bz2) = 779c99e6344c4982bbab60b8d276cec3d468151c758905f9a44ba6b6edaa0e24 -SIZE (elfutils-0.172.tar.bz2) = 8601066 +TIMESTAMP = 1536943739 +SHA256 (elfutils-0.174.tar.bz2) = cdf27e70076e10a29539d89e367101d516bc4aa11b0d7777fe52139e3fcad08a +SIZE (elfutils-0.174.tar.bz2) = 8700793 Index: head/devel/elfutils/files/patch-libelf_elf_update.c =================================================================== --- head/devel/elfutils/files/patch-libelf_elf_update.c (nonexistent) +++ head/devel/elfutils/files/patch-libelf_elf_update.c (revision 484387) @@ -0,0 +1,18 @@ +--- libelf/elf_update.c.orig 2018-09-14 03:23:36.000000000 -0700 ++++ libelf/elf_update.c +@@ -106,9 +106,13 @@ + if (elf->cmd == ELF_C_RDWR_MMAP + && (size_t) size > elf->maximum_size) + { +- if (mremap (elf->map_address, elf->maximum_size, +- size, 0) == MAP_FAILED) ++ if (munmap (elf->map_address, elf->maximum_size) != 0 || ++ mmap (elf->map_address, size, PROT_READ | PROT_WRITE, ++ MAP_SHARED | MAP_FIXED | MAP_EXCL, elf->fildes, ++ 0) == MAP_FAILED) + { ++ elf->map_address = NULL; ++ elf->flags &= ~ELF_F_MMAPPED; + __libelf_seterrno (ELF_E_WRITE_ERROR); + return -1; + } Property changes on: head/devel/elfutils/files/patch-libelf_elf_update.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 Index: head/devel/elfutils/files/patch-tests_Makefile.am =================================================================== --- head/devel/elfutils/files/patch-tests_Makefile.am (revision 484386) +++ head/devel/elfutils/files/patch-tests_Makefile.am (revision 484387) @@ -1,132 +1,132 @@ ---- tests/Makefile.am.orig 2018-06-01 07:42:27.000000000 -0700 +--- tests/Makefile.am.orig 2018-09-14 04:12:13.000000000 -0700 +++ tests/Makefile.am -@@ -432,7 +432,7 @@ +@@ -457,7 +457,7 @@ libebl = -lebl else !STANDALONE if BUILD_STATIC -libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl +libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) libelf = ../libelf/libelf.a -lz libasm = ../libasm/libasm.a else -@@ -447,16 +447,16 @@ +@@ -472,16 +472,16 @@ arextract_LDADD = $(libelf) arsymtest_LDADD = $(libelf) newfile_LDADD = $(libelf) -saridx_LDADD = $(libelf) +saridx_LDADD = $(libeu) $(libelf) scnnames_LDADD = $(libelf) -sectiondump_LDADD = $(libelf) +sectiondump_LDADD = $(libeu) $(libelf) showptable_LDADD = $(libelf) hash_LDADD = $(libelf) test_nlist_LDADD = $(libelf) msg_tst_LDADD = $(libelf) newscn_LDADD = $(libelf) -early_offscn_LDADD = $(libelf) -ecp_LDADD = $(libelf) +early_offscn_LDADD = $(libeu) $(libelf) +ecp_LDADD = $(libeu) $(libelf) update1_LDADD = $(libelf) update2_LDADD = $(libelf) update3_LDADD = $(libdw) $(libelf) -@@ -468,34 +468,34 @@ - get_files_LDADD = $(libdw) $(libelf) +@@ -495,34 +495,34 @@ + next_files_LDADD = $(libdw) $(libelf) get_aranges_LDADD = $(libdw) $(libelf) allfcts_LDADD = $(libdw) $(libelf) -line2addr_LDADD = $(libdw) $(argp_LDADD) -addrscopes_LDADD = $(libdw) $(argp_LDADD) -funcscopes_LDADD = $(libdw) $(argp_LDADD) -funcretval_LDADD = $(libdw) $(argp_LDADD) -allregs_LDADD = $(libdw) $(argp_LDADD) -find_prologues_LDADD = $(libdw) $(argp_LDADD) +line2addr_LDADD = $(libeu) $(libdw) $(argp_LDADD) +addrscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcscopes_LDADD = $(libeu) $(libdw) $(argp_LDADD) +funcretval_LDADD = $(libeu) $(libdw) $(argp_LDADD) +allregs_LDADD = $(libeu) $(libdw) $(argp_LDADD) +find_prologues_LDADD = $(libeu) $(libdw) $(argp_LDADD) #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) -asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) -ldl -dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl -rdwrmmap_LDADD = $(libelf) -dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl +asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw) +dwflmodtest_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD) +rdwrmmap_LDADD = $(libeu) $(libelf) +dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) arls_LDADD = $(libelf) -dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl -dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl -dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl -dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl +dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) +dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) +dwfl_bug_getmodules_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) +dwfl_addr_sect_LDADD = $(libeu) $(libdw) $(libebl) $(libelf) $(argp_LDADD) dwarf_getmacros_LDADD = $(libdw) dwarf_ranges_LDADD = $(libdw) dwarf_getstring_LDADD = $(libdw) -addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl +addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) + dwarfcfi_LDADD = $(libdw) $(libelf) test_flag_nobits_LDADD = $(libelf) rerequest_tag_LDADD = $(libdw) - alldts_LDADD = $(libdw) $(libelf) -@@ -504,9 +504,9 @@ +@@ -532,9 +532,9 @@ low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD) test_elf_cntl_gelf_getshdr_LDADD = $(libelf) dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD) -dwfl_report_elf_align_LDADD = $(libdw) -varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD) +dwfllines_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) +dwfl_report_elf_align_LDADD = $(libeu) $(libdw) +varlocs_LDADD = $(libeu) $(libdw) $(libelf) $(argp_LDADD) backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD) # backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables: backtrace_child_CFLAGS = $(fpie_CFLAGS) -@@ -515,23 +515,23 @@ +@@ -543,23 +543,23 @@ backtrace_data_LDADD = $(libdw) $(libelf) backtrace_dwarf_CFLAGS = -Wno-unused-parameter backtrace_dwarf_LDADD = $(libdw) $(libelf) -debuglink_LDADD = $(libdw) $(libelf) -debugaltlink_LDADD = $(libdw) $(libelf) -buildid_LDADD = $(libdw) $(libelf) +debuglink_LDADD = $(libeu) $(libdw) $(libelf) +debugaltlink_LDADD = $(libeu) $(libdw) $(libelf) +buildid_LDADD = $(libeu) $(libdw) $(libelf) deleted_LDADD = ./deleted-lib.so deleted_lib_so_LDFLAGS = -shared deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD) peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD) vdsosyms_LDADD = $(libdw) $(libelf) -getsrc_die_LDADD = $(libdw) $(libelf) +getsrc_die_LDADD = $(libeu) $(libdw) $(libelf) strptr_LDADD = $(libelf) newdata_LDADD = $(libelf) elfstrtab_LDADD = $(libelf) dwfl_proc_attach_LDADD = $(libdw) dwfl_proc_attach_LDFLAGS = -pthread $(AM_LDFLAGS) elfshphehdr_LDADD =$(libelf) -elfstrmerge_LDADD = $(libdw) $(libelf) +elfstrmerge_LDADD = $(libeu) $(libdw) $(libelf) dwelfgnucompressed_LDADD = $(libelf) $(libdw) elfgetchdr_LDADD = $(libelf) $(libdw) elfgetzdata_LDADD = $(libelf) Index: head/devel/elfutils/pkg-plist =================================================================== --- head/devel/elfutils/pkg-plist (revision 484386) +++ head/devel/elfutils/pkg-plist (revision 484387) @@ -1,78 +1,80 @@ bin/eu-addr2line bin/eu-ar bin/eu-elfcmp bin/eu-elfcompress bin/eu-elflint bin/eu-findtextrel bin/eu-make-debug-archive bin/eu-nm bin/eu-objdump bin/eu-ranlib bin/eu-readelf bin/eu-size bin/eu-stack bin/eu-strings bin/eu-strip bin/eu-unstrip include/dwarf.h include/elfutils/elf-knowledge.h include/elfutils/known-dwarf.h include/elfutils/libasm.h include/elfutils/libdw.h include/elfutils/libdwelf.h include/elfutils/libdwfl.h include/elfutils/libebl.h include/elfutils/version.h include/gelf.h include/libelf.h include/nlist.h lib/elfutils/libebl_aarch64-%%VERSION%%.so lib/elfutils/libebl_aarch64.so lib/elfutils/libebl_alpha-%%VERSION%%.so lib/elfutils/libebl_alpha.so lib/elfutils/libebl_arm-%%VERSION%%.so lib/elfutils/libebl_arm.so lib/elfutils/libebl_bpf-%%VERSION%%.so lib/elfutils/libebl_bpf.so lib/elfutils/libebl_i386-%%VERSION%%.so lib/elfutils/libebl_i386.so lib/elfutils/libebl_ia64-%%VERSION%%.so lib/elfutils/libebl_ia64.so lib/elfutils/libebl_m68k-%%VERSION%%.so lib/elfutils/libebl_m68k.so lib/elfutils/libebl_ppc-%%VERSION%%.so lib/elfutils/libebl_ppc.so lib/elfutils/libebl_ppc64-%%VERSION%%.so lib/elfutils/libebl_ppc64.so +lib/elfutils/libebl_riscv-%%VERSION%%.so +lib/elfutils/libebl_riscv.so lib/elfutils/libebl_s390-%%VERSION%%.so lib/elfutils/libebl_s390.so lib/elfutils/libebl_sh-%%VERSION%%.so lib/elfutils/libebl_sh.so lib/elfutils/libebl_sparc-%%VERSION%%.so lib/elfutils/libebl_sparc.so lib/elfutils/libebl_tilegx-%%VERSION%%.so lib/elfutils/libebl_tilegx.so lib/elfutils/libebl_x86_64-%%VERSION%%.so lib/elfutils/libebl_x86_64.so lib/libasm-%%VERSION%%.so lib/libasm.a lib/libasm.so lib/libasm.so.1 lib/libdw-%%VERSION%%.so lib/libdw.a lib/libdw.so lib/libdw.so.1 lib/libebl.a lib/libelf-%%VERSION%%.so lib/libelf.a lib/libelf.so lib/libelf.so.1 libdata/pkgconfig/libdw.pc libdata/pkgconfig/libelf.pc %%NLS%%share/locale/de/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/en@boldquot/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/en@quot/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/es/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/ja/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/pl/LC_MESSAGES/elfutils.mo %%NLS%%share/locale/uk/LC_MESSAGES/elfutils.mo