From: Johan Rydberg <jrydberg@night.trouble.net>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [ppc patch] grub-mkimage
Date: Fri, 03 Dec 2004 14:49:35 +0100 [thread overview]
Message-ID: <87fz2ntrtc.fsf@night.trouble.net> (raw)
In-Reply-To: <87mzwvlf4o.fsf@marco.marco-g.com> (Marco Gerards's message of "Fri, 03 Dec 2004 12:50:47 +0000")
Marco Gerards <metgerards@student.han.nl> writes:
> For some reason my REL24 code does not work, when it does I will send
> in a patch. But there are 3 options we should consider:
>
> - Making sure REL24 should not be used. This can be done using the
> -mlongcall option. Still, after using this the module will not work
> when it uses libraries, this is a gcc bug that has been fixed last
> week. The library that we use is libgcc. If we choose for
> eliminating all calls to libgcc and if we use -mlongcall the
> relocator will work. The disadvantage of this solution is that the
> modules will get a bit bigger.
>
> - It is possible to fix the relocator just to use PPC_REL24, but in
> that case the module should be loaded near grubof.
>
> - What linux uses is jumping to some code near the module and that
> code does a long jump into grubof. This is the hardest solution and
> I don't yet have enough knowledge to do this.
>
> I am now trying to get option 2 to work first (by using black magic to
> get everything loaded at the right address ;)) and when module loading
> works for me I will try to make 3 work. Does someone else think I
> try to do something else, or can someone help a bit somehow? As you
> might have noticed I really suck at this stuff and doing it just
> because no one else does. ;)
If I'm not mistaken, you're using the regular SVR4 ABI for PPC. It
might be a good idea to take a look at the EABI (Embedded ABI) [1]
I'm not sure if you have to re-configure GCC to make it EABI-compat,
or if there's a configuration switch for this. Anyway, as I said,
it might be worth looking into.
Cheers,
Johan.
[1] ftp://sources.redhat.com/pub/binutils/ppc-docs/ppc-eabi-1995-01.pdf
next prev parent reply other threads:[~2004-12-03 13:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-03 5:36 [ppc patch] grub-mkimage Hollis Blanchard
2004-12-03 12:50 ` Marco Gerards
2004-12-03 13:49 ` Johan Rydberg [this message]
2004-12-03 14:14 ` Marco Gerards
2004-12-03 15:13 ` Johan Rydberg
2004-12-03 15:20 ` Marco Gerards
2004-12-03 16:04 ` Johan Rydberg
2004-12-03 16:13 ` Marco Gerards
2004-12-03 15:18 ` Hollis Blanchard
2004-12-03 16:10 ` Marco Gerards
2004-12-03 16:45 ` Hollis Blanchard
2004-12-03 16:58 ` Marco Gerards
2004-12-03 17:12 ` Yoshinori K. Okuji
2004-12-03 17:18 ` Yoshinori K. Okuji
2005-01-01 22:42 ` [ppc patch] grub-mkimage and module loading Hollis Blanchard
2005-01-02 13:47 ` Marco Gerards
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=87fz2ntrtc.fsf@night.trouble.net \
--to=jrydberg@night.trouble.net \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.