Subject: Re: ia64 unwind section: Loader implementation
To: Allen Briggs <briggs@netbsd.org>
From: Cherry George Mathew <cherry@sdf.lonestar.org>
List: tech-kern
Date: 12/30/2005 21:27:55
On Fri, 2005-12-30 at 09:38 -0500, Allen Briggs wrote:
> [ Do we need this wide of a cross-post? ]
> 

Sorry, I'll take tech-ports and tech-toolchain off the list....

> Aside from that, this seems like the best option to me, but can it
> be abstracted a little bit into an md callback?  Either to allow

Hmm... how about something like:

*** loadfile_elf32.c	11 Dec 2005 17:54:46 +0530	1.12
--- loadfile_elf32.c	30 Dec 2005 19:02:08 +0530	
***************
*** 296,301 ****
--- 296,307 ----
  
  	for (first = 1, i = 0; i < elf->e_phnum; i++) {
  		internalize_phdr(elf->e_ident[EI_DATA], &phdr[i]);
+ 		
+ 		if (phdr[i].p_type & PT_LOPROC) {
+ 			/* XXX: Do processor specific hooks. */
+ 			continue;
+ 		}
+