[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] insmod doesn't work
barnet wrote:
> Thanks, but how am i supposed to patch my insmod.c file?
>
> @@ -998,7 +998,7 @@ arch_apply_relocation(struct obj_file *f
> *loc += v - got;
> break;
>
> -#elif defined (__microblaze__)
> +#elif defined (microblaze) || defined(__microblaze__)
> case R_MICROBLAZE_NONE:
> case R_MICROBLAZE_64_NONE:
> case R_MICROBLAZE_32_SYM_OP_SYM:
>
> I guess this is the code that differs from mine, is there an easy way to
> patch it or do i have to change the code manually?
Well, this is a one-liner, so changing it manually is probably easier.
But, in general you would do something like
$ patch -p0 < patchfile
Here's an article about getting started with patch:
http://www.linuxgazette.com/issue32/ayers1.html
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/