From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32704 invoked by alias); 2 Jun 2014 19:31:44 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 32688 invoked by uid 89); 2 Jun 2014 19:31:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f54.google.com Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com) (209.85.215.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 02 Jun 2014 19:31:42 +0000 Received: by mail-la0-f54.google.com with SMTP id pv20so2895256lab.13 for ; Mon, 02 Jun 2014 12:31:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a2tWEEwADj13cqV4BxS7jPry63h4tOEJG/gPNEAzZKk=; b=ZFAlhiyrGwtss8uU6+sjyb9KQ1BDTiAHEm2MH/pPs0EYQsn6P8Mh7JsLSm3f9E8hCJ GGG3VesGN0R3HK3m8bD8GWxRkCjdnhOVeebqIo/peqbr1mz9inzTAcSECauQr2lPNHTl aXM6/Xq5lHdNLAkolPEB3n0D6eAzIcwYxOebNImoe2H3NYdhz4/uFOQh6UaNAINWF7TT BxmPZIEOAKYVpBPxr+/fskhPED4hOj3m2fdKKWHuvatn5l8fVEKKrgiHxOK6avsjDudE Mrt/7XFtt1FIsvG1kRYzk6bloCLwpiZ9UgMrTIkoSOi2r8JPEpo+/FG6n1VVDzt8aWrX v0QA== X-Gm-Message-State: ALoCoQl0nPyetgdqxVApXcOj5jhs0XMj8J0AbrS3LOSLDO6ETVaZ5DZEUvs8DvqEEmae5++xpq5n X-Received: by 10.152.43.194 with SMTP id y2mr3593510lal.72.1401737498833; Mon, 02 Jun 2014 12:31:38 -0700 (PDT) Received: from localhost ([2001:14b8:147:0:7caa:917e:6a45:708e]) by mx.google.com with ESMTPSA id u4sm11896565lal.8.2014.06.02.12.31.37 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Jun 2014 12:31:38 -0700 (PDT) From: Martin Storsjo To: binutils@sourceware.org Cc: Marcus Shawcroft Subject: [PATCH] aarch64: Fix the documentation on :pg_hi21: Date: Mon, 02 Jun 2014 19:31:00 -0000 Message-Id: <1401737495-10944-1-git-send-email-martin@martin.st> In-Reply-To: <538C8006.4000807@arm.com> References: <538C8006.4000807@arm.com> X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00014.txt.bz2 The syntax described, including a leading '#', was not supported in practice. (For :lo12: it is optional.) --- Added a ChangeLog entry. --- gas/ChangeLog | 4 ++++ gas/doc/c-aarch64.texi | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 98186d3..911511e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2014-06-02 Martin Storsjo + + * doc/c-aarch64.texi: Fix the documentation on :pg_hi21:. + 2014-05-22 Alan Modra * listing.c (listing_warning, listing_error): Add space after colon. diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index cce4f61..3d84123 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -186,24 +186,24 @@ For example to load the 48-bit absolute address of @var{foo} into x0: @cindex ADRP, ADD, LDR/STR group relocations, AArch64 Relocations for @samp{ADRP}, and @samp{ADD}, @samp{LDR} or @samp{STR} instructions can be generated by prefixing the label with -@samp{#:pg_hi21:} and @samp{#:lo12:} respectively. +@samp{:pg_hi21:} and @samp{:lo12:} respectively. For example to use 33-bit (+/-4GB) pc-relative addressing to load the address of @var{foo} into x0: @smallexample - adrp x0, #:pg_hi21:foo + adrp x0, :pg_hi21:foo add x0, x0, #:lo12:foo @end smallexample Or to load the value of @var{foo} into x0: @smallexample - adrp x0, #:pg_hi21:foo + adrp x0, :pg_hi21:foo ldr x0, [x0, #:lo12:foo] @end smallexample -Note that @samp{#:pg_hi21:} is optional. +Note that @samp{:pg_hi21:} is optional. @smallexample adrp x0, foo @@ -212,7 +212,7 @@ Note that @samp{#:pg_hi21:} is optional. is equivalent to @smallexample - adrp x0, #:pg_hi21:foo + adrp x0, :pg_hi21:foo @end smallexample @node AArch64 Floating Point -- 1.8.5.2 (Apple Git-48)