rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Santosh Sivaraj <santosh@fossix.org>
To: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cc: rust-for-linux@vger.kernel.org
Subject: Re: Could not insert module: Exec format error
Date: Mon, 22 Mar 2021 08:01:07 +0530	[thread overview]
Message-ID: <87v99j2a38.fsf@santosiv.in.ibm.com> (raw)
In-Reply-To: <CANiq72koz3X=fstSLcAu_MkCDsznK+i0xqSnZjxh8LpRC_OBMg@mail.gmail.com>


Hi Miguel,

Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> writes:

> Hi Santosh,
>
> On Sat, Mar 20, 2021 at 12:25 PM Santosh Sivaraj <santosh@fossix.org> wrote:
>>
>> I am building the kernel on a x86 host and running it on a x86 qemu VM.
>
> Is that by chance 32-bit x86?

No, it is a 64-bit x86 guest. I also saw this in the dmesg:

[   43.409639] module: rust_example_3: Unknown rela relocation: 9

Googling took me to https://github.com/rust-lang/rust/issues/57390, and tried to
pass `-Z plt=y` in quiet_cmd_rustc_procmacro, but still the same issue.

Thanks,
Santosh

>
> Cheers,
> Miguel

  reply	other threads:[~2021-03-22  2:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-20 10:20 Could not insert module: Exec format error Santosh Sivaraj
2021-03-20 17:24 ` Miguel Ojeda
2021-03-22  2:31   ` Santosh Sivaraj [this message]
2021-03-22  2:33     ` Miguel Ojeda

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=87v99j2a38.fsf@santosiv.in.ibm.com \
    --to=santosh@fossix.org \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=rust-for-linux@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).