Return-Path: Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mail.openembedded.org (Postfix) with ESMTP id 6BC357E44E for ; Tue, 24 Sep 2019 12:09:03 +0000 (UTC) Received: by mail-wr1-f48.google.com with SMTP id q17so1648440wrx.10 for ; Tue, 24 Sep 2019 05:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=RB5Chx2jmnDjRM+wyaBbyvyLf/HcvLxTGVOdOHyTEdI=; b=HABs6EnrHb6FkPXq6Td5MKXntpvFsjBP30yWEg5sYJdv/KXGryJERI93D/CjYKsz3+ P4AvkFfZJUSSfQwRy6H+8W/7mlYkiiDK6MkZZXo+QhLh9f+cbxU4U8jjievjpbX6lAB6 Wg9qfdgUcy9HpDj7vYpRhvW6zw/eczKDDk432OVBKvEef6owadc69vGGe1DBwuIefHa8 TECq8ez7GYGIFSLT7Y8H1d6wVoBf29iwP5TegdlErWNxjpJaY+RJY/kdprv0ijtIpsj2 DgRzyqOKhRhEvydRHmYDbfpl5B3hlJiXdBXHYFgo2MZuLmjUoVKe9zpAbkwANi8TfqIF aYPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RB5Chx2jmnDjRM+wyaBbyvyLf/HcvLxTGVOdOHyTEdI=; b=tLKt/IxBLjwFuX08xhhDCKh7xfdRx8Dd1C1bmEgSpaOuWPZ+2zw20tFOZ+v7TNQEsv zpfVXBCRzoUA//WFj+tqXTMf3iczz5PDELxIL67kPAGLSOreKDF3dHevGo9gMCpg9OqT iM9lLDdWBpgLvF3hB4Oq4gIuhfaCdxJ4o/7V9XVl6N/5+m0wW54fTI5pT9HD/I4B8F+x CEEjfB/2Odk+ApDrotc7DHmo6e263KbVG4rIYJ5Lgdt/kl7Dtpx9L9XZlx7faY5KJk9Y IK2d4YAab8tGaffNx4TnbF8LTfIkOviwMFOXPR9ae9V0lbXKDLZ/LSU1aWAvjmDPFKrD b6pQ== X-Gm-Message-State: APjAAAXHhY9SvVeavGNzxOURv9v+wibA2lqEU+N9Yaz80OZI0NJd7b3W //omCPnTayJrR6S+57FF9omV8WZS X-Google-Smtp-Source: APXvYqznXptCR3aBrVU/YWbLwlC3vMtlMxpHhyKBr9TC5WoCvyxdX6M4Cc+euf6rPF4tJO4K1UQFZQ== X-Received: by 2002:a5d:6844:: with SMTP id o4mr2101321wrw.188.1569326943843; Tue, 24 Sep 2019 05:09:03 -0700 (PDT) Received: from localhost.localdomain (p509737a3.dip0.t-ipconnect.de. [80.151.55.163]) by smtp.gmail.com with ESMTPSA id q66sm3110466wme.39.2019.09.24.05.09.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 05:09:02 -0700 (PDT) From: =?UTF-8?q?Andreas=20M=C3=BCller?= To: openembedded-core@lists.openembedded.org Date: Tue, 24 Sep 2019 14:08:45 +0200 Message-Id: <20190924120848.25479-2-schnitzeltony@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190924120848.25479-1-schnitzeltony@gmail.com> References: <20190924120848.25479-1-schnitzeltony@gmail.com> MIME-Version: 1.0 Subject: [sumo][PATCH v2 1/4] elfutils(-native): Add backported patch to fix build with host gcc9 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 12:09:03 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../elfutils/elfutils_0.170.bb | 1 + ...-fsize-and-msize-with-const-attribut.patch | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/files/0009-libelf-Mark-both-fsize-and-msize-with-const-attribut.patch diff --git a/meta/recipes-devtools/elfutils/elfutils_0.170.bb b/meta/recipes-devtools/elfutils/elfutils_0.170.bb index 14ac22ee643..48f14286203 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.170.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.170.bb @@ -25,6 +25,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ file://debian/0003-Add-mips-n64-relocation-format-hack.patch \ file://0001-Use-fallthrough-attribute.patch \ file://0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch \ + file://0009-libelf-Mark-both-fsize-and-msize-with-const-attribut.patch \ " SRC_URI_append_libc-musl = " file://0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch" SRC_URI[md5sum] = "03599aee98c9b726c7a732a2dd0245d5" diff --git a/meta/recipes-devtools/elfutils/files/0009-libelf-Mark-both-fsize-and-msize-with-const-attribut.patch b/meta/recipes-devtools/elfutils/files/0009-libelf-Mark-both-fsize-and-msize-with-const-attribut.patch new file mode 100644 index 00000000000..b5f8fd417aa --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/0009-libelf-Mark-both-fsize-and-msize-with-const-attribut.patch @@ -0,0 +1,42 @@ +From a01938d584b91e747167bb4b3f30ec300c4d6e43 Mon Sep 17 00:00:00 2001 +From: Mark Wielaard +Date: Fri, 16 Nov 2018 09:27:00 +0100 +Subject: [PATCH] libelf: Mark both fsize and msize with const attribute. + +GCC9 -Wmissing-attributes pointed out that although we alias the fsize +and msize functions only fsize was marked as const. Fix by also marking +the msize definition as const. + +https://sourceware.org/bugzilla/show_bug.cgi?id=23884 + +Signed-off-by: Mark Wielaard + +Upstream-Status: Backport [1] + +[1] https://sourceware.org/git/?p=elfutils.git;a=commit;h=a01938d584b91e747167bb4b3f30ec300c4d6e43 + +Signed-off-by: Andreas Müller +--- + libelf/ChangeLog | 5 +++++ + libelf/libelfP.h | 4 ++-- + 2 files changed, 7 insertions(+), 2 deletions(-) + +diff --git a/libelf/libelfP.h b/libelf/libelfP.h +index fa6d55d8..9f3e8e9d 100644 +--- a/libelf/libelfP.h ++++ b/libelf/libelfP.h +@@ -461,9 +461,9 @@ extern Elf_Type __libelf_data_type (Elf *elf, int sh_type, GElf_Xword align) + These functions cannot be marked internal since they are aliases + of the export elfXX_fsize functions.*/ + extern size_t __elf32_msize (Elf_Type __type, size_t __count, +- unsigned int __version); ++ unsigned int __version) __const_attribute__; + extern size_t __elf64_msize (Elf_Type __type, size_t __count, +- unsigned int __version); ++ unsigned int __version) __const_attribute__; + + + /* Create Elf descriptor from memory image. */ +-- +2.21.0 + -- 2.21.0