Calculate a loaded program address based on the blob address. */
| 21 | |
| 22 | /* Calculate a loaded program address based on the blob address. */ |
| 23 | static inline void *rmodule_load_addr(const struct rmodule *module, |
| 24 | uintptr_t blob_addr) |
| 25 | { |
| 26 | char *loc = module->location; |
| 27 | return &loc[blob_addr - module->header->module_link_start_address]; |
| 28 | } |
| 29 | |
| 30 | /* Initialize a rmodule structure based on raw data. */ |
| 31 | int rmodule_parse(void *ptr, struct rmodule *module) |
no outgoing calls
no test coverage detected