This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: mips64 n32 and n64 support in dl-machine.h
Alexandre Oliva <aoliva at redhat dot com> writes:
|> On Mar 14, 2003, Alexandre Oliva <aoliva at redhat dot com> wrote:
|>
|> > The problem here is that the compiler legitimately assumes that a
|> > pointer is aligned, but we have to turn that into a pointer that's not
|> > guaranteed to be aligned while preventing the compiler from being
|> > smart and figuring out the pointers are the same and doing the
|> > optimization anyway.
|>
|> Here's the patch I came up with. Ok to install?
IMHO a better solution would be a way to use a different signature for the
elf_machine_rel function with void* as the last parameter for those
architectures that need to handle unaligned stores specially.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."