2008-05-13 Nathan Sidwell * ldlang.c (closest_target_match): Ignore generic elf vectors. Index: ldlang.c =================================================================== RCS file: /cvs/src/src/ld/ldlang.c,v retrieving revision 1.284 diff -c -3 -p -r1.284 ldlang.c *** ldlang.c 28 Apr 2008 12:45:33 -0000 1.284 --- ldlang.c 13 May 2008 14:53:56 -0000 *************** name_compare (char *first, char *second) *** 2653,2659 **** stricpy (copy1, first); stricpy (copy2, second); ! /* Remove size and endian strings from the name. */ strcut (copy1, "big"); strcut (copy1, "little"); strcut (copy2, "big"); --- 2653,2659 ---- stricpy (copy1, first); stricpy (copy2, second); ! /* Remove endian strings from the name. */ strcut (copy1, "big"); strcut (copy1, "little"); strcut (copy2, "big"); *************** closest_target_match (const bfd_target * *** 2699,2704 **** --- 2699,2711 ---- if (target->flavour != original->flavour) return 0; + /* Ignore generic big and little endian elf vectors. */ + if ((!memcmp (target->name, "elf32", 5) + || !memcmp (target->name, "elf64", 5)) + && (!strcmp (target->name + 5, "-big") + || !strcmp (target->name + 5, "-little"))) + return 0; + /* If we have not found a potential winner yet, then record this one. */ if (winner == NULL) {