$OpenBSD: patch-ld_emultempl_avrelf_em,v 1.3 2010/06/27 20:58:10 ckuethe Exp $
--- ld/emultempl/avrelf.em.orig	Sat Jun 26 11:23:28 2010
+++ ld/emultempl/avrelf.em	Sat Jun 26 11:31:17 2010
@@ -71,8 +71,10 @@ avr_elf_${EMULATION_NAME}_before_allocation (void)
 
   gld${EMULATION_NAME}_before_allocation ();
 
-  /* We only need stubs for the avr6 family.  */
-  if (strcmp ("${EMULATION_NAME}","avr6"))
+  /* We only need stubs for avr6, avrxmega6, and avrxmega7. */
+  if (strcmp ("${EMULATION_NAME}","avr6") 
+      && strcmp ("${EMULATION_NAME}","avrxmega6")
+      && strcmp ("${EMULATION_NAME}","avrxmega7") )
     avr_no_stubs = TRUE;
 
   avr_elf_set_global_bfd_parameters ();
