| 102 | } |
| 103 | |
| 104 | static inline size_t rmodule_number_relocations(const struct rmodule *module) |
| 105 | { |
| 106 | size_t r; |
| 107 | |
| 108 | r = module->header->relocations_end_offset; |
| 109 | r -= module->header->relocations_begin_offset; |
| 110 | r /= sizeof(uintptr_t); |
| 111 | return r; |
| 112 | } |
| 113 | |
| 114 | static void rmodule_copy_payload(const struct rmodule *module) |
| 115 | { |