From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65643 invoked by alias); 24 May 2019 01:31:18 -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 65634 invoked by uid 89); 24 May 2019 01:31:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-13.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=book, bergner, Bergner, H*r:sk:static. X-HELO: mail-pf1-f176.google.com Received: from mail-pf1-f176.google.com (HELO mail-pf1-f176.google.com) (209.85.210.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 May 2019 01:31:16 +0000 Received: by mail-pf1-f176.google.com with SMTP id r22so1391833pfh.9 for ; Thu, 23 May 2019 18:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=BeusJCe9K+yVakF6Q1Uf1A91NUpHTnSDkWxZsZDxSU0=; b=YPflwu924QIz6g+jK/fso/SyloPVvhKn0Sd9LSr9HVr11V6ax+sk8uR0gmkvsAAj83 lXEaKh0Yccvmg4OC8ep08jymcdk9nsZdbs+WQ8YIJny5av21/kat419v6Ym+xJXUsgig X+Wq28b2sXHt7j/Z3LmqcXZLq5/lKmnbIqJuIeBF4bTWgZW+pKLI/c5Yhxy1Ye1CVzy9 R71ZOzBPZ/5fDGhzzi+KHz2JJJJ56tTKxU2DNmPexzWOgLzj4y6l2A7GgMGpQPlwZb1Y ZhoCM3rwTzsqwqxvIzmYg9Dj4Dz1NAN4oO8U3pFFKnOvaR3b+3IgPAmxed+iNXBOVUrf Shjw== Return-Path: Received: from bubble.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id u134sm709839pfc.61.2019.05.23.18.31.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 May 2019 18:31:13 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 3A9A2803FB; Fri, 24 May 2019 11:01:10 +0930 (ACST) Date: Fri, 24 May 2019 01:31:00 -0000 From: Alan Modra To: binutils@sourceware.org Subject: [PATCH 0/5] PowerPC -mfuture support Message-ID: <20190524013110.GC6820@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00331.txt.bz2 This patch series adds support for pc-relative addressing on PowerPC. It's part of a much larger patch that I'm not yet allowed to make public, for a possible future IBM POWER architecture processor. I'm instructed to note that this does not imply any committment to include these instructions in a future Book I tied to any IBM product. Also, until this all becomes properly released with an updated ABI document, new relocation numbers and semantics might change in ways that break object file compatibility. Alan Modra (3): PowerPC relocations for prefix insns PowerPC GOT_PCREL34 optimisation PowerPC notoc linkage stubs Peter Bergner (2): PowerPC add initial -mfuture instruction support PowerPC D-form prefixed loads and stores bfd/ChangeLog | 56 ++ bfd/bfd-in2.h | 17 + bfd/elf64-ppc.c | 950 ++++++++++++++++++++++++--- bfd/libbfd.h | 17 + bfd/reloc.c | 34 + binutils/ChangeLog | 4 + binutils/objdump.c | 3 +- gas/ChangeLog | 50 ++ gas/config/tc-ppc.c | 370 +++++++++-- gas/config/tc-ppc.h | 24 +- gas/messages.c | 18 +- gas/testsuite/gas/ppc/ppc.exp | 3 + gas/testsuite/gas/ppc/prefix-align.d | 30 + gas/testsuite/gas/ppc/prefix-align.s | 21 + gas/testsuite/gas/ppc/prefix-pcrel.d | 235 +++++++ gas/testsuite/gas/ppc/prefix-pcrel.s | 121 ++++ gas/testsuite/gas/ppc/prefix-reloc.d | 35 + gas/testsuite/gas/ppc/prefix-reloc.s | 13 + include/ChangeLog | 20 + include/dis-asm.h | 2 + include/elf/ppc64.h | 24 + include/opcode/ppc.h | 18 + ld/ChangeLog | 13 + ld/testsuite/ld-powerpc/notoc2.d | 29 + ld/testsuite/ld-powerpc/notoc2.s | 13 + ld/testsuite/ld-powerpc/pcrelopt.d | 89 +++ ld/testsuite/ld-powerpc/pcrelopt.s | 119 ++++ ld/testsuite/ld-powerpc/pcrelopt.sec | 6 + ld/testsuite/ld-powerpc/powerpc.exp | 6 + opcodes/ChangeLog | 27 + opcodes/ppc-dis.c | 93 ++- opcodes/ppc-opc.c | 212 +++++- 32 files changed, 2498 insertions(+), 174 deletions(-) create mode 100644 gas/testsuite/gas/ppc/prefix-align.d create mode 100644 gas/testsuite/gas/ppc/prefix-align.s create mode 100644 gas/testsuite/gas/ppc/prefix-pcrel.d create mode 100644 gas/testsuite/gas/ppc/prefix-pcrel.s create mode 100644 gas/testsuite/gas/ppc/prefix-reloc.d create mode 100644 gas/testsuite/gas/ppc/prefix-reloc.s create mode 100644 ld/testsuite/ld-powerpc/notoc2.d create mode 100644 ld/testsuite/ld-powerpc/notoc2.s create mode 100644 ld/testsuite/ld-powerpc/pcrelopt.d create mode 100644 ld/testsuite/ld-powerpc/pcrelopt.s create mode 100644 ld/testsuite/ld-powerpc/pcrelopt.sec -- Alan Modra Australia Development Lab, IBM