library/src/ELF/ELF32/BP-ELFExtraction.cc
// Sequentially prints out all dynamic sections
Sequentially prints out all dynamic sections
Sequentially prints out all dynamic sections
int ELF32_PrintDynamics(P_ELF_DYNAMIC_LIST_32BIT dList){
	if(dList == NULL)
		return NULL;
	if(dList->info == NULL)
		return NULL;
	P_ELF_DYNAMIC_LIST_32BIT firstPtr = dList->first;
	for(dList = dList->first; dList != NULL; dList = dList->next){
		printf("\n\t\t Dynamic List Structure: %p", dList->info);
		printf("\n\t\t\t Tag: %.08x", dList->info->dyn_tag);
		printf("\n\t\t\t Val: %.08x", dList->info->d_un.dyn_ptr);
		printf("\n");
	}
	dList = firstPtr;
	return ERR_SUCCESS;
}
int ELF32_PrintDynamics ( P_ELF_DYNAMIC_LIST_32BIT dList ) { if ( dList == NULL ) return NULL ; if ( dList -> info == NULL ) return NULL ; P_ELF_DYNAMIC_LIST_32BIT firstPtr = dList -> first ; for ( dList = dList -> first ; dList != NULL ; dList = dList -> next ) { printf ( " \n \t \t " , dList -> info ) ; printf ( " \n \t \t \t " , dList -> info -> dyn_tag ) ; printf ( " \n \t \t \t " , dList -> info -> d_un . dyn_ptr ) ; printf ( " \n " ) ; } dList = firstPtr ; return ERR_SUCCESS ; }
Sequentially prints out all dynamic sections
Sequentially prints out all dynamic sections
// Reset pointer