From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 4BF493AA8004 for ; Wed, 8 Jun 2022 11:55:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4BF493AA8004 Received: by mail-pl1-x632.google.com with SMTP id o17so17439503pla.6 for ; Wed, 08 Jun 2022 04:55:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=TME2GYNviZWr0rroyYFgorPJaEtLyRxlvyTvNY4dSP0=; b=48RxnkfED//A9mV03arfNLLcOPhDKPAwfIM8Nw4lrFNuNUx2vpGijea8S2aAhvV/Gg u3mcwa9lispcmHFUWSuQmlFnNUs+I+oTxYwWV2CCvSn29r6PBZv6MOrgazjPPVpNkd2C WV214DDHCYAFM2KQqbAAXJ3JYhp+RH76H4uGG/PqeRu2uagWaxrFDPA3Y3HanVr8mW05 tLFG2y//DY/Gmb821xfrSPTXzKYgI/jUcOylnaexwV3cH8We4s+p5AtXGgmiIyb4Ei8W cDv4yNzem4xcGGtvts5JteSzreGWfHnJyQf8i5cDhg7K5uUgfOV1kKXRo79NXfW4XO8C 6dVA== X-Gm-Message-State: AOAM530Iiq4iN2OEoD7XD+kX2XIkwRWaJn8nnyi9rFT1OWh7HQBxx5hj jVWwVrWw8TH4YneGz2ESppZf0o9qgss= X-Google-Smtp-Source: ABdhPJxT/AkwoVroWwBfjOaqfc+5M772DEq9yCG+bVj926f+s4HybLEElODmoTpwY4vhfOKnjGcqQw== X-Received: by 2002:a17:90a:b284:b0:1e3:826b:d11d with SMTP id c4-20020a17090ab28400b001e3826bd11dmr37878892pjr.79.1654689325000; Wed, 08 Jun 2022 04:55:25 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id m20-20020a056a00165400b0051ba303f1c0sm14704131pfc.127.2022.06.08.04.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 04:55:24 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 0C9CA114046E; Wed, 8 Jun 2022 21:25:22 +0930 (ACST) Date: Wed, 8 Jun 2022 21:25:22 +0930 From: Alan Modra To: binutils@sourceware.org Subject: NONE reloc fixes Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3037.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 11:55:28 -0000 Make them all zero size standard do-nothing howtos. * elf32-csky.c (csky_elf_howto_table ): Correct howto. * elf32-ft32.c (ft32_elf_howto_table ): Likewise. * elf32-gen.c (dummy): Likewise. * elf32-nds32.c (none_howto): Likewise. * elf32-nios2.c (elf_nios2_r2_howto_table_rel ): Likewise. * elf32-pru.c (elf_pru_howto_table_rel ): Likewise. * elf32-v850.c (v800_elf_howto_table ): Likewise. * elf64-gen.c (dummy): Likewise. * elfn32-mips.c (elf_mips_howto_table_rela address * OCTETS_PER_BYTE (input_bfd, diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c index 74a9f98da3e..d1e5d0e7a3d 100644 --- a/bfd/elf32-nios2.c +++ b/bfd/elf32-nios2.c @@ -735,7 +735,7 @@ static reloc_howto_type elf_nios2_r2_howto_table_rel[] = { /* No relocation. */ HOWTO (R_NIOS2_NONE, /* type */ 0, /* rightshift */ - 0, /* size (0 = byte, 1 = short, 2 = long) */ + 3, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ false, /* pc_relative */ 0, /* bitpos */ diff --git a/bfd/elf32-pru.c b/bfd/elf32-pru.c index 30e46766c89..9e73fa62f2d 100644 --- a/bfd/elf32-pru.c +++ b/bfd/elf32-pru.c @@ -65,8 +65,8 @@ static reloc_howto_type elf_pru_howto_table_rel[] = { /* No relocation. */ HOWTO (R_PRU_NONE, /* type */ 0, /* rightshift */ - 0, /* size (0 = byte, 1 = short, 2 = long) */ - 3, /* bitsize */ + 3, /* size (0 = byte, 1 = short, 2 = long) */ + 0, /* bitsize */ false, /* pc_relative */ 0, /* bitpos */ complain_overflow_dont,/* complain_on_overflow */ diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 4fb17a0f6de..46d0432e63c 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -1761,7 +1761,7 @@ static const struct v850_elf_reloc_map v850_elf_reloc_map[] = static reloc_howto_type v800_elf_howto_table[] = { - V800_RELOC (R_V810_NONE, 0, 0, 0, dont, false, generic), /* Type = 0x30 */ + V800_RELOC (R_V810_NONE, 3, 0, 0, dont, false, generic), /* Type = 0x30 */ V800_RELOC (R_V810_BYTE, 0, 8, 0, dont, false, generic), V800_RELOC (R_V810_HWORD, 1, 16, 0, dont, false, generic), V800_RELOC (R_V810_WORD, 2, 32, 0, dont, false, generic), diff --git a/bfd/elf64-gen.c b/bfd/elf64-gen.c index 9d5f29cefa5..7e92c874126 100644 --- a/bfd/elf64-gen.c +++ b/bfd/elf64-gen.c @@ -29,7 +29,7 @@ static reloc_howto_type dummy = HOWTO (0, /* type */ 0, /* rightshift */ - 0, /* size (0 = byte, 1 = short, 2 = long) */ + 3, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ false, /* pc_relative */ 0, /* bitpos */ diff --git a/bfd/elfn32-mips.c b/bfd/elfn32-mips.c index 07b753f0cc1..d3414a67047 100644 --- a/bfd/elfn32-mips.c +++ b/bfd/elfn32-mips.c @@ -877,7 +877,7 @@ static reloc_howto_type elf_mips_howto_table_rela[] = /* No relocation. */ HOWTO (R_MIPS_NONE, /* type */ 0, /* rightshift */ - 0, /* size (0 = byte, 1 = short, 2 = long) */ + 3, /* size (0 = byte, 1 = short, 2 = long) */ 0, /* bitsize */ false, /* pc_relative */ 0, /* bitpos */ diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index e0e23926f03..99c69c259f4 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -13361,7 +13361,7 @@ _bfd_elf_mips_get_relocated_section_contents { bfd_vma off; static reloc_howto_type none_howto - = HOWTO (0, 0, 0, 0, false, 0, complain_overflow_dont, NULL, + = HOWTO (0, 0, 3, 0, false, 0, complain_overflow_dont, NULL, "unused", false, 0, 0, false); off = ((*parent)->address diff --git a/bfd/reloc.c b/bfd/reloc.c index 5098e0ab09f..3d1768fe013 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -8540,7 +8540,7 @@ bfd_generic_get_relocated_section_contents (bfd *abfd, { bfd_vma off; static reloc_howto_type none_howto - = HOWTO (0, 0, 0, 0, false, 0, complain_overflow_dont, NULL, + = HOWTO (0, 0, 3, 0, false, 0, complain_overflow_dont, NULL, "unused", false, 0, 0, false); off = ((*parent)->address -- Alan Modra Australia Development Lab, IBM