Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2018 05:39:48 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484387 - in head/devel/elfutils: . files
Message-ID:  <201811070539.wA75dmxh050424@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem (src committer)
Date: Wed Nov  7 05:39:48 2018
New Revision: 484387
URL: https://svnweb.freebsd.org/changeset/ports/484387

Log:
  Update devel/elfutils to 0.174
  
  PR:		232932
  Reported by:	gerald
  Approved by:	gerald
  Differential Revision:	https://reviews.freebsd.org/D17832

Added:
  head/devel/elfutils/files/patch-libelf_elf_update.c   (contents, props changed)
Modified:
  head/devel/elfutils/Makefile
  head/devel/elfutils/distinfo
  head/devel/elfutils/files/patch-tests_Makefile.am
  head/devel/elfutils/pkg-plist

Modified: head/devel/elfutils/Makefile
==============================================================================
--- head/devel/elfutils/Makefile	Wed Nov  7 04:46:27 2018	(r484386)
+++ head/devel/elfutils/Makefile	Wed Nov  7 05:39:48 2018	(r484387)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	elfutils
-PORTVERSION=	0.172
-PORTREVISION=	1
+PORTVERSION=	0.174
 CATEGORIES=	devel
 MASTER_SITES=	https://sourceware.org/elfutils/ftp/${PORTVERSION}/
 

Modified: head/devel/elfutils/distinfo
==============================================================================
--- head/devel/elfutils/distinfo	Wed Nov  7 04:46:27 2018	(r484386)
+++ head/devel/elfutils/distinfo	Wed Nov  7 05:39:48 2018	(r484387)
@@ -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

Added: head/devel/elfutils/files/patch-libelf_elf_update.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/elfutils/files/patch-libelf_elf_update.c	Wed Nov  7 05:39:48 2018	(r484387)
@@ -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;
+ 		}

Modified: head/devel/elfutils/files/patch-tests_Makefile.am
==============================================================================
--- head/devel/elfutils/files/patch-tests_Makefile.am	Wed Nov  7 04:46:27 2018	(r484386)
+++ head/devel/elfutils/files/patch-tests_Makefile.am	Wed Nov  7 05:39:48 2018	(r484387)
@@ -1,6 +1,6 @@
---- 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
@@ -9,7 +9,7 @@
  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)
@@ -30,8 +30,8 @@
  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)
@@ -85,10 +85,10 @@
  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)
@@ -101,7 +101,7 @@
  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)

Modified: head/devel/elfutils/pkg-plist
==============================================================================
--- head/devel/elfutils/pkg-plist	Wed Nov  7 04:46:27 2018	(r484386)
+++ head/devel/elfutils/pkg-plist	Wed Nov  7 05:39:48 2018	(r484387)
@@ -44,6 +44,8 @@ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811070539.wA75dmxh050424>