* FW: kernel compilation and -relax flag
@ 2000-11-08 18:07 Rick Gorton
2000-11-08 22:23 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Rick Gorton @ 2000-11-08 18:07 UTC (permalink / raw)
To: 'axp-list@redhat.com'
[Resend - mailer problems]
-----Original Message-----
From: Rick Gorton
Sent: Wednesday, November 08, 2000 12:56 PM
To: 'axp-list@redhat.com'
Subject: RE: kernel compilation and -relax flag
Where can I find out what the usage of .prologue
is supposed to be? The offending test case can be
reduced to using my new copy_user.S, and linking
with -relax. The new version of the routine doesn't
use any new registers, and is issued in the same
relative location as in the original. In neither
the original, nor in the new, touches r27 or r29,
except as:
__copy_user:
ldgp $29, 0($27)
.prologue 1
The code runs correctly when the kernel is not
linked with -relax.
The only things I could think of about possible causes
related to -relax is that the new code:
uses ldbu and stb
while the original doesn't. Which suggests to me
(without knowing more about the implementation details
of the exception code) possible problems with:
ld -relax misbehaving for ldbu/stb in the presence
of exception entries
interaction of more exception entries and a .got
boundary condition
interaction of exception recovery code and ldbu/stb
(aka kernel quirk)
Regards,
Rick Gorton
rick.gorton@alpha-processor.com
-----Original Message-----
From: Richard Henderson [mailto:rth@twiddle.net]
Sent: Wednesday, November 08, 2000 12:48 PM
To: axp-list@redhat.com
Subject: Re: kernel compilation and -relax flag
On Wed, Nov 08, 2000 at 02:02:14PM -0000, David Addison wrote:
> This was working fine until I merged in the API EV6 2.2.17 assembler patch
> and it then broke everything in that init seems to fail to parse command
> line options correctly.
That means that the new ev6 code is not being careful with
the .prologue directives. Those indicate if and how the
incoming r27 value is used.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FW: kernel compilation and -relax flag
2000-11-08 18:07 FW: kernel compilation and -relax flag Rick Gorton
@ 2000-11-08 22:23 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2000-11-08 22:23 UTC (permalink / raw)
To: axp-list
On Wed, Nov 08, 2000 at 01:07:18PM -0500, Rick Gorton wrote:
> Where can I find out what the usage of .prologue
> is supposed to be?
.prologue 0 $27 not used
.prologue 1 $27 used to compute GP
.prologue 2 $27 used for something else
0 and 1 are the same as for OSF/1; 2 is my own invention.
> In neither the original, nor in the new, touches r27 or r29, except as:
>
> __copy_user:
> ldgp $29, 0($27)
> .prologue 1
Huh. That's correct. I suppose it's not impossible that
you've found a linker bug...
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-08 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-08 18:07 FW: kernel compilation and -relax flag Rick Gorton
2000-11-08 22:23 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox