offset = 0;
while (offset < ds->ds_size) {
/*
If the size of the section is greater than 0 and its type is
NOBITS, then ds_data is NULL and this function should
never have been called.
*/
assert(ds->ds_data != NULL);
entry_off = offset;
length = dbg->read(ds->ds_data, &offset, 4);
if (length == 0xffffffff) {