From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 388D21B1B0 for ; Wed, 24 Jan 2018 16:36:33 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E38AC22373; Wed, 24 Jan 2018 10:36:32 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:36:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GaDq4/esXxrJ9cpsN ZhuuRAU7cSD+DubcTOmHOBiMBQ=; b=GaiPDT82LdA+xmkyvxDD6QFEZcHGovcJ3 +BOF3/HQPNDeVDvorltK9rXSVsmB2qPVf4Tej+LSUvdLN3KQPQ1BajG5tyPPoS3D J8gXIpVJ6wKIK3CEBYXqrlEDiJbQbLzJHAaaZJOJKARQ/WM3d1AiJv74yTrbEa5s GKiHtY8cBdL7L5lJ+79DVKI0XBkGDclkzIzVJfjvhmnAWLlwc6VOumLPf2IM3sG+ frFVg2kEvulnLnONuphisqi0FVfieNTYtBIgUTjBU2Hhu+wO7sFsBJJK2cMuBA65 eRpdOIjM+uiCQnjrKqs5JUimEcila+5PDUpOK8wk3ovqZIBDDy9iw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=GaDq4/esXxrJ9cpsNZhuuRAU7cSD+DubcTOmHOBiMBQ=; b=ISTC9aut H71S3vGw3+RAv49At63l2NKtbj9shIAL+hNSUxog6wlvlOyF9oruPkX3ewcSQo6c sWWWSML+E1y3FwExBSq5aeOfTpWwUXtCXInyCx5klQ+eE2KCb22wRtSRnc2tvDwR 8A+mg0BQ5CcfqCqacms5XNr6ffZtTgqw6sfRz0+Qt7v8N+CnXChiuxkJhBRmerFE ifdbUZb60hgCxtRXP4B1nMG6OWYaY76W8K0L4tOhLPdPi9M/Ho0ct6Evvrag9Qsu LUHHDFd8DeOQY4Q8WWcsAj8CUHZGQWy1/5+/o8DdttjmFTk05Y74qTaeMmDae8DE ABaIjeReD2OjJg== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 14C147E3D6; Wed, 24 Jan 2018 10:36:29 -0500 (EST) From: Yuanhan Liu To: Hemant Agrawal Cc: Jun Yang , Bruce Richardson , Neil Horman , dpdk stable Date: Wed, 24 Jan 2018 23:31:24 +0800 Message-Id: <1516808026-25523-16-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'pmdinfogen: fix cross compilation for ARM big endian' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:36:33 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 13d57a9cbd408b0a45e9772763bf23402f4ad229 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 18 Dec 2017 13:26:45 +0530 Subject: [PATCH] pmdinfogen: fix cross compilation for ARM big endian [ upstream commit 74d6c4a72eb2ba9025f25706227f4cf304fe0ba6 ] Cross compiling DPDK for BE mode on ARM results into errors "PMDINFO portal/dpaa2_hw_dpio.o.pmd.c No drivers registered" The original code assumes the sh_size to be 32 bit, while it can be Elf32_Word or Elf64_Xword based on 32bit or 64 bit systems. This patches replaces the sh_size conversion routines to use ADDR_SIZE Fixes: 98b0fdb0ffc6 ("pmdinfogen: add buildtools and pmdinfogen utility") Signed-off-by: Jun Yang Signed-off-by: Hemant Agrawal Acked-by: Bruce Richardson Acked-by: Neil Horman --- buildtools/pmdinfogen/pmdinfogen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c index 96ccbf3..b07dbcf 100644 --- a/buildtools/pmdinfogen/pmdinfogen.c +++ b/buildtools/pmdinfogen/pmdinfogen.c @@ -158,7 +158,8 @@ static int parse_elf(struct elf_info *info, const char *filename) * There are more than 64k sections, * read count from .sh_size. */ - info->num_sections = TO_NATIVE(endian, 32, sechdrs[0].sh_size); + info->num_sections = + TO_NATIVE(endian, ADDR_SIZE, sechdrs[0].sh_size); } else { info->num_sections = hdr->e_shnum; } @@ -181,7 +182,7 @@ static int parse_elf(struct elf_info *info, const char *filename) sechdrs[i].sh_offset = TO_NATIVE(endian, ADDR_SIZE, sechdrs[i].sh_offset); sechdrs[i].sh_size = - TO_NATIVE(endian, 32, sechdrs[i].sh_size); + TO_NATIVE(endian, ADDR_SIZE, sechdrs[i].sh_size); sechdrs[i].sh_link = TO_NATIVE(endian, 32, sechdrs[i].sh_link); sechdrs[i].sh_info = -- 2.7.4