* 'match_priority' problem - missing priority for ARM/MIPS/PPC
@ 2012-06-27 12:21 Jason Richards
2012-07-10 6:20 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Jason Richards @ 2012-06-27 12:21 UTC (permalink / raw)
To: binutils
I compiled a binutils 2.22 configured for all targets. I noticed a
change in binutils
target architecture recognition compared to 2.20. objdump no longer selects or
reports a proper list of architectures when the format encountered is
ambiguous.
I did some searching on the mail list to see this [match_priority] is
a new concept.
I solved this problem with the following patch. Did I miss something?
Thanks in advance,
~Jason
*** binutils-2.22/bfd/elf32-arm.c Mon Nov 21 01:29:13 2011
--- elf32-arm.c Tue Jun 26 17:37:43 2012
***************
*** 1990,1995 ****
--- 1990,1998 ----
#define TARGET_LITTLE_NAME "elf32-littlearm"
#define TARGET_BIG_SYM bfd_elf32_bigarm_vec
#define TARGET_BIG_NAME "elf32-bigarm"
+ #undef elf_match_priority
+ #define elf_match_priority 0
+
#define elf_backend_grok_prstatus elf32_arm_nabi_grok_prstatus
#define elf_backend_grok_psinfo elf32_arm_nabi_grok_psinfo
***************
*** 15400,15405 ****
--- 15403,15410 ----
#define TARGET_BIG_SYM bfd_elf32_bigarm_vxworks_vec
#undef TARGET_BIG_NAME
#define TARGET_BIG_NAME "elf32-bigarm-vxworks"
+ #undef elf_match_priority
+ #define elf_match_priority 1
/* Like elf32_arm_link_hash_table_create -- but overrides
appropriately for VxWorks. */
***************
*** 15686,15691 ****
--- 15691,15698 ----
#define TARGET_BIG_SYM bfd_elf32_bigarm_symbian_vec
#undef TARGET_BIG_NAME
#define TARGET_BIG_NAME "elf32-bigarm-symbian"
+ #undef elf_match_priority
+ #define elf_match_priority 2
/* Like elf32_arm_link_hash_table_create -- but overrides
appropriately for Symbian OS. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 'match_priority' problem - missing priority for ARM/MIPS/PPC
2012-06-27 12:21 'match_priority' problem - missing priority for ARM/MIPS/PPC Jason Richards
@ 2012-07-10 6:20 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2012-07-10 6:20 UTC (permalink / raw)
To: Jason Richards; +Cc: binutils
On Wed, Jun 27, 2012 at 06:21:19AM -0600, Jason Richards wrote:
> I did some searching on the mail list to see this [match_priority] is
> a new concept.
> I solved this problem with the following patch. Did I miss something?
match_priority can't be used to select among targets to suit your
preferences (except in your own private sources). After all, other
people have different preferences. match_priority is there only to
select among bfd targets where some are truly a better match, for
example, an object file that matches both elf32-powerpc and elf32-big
should not select the generic elf target.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-10 6:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 12:21 'match_priority' problem - missing priority for ARM/MIPS/PPC Jason Richards
2012-07-10 6:20 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).