From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA640138350 for ; Sun, 2 Feb 2020 11:29:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDB03E0825; Sun, 2 Feb 2020 11:29:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BFBE5E0825 for ; Sun, 2 Feb 2020 11:29:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73E4834E4F5 for ; Sun, 2 Feb 2020 11:29:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 772C8AD for ; Sun, 2 Feb 2020 11:29:06 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1580642937.7a7ae297c5ad2ebaa8bd77398dcf5f3c8f48d5fa.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/files/, app-forensics/honggfuzz/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch app-forensics/honggfuzz/honggfuzz-2.0.ebuild X-VCS-Directories: app-forensics/honggfuzz/files/ app-forensics/honggfuzz/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 7a7ae297c5ad2ebaa8bd77398dcf5f3c8f48d5fa X-VCS-Branch: master Date: Sun, 2 Feb 2020 11:29:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f4f85672-01d6-440e-b98b-f02421226a20 X-Archives-Hash: a0c09f69601724b1d7c1ed0530331ffb commit: 7a7ae297c5ad2ebaa8bd77398dcf5f3c8f48d5fa Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Feb 2 11:28:11 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Feb 2 11:28:57 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a7ae297 app-forensics/honggfuzz: tweak for binutils-2.34, bug #707846 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/707846 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich gentoo.org> .../files/honggfuzz-2.0-binutils-2.34.patch | 22 ++++++++++++++++++++++ app-forensics/honggfuzz/honggfuzz-2.0.ebuild | 10 +++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch b/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch new file mode 100644 index 00000000000..45da65c1c6d --- /dev/null +++ b/app-forensics/honggfuzz/files/honggfuzz-2.0-binutils-2.34.patch @@ -0,0 +1,22 @@ +--- a/linux/bfd.c ++++ b/linux/bfd.c +@@ -122,8 +122,8 @@ void arch_bfdDemangle(funcs_t* funcs, size_t funcCnt) { + + static struct bfd_section* arch_getSectionForPc(bfd* bfdh, uint64_t pc) { + for (struct bfd_section* section = bfdh->sections; section; section = section->next) { +- uintptr_t vma = (uintptr_t)bfd_get_section_vma(bfdh, section); +- uintptr_t sz = (uintptr_t)bfd_get_section_size(section); ++ uintptr_t vma = (uintptr_t)bfd_section_vma(section); ++ uintptr_t sz = (uintptr_t)bfd_section_size(section); + if ((pc > vma) && (pc < (vma + sz))) { + return section; + } +@@ -160,7 +160,7 @@ void arch_bfdResolveSyms(pid_t pid, funcs_t* funcs, size_t num) { + continue; + } + +- long sec_offset = (long)funcs[i].pc - bfd_get_section_vma(bfdParams.bfdh, section); ++ long sec_offset = (long)funcs[i].pc - bfd_section_vma(section); + + if (bfd_find_nearest_line( + bfdParams.bfdh, section, bfdParams.syms, sec_offset, &file, &func, &line) == TRUE) { diff --git a/app-forensics/honggfuzz/honggfuzz-2.0.ebuild b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild index f486d019eb3..f58c1b9e7c8 100644 --- a/app-forensics/honggfuzz/honggfuzz-2.0.ebuild +++ b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -33,6 +33,14 @@ PATCHES=( "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch ) +src_prepare() { + default + + if has_version ">=sys-libs/binutils-libs-2.34"; then + eapply "${FILESDIR}"/${PN}-2.0-binutils-2.34.patch + fi +} + src_compile() { CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake }