From patchwork Thu Aug 1 10:13:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Fedotov X-Patchwork-Id: 170366 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5213720ile; Thu, 1 Aug 2019 03:14:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAd4YAHZxJ1MYGxXnZ1kHl9fP/vpMvhvqLlTiME2iWbMpDPFWVSeqIATKehrFe3BiWMGJc X-Received: by 2002:a65:6108:: with SMTP id z8mr86883560pgu.289.1564654445173; Thu, 01 Aug 2019 03:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564654445; cv=none; d=google.com; s=arc-20160816; b=jB0vbrGA9RT+7KJoO6Y1alALy/kdk9m7bt24BqZsbFgetyjoDVrwgJ0KUgvDfuDeKV 3xyaQ/rJtOnVxfUljrID+WSeEKAZzIMHtQ7AxNGdItZnGcBrIB90GD4wdVxJPYTVkSze KypSqm27vDqjkl15CVgND9VOx3a7q9syEOObkQRyFxBCM4tOLV1niJ8wT0WMkoPWjNTm i6t6V8v62lLTxdAn7O6YhcgQSKKy72ZixqE+ZLhsN3awvqzdKDvWgcYQbbkYfPhSjlWF oPPHYzY6ls9v7nqJCk/7ZfTLWELeyE1xt2jhQDI/+IQ8xMF505tn0mO5toUu3S0WHH1A 5j2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=PIb7SHWSIrhJzY/85PiSWPovoMW2DqrriSQVm7Rbpsk=; b=ZD3BX8kdKQPW+UKmq8eoftum+IwlfUokPxTghL7y5O1ORDqmkuxyq7k92TYMbcyIxk cRZwNxpIRVQ8OjgGRfQF2yWRyB6FBe703eg0vOIgirzlQt9HA16hmhoMLCsDQrIfht5C aqp8bQlt/KDmzJ5IvyspjB3BuEw17GHvQebWJ8z4k1SYWpqmAdxy16G2umBUQSWgeaO9 /ALaiKCgOnzvg0IGlU6qSUAg3i1DU5deiBtIB5zkZ2zEx6tt8vmhiMBPXSchPtZd0Jom xxJtWXtHdMbgmt5BTgpctDFufrylaolVhkxnAtwBqKxtedXLQdKy9VizQrjPGQTqt8P8 z8rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=IGYJoVHI; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uJwTLJPD; spf=pass (google.com: domain of newlib-return-17108-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-17108-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id s14si36835914pgj.347.2019.08.01.03.14.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 03:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-17108-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=IGYJoVHI; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uJwTLJPD; spf=pass (google.com: domain of newlib-return-17108-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-17108-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=L2OLOxU/QbplGf2E/jb69JbgUiI5zwOYWeTof+3CM1EgYLwF7ka+P 9KhDdfI1RH7xXNCmPOhPHkYZoOfymumYve0DgaaARUoz4cful3m2MxKGy6MuzFfS fwr3Qrq5og2ZeV0+Lhv2IK5PEEL2VYyCQxI5OK8rHplEta03gY5SXs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=HLNnC32auI8hAI64AdP9Gyr16Qs=; b=IGYJoVHIheF9r9887HlQoRwHwR1e qqjApLyRp6jbrhvPcLOMoHlR2X1oE8xwo/iftdtqwHGA0lLuMnYEPnlZhSJn1tqj PMa1wdd0K3f52l9Eon8Ne1/C6MtfRTm//UNDla1jplMZGynuHj859LUW2M+f3gJ6 Zwwp2t4RWQY4iZI= Received: (qmail 94497 invoked by alias); 1 Aug 2019 10:13:48 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 94428 invoked by uid 89); 1 Aug 2019 10:13:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=Space X-HELO: mail-lf1-f65.google.com Received: from mail-lf1-f65.google.com (HELO mail-lf1-f65.google.com) (209.85.167.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Aug 2019 10:13:47 +0000 Received: by mail-lf1-f65.google.com with SMTP id x3so49923773lfc.0 for ; Thu, 01 Aug 2019 03:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PIb7SHWSIrhJzY/85PiSWPovoMW2DqrriSQVm7Rbpsk=; b=uJwTLJPDemLz76ilTG+IyBusHkA2a/4r6cUPqHCQdOvcBDgEkrLmfecNC0V63MFxio aHOlp8GULCCdn7KTsjKRD+RVfPjOXcNxe833OhBRnITRaRF+IDl6cXDQhGKbIHbfScOr gKwYWX1SRlcCIYfKWOoh/NN4AGj3fZC1MsrZYIeMyw8pnJCWmqUNWHpuLRT+Z16qdFYZ sdcTOECnrf74EhYXVr+PBU8wBDMbnD58iMxjxGXaJ+bevU2sW0Lwu5qUizMMD3aF/qX6 6EZf7bS8Mr3JTSS3MLEjwhLDkIW8UHnviwqFLmyL7mHJkyq9BafaFjXPzsZclwiO81T3 KosA== Return-Path: Received: from af-ubuntu18-hyperv.cmtknet.ru (relay.cmtk.ru. [195.5.145.226]) by smtp.gmail.com with ESMTPSA id n1sm12221136lfk.19.2019.08.01.03.13.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 03:13:44 -0700 (PDT) From: Alexander Fedotov To: newlib@sourceware.org, Richard.Earnshaw@arm.com Cc: Alexander Fedotov Subject: [PATCH v1 1/4] Alignment libgloss/arm and newlib/libc/sys/arm: reflect commit 9b11672 Date: Thu, 1 Aug 2019 05:13:31 -0500 Message-Id: <20190801101334.6213-1-alfedotov@gmail.com> --- newlib/libc/sys/arm/crt0.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S index 9c262428d..40bbc3d69 100644 --- a/newlib/libc/sys/arm/crt0.S +++ b/newlib/libc/sys/arm/crt0.S @@ -393,13 +393,14 @@ __change_mode: movs r1, r0 #else movs r0, #AngelSWI_Reason_GetCmdLine - adr r1, .LC30 /* Space for command line. */ + ldr r1, .LC30 /* Space for command line. */ #ifdef THUMB_VXM bkpt AngelSWI #else AngelSWIAsm AngelSWI #endif ldr r1, .LC30 + ldr r1, [r1] #endif /* Parse string at r1. */ movs r0, #0 /* Count of arguments so far. */ @@ -586,8 +587,7 @@ change_back: #endif #ifdef ARM_RDI_MONITOR .LC30: - .word CommandLine - .word 255 + .word AngelSWIArgs .LC31: .word __end__ @@ -600,6 +600,9 @@ HeapLimit: .word 0 __stack_base__: .word 0 StackLimit: .word 0 CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */ +AngelSWIArgs: + .word CommandLine + .word 255 #endif #ifdef __pe__