--- //depot/user/jake/kldxref/src/usr.sbin/kldxref/ef.c 2003/01/03 18:43:59 +++ //depot/user/jake/kldxref/src/usr.sbin/kldxref/ef.c 2003/01/19 19:08:44 @@ -319,12 +319,12 @@ switch (ELF_R_TYPE(r->r_info)) { #ifdef R_386_RELATIVE - case R_386_RELATIVE: + case R_386_RELATIVE: /* load address is 0 - nothing to do */ break; #endif - default: + default: warnx("unhandled relocation type %u", ELF_R_TYPE(r->r_info)); break; @@ -336,8 +336,14 @@ if (a->r_offset >= offset && a->r_offset < offset + len) { switch (ELF_R_TYPE(a->r_info)) { +#ifdef R_ALPHA_RELATIVE + case R_ALPHA_RELATIVE: + /* load address is 0 - nothing to do */ + break; +#endif + #ifdef R_SPARC_RELATIVE - case R_SPARC_RELATIVE: + case R_SPARC_RELATIVE: /* load address is 0 */ w = a->r_addend; memcpy((u_char *)dest + (a->r_offset - offset), @@ -345,7 +351,7 @@ break; #endif - default: + default: warnx("unhandled relocation type %u", ELF_R_TYPE(a->r_info)); break;