Re: [PATCH 16/24] C6X: loadable module support
From: Arnd Bergmann <arnd@arndb.de>
Date: 2011-08-22 21:04:56
From: Arnd Bergmann <arnd@arndb.de>
Date: 2011-08-22 21:04:56
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