Update devel/elfutils to 0.174
PR: 232932 Reported by: gerald Approved by: gerald Differential Revision: https://reviews.freebsd.org/D17832
This commit is contained in:
parent
21a414ebe8
commit
662466ff63
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484387
5 changed files with 32 additions and 13 deletions
|
@ -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}/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
18
devel/elfutils/files/patch-libelf_elf_update.c
Normal file
18
devel/elfutils/files/patch-libelf_elf_update.c
Normal file
|
@ -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;
|
||||
}
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue