# Re: module: preserve Elf information for livepatch modules

- From: Rusty Russell \<hidden\>
- Date: 2016-01-14 20:28:43 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2016/01/4660786
- Thread: https://ratatoskr.run/linux-api/2016/01/4656202/t.md

```text
Jessica Yu [ref] writes:
> +++ Rusty Russell [11/01/16 11:55 +1030]:
>>This comment is a bit misleading: it's actually pointing into the
>>temporary module copy, which will be discarded.  The init section is
>>slightly different...
>
> Ah, perhaps I'm misunderstanding something..
>
> Since copy_module_elf() is called after move_module(), my
> understanding is that all the section sh_addr's should be pointing
> to either module core memory or module init memory (instead of the
> initial temporary copy of the module in info->hdr).

You're absolutely correct; I'd forgotten that particular kallsyms twist.

Sorry for the noise!
Rusty.
```
