added section and program header entry functions