+ /* PR 10288: Control which instructions will be disassembled. */
+ if (info->private_data == NULL)
+ {
+ static arm_feature_set features;
+
+ if ((info->flags & USER_SPECIFIED_MACHINE_TYPE) == 0)
+ /* If the user did not use the -m command line switch then default to
+ disassembling all types of ARM instruction.
+
+ The info->mach value has to be ignored as this will be based on
+ the default archictecture for the target and/or hints in the notes
+ section, but it will never be greater than the current largest arm
+ machine value (iWMMXt2), which is only equivalent to the V5TE
+ architecture. ARM architectures have advanced beyond the machine
+ value encoding, and these newer architectures would be ignored if
+ the machine value was used.
+
+ Ie the -m switch is used to restrict which instructions will be
+ disassembled. If it is necessary to use the -m switch to tell
+ objdump that an ARM binary is being disassembled, eg because the
+ input is a raw binary file, but it is also desired to disassemble
+ all ARM instructions then use "-marm". This will select the
+ "unknown" arm architecture which is compatible with any ARM
+ instruction. */
+ info->mach = bfd_mach_arm_unknown;
+
+ /* Compute the architecture bitmask from the machine number.
+ Note: This assumes that the machine number will not change
+ during disassembly.... */
+ select_arm_features (info->mach, & features);
+
+ info->private_data = & features;
+ }
+