Message ID | 1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5431993qgn; Wed, 13 Dec 2017 04:54:06 -0800 (PST) X-Google-Smtp-Source: ACJfBos8t1JUlUURmtBHTvH+N8pmYCpQIV9zZDxqPaURogf/l2eJSxqo4e83IjPHnwoZYV6upfLo X-Received: by 10.223.150.68 with SMTP id c4mr2202788wra.255.1513169646395; Wed, 13 Dec 2017 04:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513169646; cv=none; d=google.com; s=arc-20160816; b=U7OhJVBjGyg11gaLPwP+IWZB1o4pMzspGnB0h5ZJOm0+tjIZN8Ca390LX2KLgXsRvb 7Rq5IU5Z/riqaxWwd/01bDKKn9sNvhPOK4UFGrBAqNzP1I7EJ3byLIrcFbIRn1Ts+9yf 1xLSxiUkgjzLRDj0OSUsxgKyTyfbU1rNPOLVQLWVM5uS/tl/n7IIxtqkVyRmVcisQNkE CktyB/wPkxysU9UlBHnV6rHcXVV+O8FJOGPlUn2VplGFa9c8g5nuVZP/CfApxfmyp99g uDmB4mBrpOT6TxXgoVhEa/JeIZkMXDIv8u35NzHPog4p9R2LDln/TQbVNQ6H9H9rV7Oh 5ySg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=OdsOJQfaIlnDb+quDekFLNxlTp4NTjFFG6BUcCA2VEg=; b=tqSLzTBHCpQHOMy7KshtebfrWGgtk4ETDCqdG/iFnjsy5CkTHqfSli35N3YNd8hho2 Pie1ZHgANRYoogDDq627o8PDUFg/7ydcPkCZ2l4NGobEEAiA5De3pY/c86JwZF5pdYs4 lnfOfQkfsJMBTcQHpvfRCdnzHAe7hS0SajsVZolGIddYJrANr01zFwH7QPL6wlBUabmy w/aWicTmLCZusmV0hsAWmWu/N3eSJjieA991baiJOmWESLQSSSfU/J+uAyavSHkOxt61 wI4ByRpUIVlEXbVfYs62M15/zXt6b6O0XlQrv5PXfNiJIYeLpA8aQo++5VJK0EzLMiGA C6IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t203si1389185wmt.132.2017.12.13.04.54.06; Wed, 13 Dec 2017 04:54:06 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09E2B7D04; Wed, 13 Dec 2017 13:54:06 +0100 (CET) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0050.outbound.protection.outlook.com [104.47.40.50]) by dpdk.org (Postfix) with ESMTP id 590697CDE; Wed, 13 Dec 2017 13:54:03 +0100 (CET) Received: from BN6PR03CA0009.namprd03.prod.outlook.com (2603:10b6:404:23::19) by BN1PR0301MB0722.namprd03.prod.outlook.com (2a01:111:e400:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 12:54:01 +0000 Received: from BY2FFO11FD028.protection.gbl (2a01:111:f400:7c0c::163) by BN6PR03CA0009.outlook.office365.com (2603:10b6:404:23::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 12:54:01 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD028.mail.protection.outlook.com (10.1.15.217) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 12:53:52 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBDCrsSf021824; Wed, 13 Dec 2017 05:53:54 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <thomas@monjalon.net>, Neil Horman <nhorman@tuxdriver.com>, <stable@dpdk.org>, Jun Yang <jun.yang@nxp.com> Date: Wed, 13 Dec 2017 18:22:54 +0530 Message-ID: <1513169578-28440-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> References: <1509617335-6354-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131576432330127671; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(376002)(39860400002)(346002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(575784001)(316002)(86362001)(296002)(50466002)(81166006)(36756003)(81156014)(106466001)(4326008)(105606002)(8676002)(48376002)(498600001)(356003)(8656006)(2351001)(77096006)(2950100002)(6916009)(2906002)(53936002)(50226002)(104016004)(5660300001)(47776003)(85426001)(305945005)(76176011)(54906003)(51416003)(16586007)(8936002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0722; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:ErrorRetry; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD028; 1:1tDVvzITxSa9cZi3zphVy9tqTrzps0PQsD70ZhxVPnECfaVtkbTMjOrdgjuriUZGu+M9mFO9B7Baj2sXClQrGH1hI5NXtLfis2rLUcAYMEjRp0lxmb/ndqlEwYIzMlLT MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ed263ad-b534-4303-b937-08d542289050 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN1PR0301MB0722; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0722; 3:tcTSqdfel8do+dzfl/bo8NPQ+fAoipdkQgu44AawKNB98+NQeRLpIz9ur22FxstpyHXNWa9JUByQ1fz3vlltJjHq85ptWz+18vB1yZity9O8MWlPeJKeE6zpmfakiytoAAkqqZItWZC9MwiBt7gLDJBGoC0C3XJjOkGQD2o1k4tAjHQrF01CzksH1s0zBq1G8D8MUKq+BJYgZAfQONqYxPbTWSOAldWG/MEhS2lp6QayrYGvrL3zoILGIaR9K+Pm9bMWCBuY8ZA+MJ4r1ZqOf9gGdBRZCNw+m7WkDN5mxeg3UM/03C9FbJvW+Wtv2ozI8sgZDj9fj4kV4k8+bcWmP5lKacJBk6a73XLxIP87jDo=; 25:mLD0IsDomdkAH826Wl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5C94A052AC9F89350@BN1PR0301MB0722.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231023)(6055026)(6096035)(20161123563025)(20161123561025)(20161123565025)(20161123559100)(20161123556025)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011); SRVR:BN1PR0301MB0722; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN1PR0301MB0722; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0722; 23:uppSYEdY4csZTtZv/vTnPGguFFlulHvhvqL6aC6?= EmplQOzqZVLjKsvhY2VAxU0I4wCTVGop60Z+hZvA2w2SXRikfkM4WX0IWS3GC6P41urvZaBbqNXVpfGtc6wuoKs/oG3aKxjjmRVzvVnA3K3jUKmXxPRBIvDhKk+kXQJFyiDk5gxbTFI+JYDY+C+W77QQyv7+No599mU8E2N7rJ5c13E4Tr25/mBZNwxIm0021Z1V2nY+76QHYSRAc/NQ9/3lIHaBVnsxHl4/MAkzZ4nMGIT9BPNYx/rr72S/T25hl+w7HNfB1WxpuAJSXnIZOvozB2ucGtxBjZxRu56Oh2K3pSfjJtWgz+eeAtkvCB4HMXEuVSxMtjGt3injCC489Sxn0T4rdpSw89qfENRi7TjLpbbBWqDZVwpanKLpoF6dNBDtM3+ksm5TBo6X/NknFUwqBeU/cqkclxxqjP5A0I9J1OOYgQM60kyxyWx0xHRHKCLmt/6pK3EbaIMBThnAoTgiWuhWqUuO+N87Mfd32yzmqjV5/1YP42tycO/P56uZYWIZd3fLquhoWci90m2LCl3q4B6deJzciE68nzSGdbg0cJmYgRKgaNurnw2h9a3QvP3y2GuERCSXwACa28M0MR27MXovjdwGzEJH+M0PnSQjFxL1hKhZ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tcQ239AYBzg2NVwJJBIsLb5BtNE=; 7:G7Og23Jl/RUrUa6jpYD2bOpYwF8bob9P0GffzuOJyxGH140uaIpZTKQexexJLa39pl7QiiJIBjSXIxL3WzMMtyo9w61R9uENBd3Gsu/G+cX59hvp8dV34uq4f4DC60wGlCsVfII6PvPCSmgjwjgpMoJQ+rdPHQ6Ryen+KTqFMHzDgNBwzEFrBdqOxgV3OimHVzHHf/z+WTaiyJ7+eulHQy2RvyvPyb6xkNhHl0uYNsUFDY5tXPFFDaD3+IXzlVwV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 12:53:52.5603 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ed263ad-b534-4303-b937-08d542289050 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0722 Subject: [dpdk-dev] [PATCH v2 1/5] pmdinfogen: fix cross compilation for ARM BE X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v2,1/5] pmdinfogen: fix cross compilation for ARM BE
|
expand
|
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 =