From commits-return-5777-archive-asf-public=cust-asf.ponee.io@nuttx.apache.org Fri Mar 27 05:04:51 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 61987180672 for ; Fri, 27 Mar 2020 06:04:51 +0100 (CET) Received: (qmail 39147 invoked by uid 500); 27 Mar 2020 05:04:50 -0000 Mailing-List: contact commits-help@nuttx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nuttx.apache.org Delivered-To: mailing list commits@nuttx.apache.org Received: (qmail 38990 invoked by uid 99); 27 Mar 2020 05:04:50 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2020 05:04:50 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id ABDD181A0A; Fri, 27 Mar 2020 05:04:49 +0000 (UTC) Date: Fri, 27 Mar 2020 05:04:48 +0000 To: "commits@nuttx.apache.org" Subject: [incubator-nuttx] 01/07: modlib: Don't truncate 64-bit values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: xiaoxiang@apache.org In-Reply-To: <158528548737.26130.1129404407519032771@gitbox.apache.org> References: <158528548737.26130.1129404407519032771@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-nuttx X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: bd7829a44da56654a254dc3967f7266f27b63bc3 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20200327050449.ABDD181A0A@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git commit bd7829a44da56654a254dc3967f7266f27b63bc3 Author: YAMAMOTO Takashi AuthorDate: Thu Mar 26 15:44:54 2020 +0900 modlib: Don't truncate 64-bit values --- libs/libc/modlib/modlib_symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c index 0723e17..a3eed52 100644 --- a/libs/libc/modlib/modlib_symbols.c +++ b/libs/libc/modlib/modlib_symbols.c @@ -418,7 +418,7 @@ int modlib_symvalue(FAR struct module_s *modp, loadinfo->iobuffer, sym->st_value, symbol->sym_value, sym->st_value + symbol->sym_value); - sym->st_value += (Elf_Word)((uintptr_t)symbol->sym_value); + sym->st_value += ((uintptr_t)symbol->sym_value); } break;