From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 770 invoked by alias); 29 May 2014 17:58:37 -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 755 invoked by uid 89); 29 May 2014 17:58:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f50.google.com Received: from mail-la0-f50.google.com (HELO mail-la0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 29 May 2014 17:58:35 +0000 Received: by mail-la0-f50.google.com with SMTP id b8so389875lan.37 for ; Thu, 29 May 2014 10:58:32 -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:subject:date:message-id:in-reply-to :references; bh=D5mZh2XJ2UI7kHjaEtd500bO8pyjGMvN01i8wxeLCR0=; b=lf4t/8Ed1N1DnLGCOh17RtZqeCJVtw/jx2zcjuAF+/W+g8OxanJDsajmzG1lFwbI4f q8+KRrwWZlsoxHe/FmeswA7uaMGXDPLXxRel5TuUu2IDYk4MOmWsNMLMm09CHWLL4PGn 2OkWHvvbaHpd3N1sLDKXvqzBt8XcrwFJOnXsSyki8dCbi3F9U3V9TKcxX32x6GsPKjAz mN7AXl+LfH2MT4QMwuMikMTFsPMGjj6grF7tCnDumsdtB8kGk2EX5g4xI8OCwkrJdhk0 t4LF1b9sBT0cB0MKwATnTWa8MO3pn1N1HjwHF9y3agSpXiqNKwkFfI3YX4r14BRX787+ li4g== X-Gm-Message-State: ALoCoQlXrUfZGrNTBZM7aVcULe6qlu8cFPdvzmv05wG2USavvSZly6yQp5nTkKsu5nuq2uNOEy/F X-Received: by 10.152.6.194 with SMTP id d2mr7704886laa.54.1401386312316; Thu, 29 May 2014 10:58:32 -0700 (PDT) Received: from localhost (dyn-104-123.parnet.fi. [77.234.104.123]) by mx.google.com with ESMTPSA id k9sm1094182lam.11.2014.05.29.10.58.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 29 May 2014 10:58:31 -0700 (PDT) From: Martin Storsjo To: binutils@sourceware.org Subject: [PATCH] aarch64: Fix the documentation on :pg_hi21: Date: Thu, 29 May 2014 17:58:00 -0000 Message-Id: <1401386309-16156-1-git-send-email-martin@martin.st> In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00274.txt.bz2 The syntax described, including a leading '#', was not supported in practice. (For :lo12: it is optional.) --- Removed the # from the declaration of :lo12: as well - the '#' isn't a part of the :lo12: prefix itself but is part of how the symbol is used in the instruction. --- gas/doc/c-aarch64.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)