linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Jeroen Roovers <jer@gentoo.org>,
	linux-parisc <linux-parisc@vger.kernel.org>
Cc: hppa@gentoo.org
Subject: Re: [RESEND V2] modprobe: ERROR: could not insert 'ipv6': Exec format error / module ipv6: Unknown relocation: 72
Date: Sat, 8 Jun 2019 15:41:45 +0200	[thread overview]
Message-ID: <f3b34093-1b01-f321-3b98-6708cdc25434@gmx.de> (raw)
In-Reply-To: <20190608145201.56c667f5@wim.jer>

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

On 08.06.19 14:52, Jeroen Roovers wrote:
> # modprobe -v ipv6
> insmod /lib/modules/5.2.0-rc1-JeR/kernel/net/ipv6/ipv6.ko
> modprobe: ERROR: could not insert 'ipv6': Exec format error
> dmesg:
> module ipv6: Unknown relocation: 72

You could try attached untested patch.
I still wonder why you get R_PARISC_PCREL64 relocations.
Can you send your .config ?

Helge

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pcrel64.patch --]
[-- Type: text/x-patch; name="pcrel64.patch", Size: 537 bytes --]

diff --git a/arch/parisc/kernel/module.c b/arch/parisc/kernel/module.c
index eab964a8bf4b..ac5f34993b53 100644
--- a/arch/parisc/kernel/module.c
+++ b/arch/parisc/kernel/module.c
@@ -780,6 +780,10 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
 			/* 32-bit PC relative address */
 			*loc = val - dot - 8 + addend;
 			break;
+		case R_PARISC_PCREL64:
+			/* 64-bit PC relative address */
+			*loc64 = val - dot - 8 + addend;
+			break;
 		case R_PARISC_DIR64:
 			/* 64-bit effective address */
 			*loc64 = val + addend;

  reply	other threads:[~2019-06-08 13:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-08 12:52 [RESEND V2] modprobe: ERROR: could not insert 'ipv6': Exec format error / module ipv6: Unknown relocation: 72 Jeroen Roovers
2019-06-08 13:41 ` Helge Deller [this message]
2019-06-08 13:51   ` Jeroen Roovers
2019-06-08 14:32   ` Helge Deller
2019-06-08 14:49     ` Jeroen Roovers
2019-06-08 18:04       ` [PATCH] parisc: Fix module loading error with JUMP_LABEL feature Helge Deller
2019-06-08 13:50 ` [RESEND V2] modprobe: ERROR: could not insert 'ipv6': Exec format error / module ipv6: Unknown relocation: 72 John David Anglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3b34093-1b01-f321-3b98-6708cdc25434@gmx.de \
    --to=deller@gmx.de \
    --cc=hppa@gentoo.org \
    --cc=jer@gentoo.org \
    --cc=linux-parisc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).