* Populate an existing module_info entry (which is already on the list) with * the info for a new module. */
| 170 | * the info for a new module. |
| 171 | */ |
| 172 | static void |
| 173 | populate_module_info(struct module_info *info, linker_file_t lf) |
| 174 | { |
| 175 | |
| 176 | /* |
| 177 | * Careful! The module_start and module_end fields must not be set |
| 178 | * until all other data in the structure is valid. |
| 179 | */ |
| 180 | info->exidx_start = UADDR(lf->exidx_addr); |
| 181 | info->exidx_end = UADDR(lf->exidx_addr) + lf->exidx_size; |
| 182 | info->module_start = UADDR(lf->address); |
| 183 | info->module_end = UADDR(lf->address) + lf->size; |
| 184 | } |
| 185 | |
| 186 | /* |
| 187 | * Create a new empty module_info entry and add it to the tail of the list. |
no outgoing calls
no test coverage detected