Re: [PATCH] Handle R_ALPHA_REFLONG relocation on Alpha(2.6.0-test11)

From: Måns Rullgård
Date: Fri Dec 12 2003 - 21:31:57 EST


Nathan Poznick <kraken@xxxxxxxxxxxxxxx> writes:

> First off, I'm not positive that this patch is correct or not, but I'd
> like to pick the brains of people in the know, to find if I'm
> approaching this in the right way.
>
> I've been unable to use modules on my Alpha with 2.6.0-test*. modprobe
> (from module-init-tools 0.9.15-pre3) would claim an invalid module
> format, and the kernel would tell me "Unknown relocation: 1" Relocation
> 1 on Alpha is R_ALPHA_REFLONG, and sure enough, readelf -r on one of the
> modules showed many, many uses of it. From looking at
> arch/alpha/kernel/module.c, it appeared that while R_ALPHA_REFQUAD was
> handled, R_ALPHA_REFLONG was not. R_ALPHA_REFQUAD's handling looked
> simple enough, so I made the change which is inlined below.

Which gcc and binutils versions do you use? I've seen some variation
in which relocations they produce.

--
Måns Rullgård
mru@xxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/