Re: [PATCH 16/24] C6X: loadable module support

Arnd Bergmann
2011-08-22T21:04:56Z

On Monday 22 August 2011 16:09:37 Mark Salter wrote:
> +/*
> + * apply a REL relocation
> + */
> +int apply_relocate(Elf32_Shdr *sechdrs,
> + const char *strtab,
> + unsigned int symindex,
> + unsigned int relsec,
> + struct module *me)
> +{

> +/*
> + * apply a RELA relocation
> + */
> +int apply_relocate_add(Elf32_Shdr *sechdrs,
> + const char *strtab,
> + unsigned int symindex,
> + unsigned int relsec,
> + struct module *me)
> +{

I have to admit that I don't really understand how the module loader
works, but I have noticed in the past that all architectures provide
only one of apply_relocate or apply_relocate_add.

Do you actually need both?

Arnd