Currently when there is no custom section data allocator the ucimap_section_data
struct has to be at the beginning at the containing structure.
This patch gets rid of that restriction by taking smap_offset into account.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
} else {
sd = malloc(sm->alloc_len);
memset(sd, 0, sm->alloc_len);
} else {
sd = malloc(sm->alloc_len);
memset(sd, 0, sm->alloc_len);
+ sd = ucimap_ptr_section(sm, sd);