Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Rick Gorton <rick.gorton@api-networks.com>
To: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: FW: kernel compilation and -relax flag
Date: Wed, 8 Nov 2000 13:07:18 -0500	[thread overview]
Message-ID: <051DFF3BBA73D3119A5800A0C95BD0219BEA07@barracuda.api-networks.com> (raw)

[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.




             reply	other threads:[~2000-11-08 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-08 18:07 Rick Gorton [this message]
2000-11-08 22:23 ` FW: kernel compilation and -relax flag Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox