MCPcopy Create free account
hub / github.com/F-Stack/f-stack / populate_module_info

Function populate_module_info

freebsd/arm/arm/unwind.c:172–184  ·  view source on GitHub ↗

* Populate an existing module_info entry (which is already on the list) with * the info for a new module. */

Source from the content-addressed store, hash-verified

170 * the info for a new module.
171 */
172static void
173populate_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.

Callers 2

unwind_module_loadedFunction · 0.85
module_info_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected