mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
module: allow arch overrides for .exit section names
Some archs like ARM store unwind information for .exit.text in sections with unusual names. As this unwind information refers to .exit.text, it must not be loaded when .exit.text is not loaded (when CONFIG_MODULE_UNLOAD is unset); otherwise, loading a module can fail due to relocation failures. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
This commit is contained in:
parent
2eef1399a8
commit
38b37d631a
2 changed files with 11 additions and 1 deletions
|
@ -29,6 +29,11 @@ void *module_alloc(unsigned long size);
|
|||
/* Free memory returned from module_alloc. */
|
||||
void module_memfree(void *module_region);
|
||||
|
||||
/* Determines if the section name is an exit section (that is only used during
|
||||
* module unloading)
|
||||
*/
|
||||
bool module_exit_section(const char *name);
|
||||
|
||||
/*
|
||||
* Apply the given relocation to the (simplified) ELF. Return -error
|
||||
* or 0.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue