773
[darwin-xtools.git] / cctools / otool / notes
blob00900852656322fffaa39f9799ab0d4ae1a8b1cb
1 TODO:
2 - Change pad in PPC_THREAD_STATE to vrsave.  Print the altivec state.
3 - HPPA, bring the private version of mach/hppa/thread_status.h in sync with
4   the kernel header and change ofile_print.c to recognize new thread states.
6 Changes for the 5.27 release (the cctools-772 release):
7 - Fixed the disassembly of vshll where the table entry on line 751 had the first
8   and second register operands switched.  Radar bug 7308888.
10 Changes for the 5.27 release (the cctools-764 release):
11 - Changed the license on all otool source files.  Radar bug #6538662.
13 Changes for the 5.27 release (the cctools-763 release):
14 - Added the disassembly for the rrx instructions to arm_disasm.c .  Radar bug
15   #7098328.
17 Changes for the 5.27 release (the cctools-762 release):
18 - Changed the Makefile to set CC when when SDKROOT is set.  Radar bug #7078805.
20 Changes for the 5.27 release (the cctools-760 release):
21 - Fixed a problem with the leading address for raw text bytes of x86_64 not
22   being printed as a 64-bit hex value.  The fix was in print_text() in main.c .
23   Radar bug #7012357,
25 Changes for the 5.27 release (the cctools-759 release):
26 - Added the disassembly for the pldw, vcvt.f32.f16, vcvt.f16.f32, vcvtt and
27   vcvtb instructions to arm_disasm.c .  Radar bug #6959129.
28 - Added printing the memory barrior options ish, ishst, osh and oshst and
29   changed un to nsh and unst to nshst in arm_disasm.c . Radar bug #6982242.
30 - Changed the Makefile to add -isysroot $(SDKROOT) to compile and link lines
31   when SDKROOT is set.  Radar bug #6965029.
33 Changes for the 5.27 release (the cctools-757 release):
34 - Fixed a problem with 64-bit call (near) instructions not showing 64-bit
35   register names.  This is a special case where in a 64-bit object the
36   FF /2 opcode results in a 64-bit operand even without a rex prefix byte.
37   So added logic for this in the case of indirect to memory or register operand
38   to set the REX.W bit to indicate 64-bit operand size.  Radar bug #6907058.
40 Changes for the 5.27 release (the cctools-755 release):
41 - Fixed a problem with 64-bit intel binaries not having their addresses correct
42   for call targets when some of the high 32-bits are set.  Changed the type of
43   the parameter value of displacement() in i386_disasm.c from uint32_t to
44   uint64_t.  And change the two uses to use the variable imm0 instead of value0
45   in i386_disassemble() in i386_disasm.c . Radar bug #6740004.
47 Changes for the 5.27 release (the cctools-754 release):
48 - Changed the Objective C data printers to account for the LC_ENCRYPTION_INFO
49   load command causing some of the sections to be encrypted.  Code and fields
50   were added to print_objc.c, print_objc2_32bit.c and print_objc2_64bit.c to
51   set the protected field of the sections structure based on the range of the
52   LC_ENCRYPTION_INFO load command if present.  Radar bug #6784286.
54 Changes for the 5.27 release (the cctools-753 release):
55 - Change the #ifdef around the print_x86_thread_state32 lable in ofile_print.c
56   to removed a warning when compiled on Tiger.
58 Changes for the 5.27 release (the cctools-752 release):
59 - Ported to build with clang.
60   - Changed Makefile to work around bugs 6761248 and 6756912.
61   - Added cast to int in ofile_print.c (two places) in switch statements.
62   - Removed an extra '%' in a printf() statement in "%movsldup\t" on line 2152
63     in i386_disasm.c.
64 - Fixed typos in the usage line for "symbolically".  Radar bug #6700325.
65 - Changed the printing of the uuid in print_uuid_command in ofile_print.c so it
66   matches how dwarfdump(1) prints it.  Radar bug #6723850.
68 Changes for the 5.27 release (the cctools-751 release):
69 - Changed the printing of Objective-C data so that strings from protected
70   sections are printed as "some string from a protected section" instead of
71   what looks like junk when the protected string is printed as characters.
72   Radar bug #5578032.
74 Changes for the 5.26 release (the cctools-750 release):
75 - Changed so that armv7 defaults to printing in thumb mode.  Moved in_thumb
76   boolean to a global in arm_disasm.[ch] and set it to TRUE in main.c if the
77   binary is armv7.  Radar bug 6651124.
78 - Fixed a problem with print_objc_segment() in print_objc.c that was incorrectly
79   using sizeof(void *) when it should have been using sizeof(uint32_t).
80   Radar bug #6652270.
81 - Updated ofile_print.c for the places it was missing code for
82   S_16BYTE_LITERALS.  Radar bug #5947957.
83 - Fixed the x86_64 disassembly of with and SIB byte when mode is 0 and base is 5
84   and ss is not zero so that it does not print a base register.  Radar bug
85   #6533811
87 Changes for the 5.26 release (the cctools-749 release):
88 - Fixed the printing of Objective-C meta data from 64-bit object files.  So that
89   every "dereference" of a pointer looks for a relocation entry.  Also added
90   the -V option to print the symbol names from the relocation entries.
91   Radar bug #6549235.
93 Changes for the 5.26 release (the cctools-737 release):
94 - Changed arm_r_types[] for entry 7 to T_BR32 in ofile_print.c for the new
95   ARM_THUMB_32BIT_BRANCH relocation type.  Radar bug #6511482.
96 - In print_insn() in arm_disasm.c removed the code at the end to check for
97   status of running into the end of the section's memory and returning a -1
98   for the size of bytes it disassembled (as that caused it to loop).  Radar
99   bug #6504790.
101 Changes for the 5.26 release (the cctools-733 release):
102 - In arm_dis.c, updated thumb ldmia instruction to handle the case where Rn is
103   in the register list and thus shouldn't be updated. Radar bug #6394340.
105 Changes for the 5.26 release (the cctools-725 release):
106 - Changed print_library_toc() in ofile_print.c to set toc_byte_sex to the
107   host_byte_sex if it is passed as UNKNOWN_BYTE_SEX as a better guess.
108   Radar bug #6303685.
109 - Added support for new compressed LINKEDIT information. Radar bug #6232822.
110   - Changed otool -lv to print out dyld_info command in ofile_print.[ch] .
112 Changes for the 5.26 release (the cctools-724 release):
113 - Updated print_mach_header() in ofile_print.c to print the MH_KEXT_BUNDLE
114   file type and the MH_DEAD_STRIPPABLE_DYLIB flag.  Radar bug #6272534.
116 Changes for the 5.26 release (the cctools-722 release):
117 - Changed print_ivar_list_t() in both print_objc2_32bit.c and
118   print_objc2_64bit.c to print the pointer value for ivar offsets in hex and
119   dereference that pointer and print the real offset as well.  Radar bug
120   #5733291.
122 Changes for the 5.26 release (the cctools-715 release):
123 - Fixed problems with the printing of the Objective-C meta data in print_objc.c
124   where if an object file has a non-zero sized section from the __OBJC segment
125   at address zero it will think NULL pointer feilds point to valid data.
126   The fixes were to the get_* routines to check the addr parameter to see it it
127   has the value of zero and if so return FALSE.  Also a few checks for lists
128   like ivars being past the end of a section needed a break not a continue to
129   terminate the loop.  Radar bug #6164922.
131 Changes for the 5.26 release (the cctools-714 release):
132 - Added the missing stuff for arm in print_arch() and print_cputype() in
133   ofile_print.c. Radar bug #6155212.
135 Changes for the 5.26 release (the cctools-712 release):
136 - Picked up fix to otool(1) -Lv when running on 64-bit hosts and calling
137   ctime() in print_libraries().  Radar bug #6107717.
138 - Picked up fix to otool(1) -ov when running on 64-bit hosts in
139   print_objc_segment() in print_objc.c when trying to print the Category
140   Definition count where it was using sizeof(void *) which should have been
141   sizeof(uint32_t).  Radar bug #6107717.
142 - Fixed another integer overflow problems in print_reloc() in ofile_print.c
143   Radar bug #5796857.
145 Changes for the 5.26 release (the cctools-708 release):
146 - Fixed integer overflows problems in ofile_print.c . Radar bug #5796857.
148 Changes for the 5.26 release (the cctools-705 release):
149 - Ported to work on 64-bit hosts.  Radar bug #6022298.
151 Changes for the 5.26 release (the cctools-701 release):
152 - Added printing the meta class for Objective-C 2 to both 32bit and 64bit
153   printing. Radar bug #5909952.
155 Changes for the 5.26 release (the cctools-700 release):
156 - Fix section printf format strings in print_objc2_64bit.c to limit segment
157   and section string lengths at 16 characters.  Radar bug #5912294.
159 Changes for the 5.26 release (the cctools-699 release):
160 - Added support for armv7 disassembly.  Radar bug #5874064.
161   - Removed the old arm-opc.h header and from the Makefile.
162   - Ported the GNU binutils version of src/opcodes/arm-dis.c into arm_disasm.c
163     that supports armv7.
165 Changes for the 5.25 release (the cctools-693 release):
166 - Added support for printing the objc 2.0 metadata in 32-bit Mach-O files.
167   Radar bug #5739542.
168   - Moved print_objc2.c to print_objc2_64bit.c and changed print_objc2() to
169     print_objc2_64bit()
170   - Copied print_objc2_64bit.c to print_objc2_32bit.c and changed every where
171     a 64-bit, pointer, name or value was used to used a 32-bit version.
172   - In print_objc2_32bit.c removed the reserved field from the class_ro_t
173     as it is a 64-bit only padding field.
174 - Made a change in print_indirect_symbols() in ofile_print.c so it does not get
175   spurious error about a load command extending past the end of the load
176   commands.  Radar bug #5728302.
177 - Made a change in print_indirect_symbols() in ofile_print.c to print ABSOLUTE
178   for cputype CPU_TYPE_I386 and S_SYMBOL_STUBS sections marked with just
179   INDIRECT_SYMBOL_ABS.  Radar bug #5829053.
181 Changes for the 5.25 release (the cctools-691 release):
182 - Added support for the LC_ENCRYPTION_INFO load command.  Radar bug #5811994.
183   - Added print_encryption_info_command() in ofile_print.[ch] .
184   - Added code in print_loadcmds() in ofile_print.c for LC_ENCRYPTION_INFO.
186 Changes for the 5.25 release (the cctools-690 release):
187 - Changed the Makefile to added -DEFI_SUPPORT if EFITOOLS is not via the top
188   level Makefile.  And #ifdef'ed EFI_SUPPORT the call to
189   print_coff_reloc_section() in main.c .Radar bug #5826370.
191 Changes for the 5.25 release (the cctools-688 release):
192 - Maded changes for the new LC_LAZY_LOAD_DYLIB load command. Radar bug #5760930.
193   - Added an test for the S_LAZY_DYLIB_SYMBOL_POINTERS section type in
194     processor() in main.c .
195   - In ofile_print.c these changes were made:
196     - print_loadcmds() had a case for LC_LAZY_LOAD_DYLIB added.
197     - print_loadcmds() had a case for LC_LAZY_LOAD_DYLIB added and a test of
198       LC_LAZY_LOAD_DYLIB to print the string "LC_LAZY_LOAD_DYLIB".
199     - print_section() had a test for S_LAZY_DYLIB_SYMBOL_POINTERS to print that
200       as a string and a test for printing "(index into indirect symbol table)"
201       after the reserved1 field.
202     - print_dylib_command() had a test for LC_LAZY_LOAD_DYLIB to print that as
203       a string.
204     - print_indirect_symbols() had a test for the S_NON_LAZY_SYMBOL_POINTERS
205       section type added.
206     - print_hints() had a case for LC_LAZY_LOAD_DYLIB added.
207     - guess_indirect_symbol() had a test for the S_NON_LAZY_SYMBOL_POINTERS
208       section type added in two places.
210 Changes for the 5.25 release (the cctools-683 release):
211 - Changed the Makefile to use OBJC_ABI for -fobjc-abi-version=1 since this is
212   not supported on Tiger.
214 Changes for the 5.25 release (the cctools-682 release):
215 - Added -fobjc-abi-version=1 to the Makefile rule for building print_objc.o
216   Since we're trying to get the objective-C 1.0 definitions and not the 2.0
217   definitions, this avoids problems with platforms where 2.0 is the default.
218   Radar bug #5725807.
220 Changes for the 5.25 release (the cctools-681 release):
221 - Removed all __OPEN_SOURCE__ references in Makefile, notes, arm_disasm.c,
222   main.c, ofile_print.c and otool.h .
223 - Fixed a bug in disassembly for the i386 SSE4.1 instruction insertps
224   where it had the second parameter as a general register not a xmm register.
225   The change was in i386_disam.c in the table entry for insertps to use
226   SSE4i not SSE4ifm.  Radar bug #5650346.
228 Changes for the 5.25 release (the cctools-677 release):
229 - Changed the Makefile to not use -Wno-long-double and -no-cpp-precomp .
230   Radar bug #5563553.
232 Changes for the 5.25 release (the cctools-676 release):
233 - Added printing S_DTRACE_DOF section type to print_section() in ofile_print.c.
234 - Fixed a problem with not all the i386 bad opcode bytes being printed.  The
235   fix was at the end of i386_disassemble() in i386_disasm.c for printing the
236   bad opcode byte to loop through all the length bytes it tried to disassemble
237   before it ran into the bad opcode.  Radar bug #4760658.
238 - Fixed a problem with warning message being printed for zero length sections
239   appearing at the end of object files that should have not been printed.  The
240   test in get_sect_info() in main.c was testing for >= and not > against the
241   object size.  Radar bug #4455994.
242 - Fixed the problems with x86_64 disassembly in printing the displacements or
243   their target symbols.  The problem was the code in displacement() in
244   i386_disasm.c did not take into account that instructions with and without
245   relocation entries are assembled differently than all other Mach-O files.
246   For x86_64 if it has a relocation entry the then displacement is an offset
247   even if the symbol is defined.  If not the displacement plus the pc is the
248   target address.  As part of the fix for this the addr and sect_addr needed
249   to be passed as 64-bit value to i386_disassemble() and displacement().  Then
250   the fix in displacement() was to construct a 64-bit target guess_addr if there
251   was no relocation entry found for the x86_64 case.  Radar bug #5122861.
252 - Added support to print the PECOFF base relocation table. Radar bug #5218665.
253   - The new routine print_coff_reloc_section() was added to the files
254     coff_print.[ch].
255   - Added code in main.c to test for the (__RELOC,__reloc) section being
256     passed as the -s arguments and call print_coff_reloc_section().
257   - The routine get_sect_info() was made extern in main.c and added to
258     ofile_print.h so it could be called by print_coff_reloc_section().
259 - Fixed a bug in print_label() where the addr argument was a unsigned long not
260   a uint64_t.  Changes in ofile_print.[ch] and print_objc.c. Radar bug #5186450.
262 Changes for the 5.25 release (the cctools-675 release):
263 - Changed print_indirect_symbols() so it would not crash if given a malformed
264   object file that had a segment command with a very large number of sections.
265   The fix was to add some size checking calculating the expected size in a
266   64 bit value compare that to see if it too large.  Radar bug #5405675.
268 Changes for the 5.25 release (the cctools-673 release):
269 - Changed the sources so the arm stuff is not in the open source version.
270   Radar bug #5326431.
271   - Changed the Makefile to #ifndef __OPEN_SOURCE__ out the arm files
272   - Added #ifndef __OPEN_SOURCE__ to the following files to bracket arm code:
273     main.c, ofile_print.c, otool.h and arm_disasm.c .
275 Changes for the 5.24 release (the cctools-665 release):
276 - Added the SSE4 instructions to the i386 disassembler.  The changes are in
277   i386_disasm.c . Radar bug #4943015.
279 Changes for the 5.24 release (the cctools-659 release):
280 - Fixed a bug in the i386 disassembler to correctly assume 64-bit immediates
281   for 64-bit object files with the MOV accumulator from memory operand (the to
282   memory operand was already fixed in cctools-646 for this radar).
283   The fix was for the OA case in i386_disassemble() in i386_disasm.c to
284   test if it was a 64-bit object and pass the last argument to OPSIZE as 1 in
285   that case.  Also changed for both the OA and AO case was to change the 
286   mnemonic to "movabsl".  Radar bug 4693534.
287 - Changed print_objc2() in print_objc2.c to handle the move all metadata for
288   objc-abi-version=2 out of segments __OBJC and __OBJC into the __DATA segment.
289   The section mappings that applied were as follows:
290     __DATA,__objc_classlist  was __OBJC2,__class_list
291     __DATA,__objc_catlist  was __OBJC2,__category_list
292     __DATA,__objc_protolist  was __OBJC2,__protocol_list
293     __DATA,__objc_msgrefs  was __OBJC2,__message_refs
294     __DATA,__objc_classrefs  was __OBJC2,__class_refs
295     __DATA,__objc_superrefs  was __OBJC2,__super_refs
296     __DATA,__objc_imageinfo  was __OBJC,__image_info
297   otool -ov for LP64 examines the sections named above, and looks for both names
298   (to avoid compiler revision lock).  Radar bug #5066149.
300 Changes for the 5.24 release (the cctools-656 release):
301 - Updated ofile_print.c to print the MH_PIE and MH_NO_REEXPORTED_DYLIBS flags.
302   Radar bug #5041291.
304 Changes for the 5.24 release (the cctools-653 release):
305 - Updated ofile_print.c to handle the LC_REEXPORT_DYLIB load command.  Radar
306   bug #4986624.
307 - Added printing the (__OBJC,__image_info) section info for 32-bit Mach-O files.
308   Radar bug #4983418.
310 Changes for the 5.24 release (the cctools-649 release):
311 - Added support for printing the objc 2.0 metadata in 64-bit Mach-O files.
312   Radar bug #4560930. 
314 Changes for the 5.24 release (the cctools-648 release):
315 - Added the print_init_term_pointer_section() routine to ofile_print.[ch] and
316   code to call in process() in main.c.  This is called when the section
317   specified with -s is a of the type S_MOD_{INIT,TERM}_FUNC_POINTERS. Radar bug
318   #4880624.
319 - Changed the check in get_symbol_table_info() in main.c to for the size of
320   the symbol table extending past the end of the file so the check does not
321   overflow and later cause problems.   Also changed the check in get_toc_info()
322   get_indirect_symbol_table_info(), get_module_table_info(), get_ref_info() and
323   get_hints_table_info in main.c so it does not have the same problems.
324   Radar bug #4868234.
325 - Changed the check in print_fat_headers() in ofile_print.c for the nfat_arch
326   being too large so the check does not overflow and later cause a crash.
327   Then changed the loop printing the fat_arch structs to break out if it gets
328   past the size of the file.  Radar bug #4860769.
330 Changes for the 5.24 release (the cctools-646 release):
331 - Fixed a bug in the i386 disassembler to correctly assume 64-bit immediates
332   for 64-bit object files with the MOV accumulator to memory operand.
333   The fix was for the AO case in i386_disassemble() in i386_disasm.c to
334   test if it was a 64-bit object and pass the last argument to OPSIZE as 1 in
335   that case.  Radar bug 4693534.
336 - Fixed a bug in the i386 disassembler to print the prefix rep not repz with the
337   ins, outs, movs, lods, and stos instructions.  The change was to check the
338   delayed prefix being printed to see if it was repz and the opcode was for
339   one of the instruction then print rep instead.  The change was in in
340   i386_disassemble() in i386_disasm.c . Radar bug #4467453.
341 - Fixed a bug in the i386 disassembler for opcodes with an SIB byte and with
342   mod = 0 which means disp32 with no base.  Also changed the 32-bit disassembly
343   to not print the scale if ss = 0.  These changes were in get_operand() in
344   i386_disasm.c .  Also changed print_text() in main.c to print the raw bytes
345   for CPU_TYPE_X86_64 objects as bytes not 32-bit values.  Radar bug #4523901.
347 Changes for the 5.24 release (the cctools-645 release):
348 - Added code in print_loadcmds() in ofile_print.[ch] to parse and print
349   an LC_RPATH load command.  Radar bug #4822880.
351 Changes for the 5.24 release (the cctools-644 release):
352 - Changed print_argstrings() in main.c to work with 64-bit Mach-O core files.
353   Radar bug #4458775.
355 Changes for the 5.24 release (the cctools-642 release):
356 - Changed i386_disassemble() in i386_disasm.c to understand x86 branch
357   prediction.  Radar bug #4474395.
359 Changes for the 5.24 release (the cctools-640 release):
360 - Changed the code in ofile_print.c use CPU_SUBTYPE_MASK to mask out the
361   capability bits from the cpusubtype on comparisons.  Also added printing the
362   capability bits. Radar bug #4754462.
364 Changes for the 5.24 release (the cctools-634 release):
365 - Changed print_loadcmds() and print_linkedit_data_command() in ofile_print.c to
366   handle LC_SEGMENT_SPLIT_INFO the same as LC_CODE_SIGNATURE.  Radar bug
367   #4695477.
369 Changes for the 5.24 release (the cctools-633 release):
370 - Changed main.c, i386_disasm.[ch], ppc_disasm.[ch], m68k_disasm.[ch],
371   sparc_disasm.[ch] and ofile_print.[ch] to deal with the change of type for
372   indirect symbols to uint32_t * when ported to 64-bit. Radar bug #4407440.
374 Changes for the 5.24 release (the cctools-630 release):
375 - Picked up a change that got dropped from the cctools-622.5 release which was:
376   - Support the new x86-64 relocation entry types for signed relocations
377     with offsets.  Radar bug #4664658.
378   Radar bug #4678307.
380 Changes for the 5.24 release (the cctools-629 release):
381 - Changed print_mach_header() to print MH_DSYM symbolically. Radar bug #4511760.
382 - Added the i386 memory nop to the i386 disassembler.  Radar bug #4096964.
384 Changes for the 5.24 release (the cctools-627 release):
385 - Ported the code to unify otool(1) and otool64(1).  Radar bug #3903136.
386   - Eliminated the #include "stuff/target_arch.h" and all the *_t typedefs that
387     were used from the header, the *_VALUE and *_NAME from the source files.
388   - Eliminated the use of #ifdefs and ARCH64 from the source files.
389   - Made many many changes passing extra parameters and adding test of the
390     CPU_ARCH_ABI64 bit in the cputype to determine if it is 64-bit ofile.
391   - Changed the Makefile to only build otool(1).
393 Changes for the 5.24 release (the cctools-626 release):
394 - Added code in print_loadcmds() in ofile_print.[ch] to parse and print
395   an LC_CODE_SIGNATURE load command.  Radar bug #4588023.
396 - Changed the Makefile to not build otool(1) -static.  Radar bug #4624240 and
397   fix to that in Radar bug #4633942.
399 Changes for the 5.23 release (the cctools-620 release):
400 - Added code in print_thread_states() in ofile_print.c to print the new and
401   missing x86 thread states.  Radar bug #4491230.
402 - Changed main.c to use target_addr_t instead of unsigned long for section
403   addresses, which causes 64-bit section addresses to be displayed correctly.
404   Radar bug #4591066.
406 Changes for the 5.23 release (the cctools-619 release):
407 - Changed displacement() in i386_disasm.c and #ifdef'ed out for ARCH64 so to
408   not add the addr and lenght.  Also changed get_symbol() in i386_disasm.c and
409   #ifdef'ed out for ARCH64 then handling of scattered_relocation_info .
410   Radar bug #4483416.
412 Changes for the 5.23 release (the cctools-618 release):
413 - Added support for displaying S_16BYTE_LITERALS sections.  Radar bug #4555162.
415 Changes for the 5.23 release (the cctools-617 release):
416 - Don't display a suffix when diassembling setCC instructions for i386.  Radar
417   bug #3873844.
418 - Disassemble x86-64 MOV instructions which take 8, 16, and 32-bit immediates
419   properly.  Radar bug #4555277.
420 - Changed i386_disasm.c to allow us to mark various instructions as being
421   implicitly pointer-sized and marked those instructions like that.  Radar bug
422   #4563547.
424 Changes for the 5.23 release (the cctools-614 release):
425 - Changed ofile_print.c to add macros that rename structure members of the 
426   ppc and i386 thread states for Unix conformance.  Radar bug #4508798.
428 Changes for the 5.23 release (the cctools-610 release):
429 - Added a few ifdef x86_THREAD_STATE64 to a few places to ofile_print.c
430   to allow it to build on Tiger.  Radar bug #4535019.
432 Changes for the 5.23 release taken from cctools-590.43 (the cctools-610
433 release):
434 - Added support for disassembling the Vanderpool instructions to the i386
435   disassembler.  Was radar bug #4427573 in cctools-590.43. Radar bug #4534436.
437 Changes for the 5.22 release (the cctools-590.37.3 release):
438 - Add back support for the E9 form of the jmp instruction for x86-64
439   disassembly. Radar bug #4489937.
440 - Use a 'q' suffix rather than an 'l' suffix when disassembling call and jmp
441   instructions for x86-64. Radar bug #4483621.
443 Changes for the 5.22 release (the cctools-590.36.3 release):
444 - Add support for the new relocation entry types for x86-64. Radar bug
445   #4475165.
446 - Print %cs, %fs, and %gs as 64-bit values in x86_64 thread states in otool.
447   Radar bug #4468148.
448 - Disassemble pushq instructions with extended x86_64 registers correctly.
449   Radar bug #4476218.
451 Changes for the 5.22 release (the cctools-590.36.1 release):
452 - Fix suffixes in x86-64 disassembly for push, pop, and moves to and from
453   control and debug registers, as well as disassembly of short jumps. Radar
454   bug #4467441.
456 Changes for the 5.22 release (the cctools-590.34.1 release):
457 - Disassemble x86-64 instructions with SIB bytes correctly. Radar bug
458   #4436608.
459 - Disassemble x86-64-specific instructions properly and don't recognize
460   i386-specific instructions when disassembling x86-64 code. Radar bug
461   #4437391.
462 - Disassemble the movslq instruction correctly for x86-64. Radar bug #4437197.
463 - Eliminated extraneous suffixes from disassembly of some i386 and
464   x86-64 instructions. Radar bug #4441526.
465 - Fixed x86-64 disassembly for moves to and from control and debug registers.
466   Radar bug #4439907.
468 Changes for the 5.22 release (the cctools-590.31.2 release):
469 - Added printing x86_THREAD_STATE64 in otool64.  Radar bug #4424303.
471 Changes for the 5.22 release (the cctools-590.31.1 release):
472 - Added support for the x86_64 architecture.  Radar bug #4345090.
473 - Added support for the Merom New Instructions.  Radar bug #4407298.
474 - Improved otool's output for a number of i386 instructions.
476 Changes for the 5.20 release (the cctools-590.25 release):
477 - Changed print_uuid_command() in ofile_print.c to use two line for the uuid[]
478   values.  Radar bug #3415593.
480 Changes for the 5.20 release (the cctools-590.24 release):
481 - Added support for DWARF.  Radar bug #4367423.
482   - Added printing S_ATTR_DEBUG to print_section() in ofile_print.c.
483   - Added print_uuid_command() to ofile_print.[ch]
485 Changes for the 5.20 release (the cctools-590.23 release):
486 - Changed print_thread_states() in ofile_print.c for the current i386 thread
487   states (#if i386_THREAD_STATE == 1 case) so that it does use the fields
488   of the i386_float_state struct when i386_EXCEPTION_STATE_COUNT is defined.
489   Radar bug #4350771.
491 Changes for the 5.20 release (the cctools-590.20 release):
492 - Removed the warnings when building. Radar bug #4340147.
493   - Added -fno-builtin-round to the Makefile.
495 Changes for the 5.19 release (the cctools-590.15 release):
496 - Adding printing SG_PROTECTED_VERSION_1 in print_segment_command() in
497   ofile_print.c .  Radar bug #4298526.
499 Changes for the 5.19 release (the cctools-590.14 release):
500 - Changed print_thread_states() in ofile_print.c for the current i386 thread
501   states (#if i386_THREAD_STATE == 1 case) so that it does not use the fields
502   of the i386_float_state struct.  Radar bug #4303606.
504 Changes for the 5.19 release (the cctools-590.12 release):
505 - Added printing MH_ALLOW_STACK_EXECUTION print_mach_header() in ofile_print.c .
506   Radar bug #4281171.
508 Changes for the 5.19 release (the cctools-590.11 release):
509 - Changed print_thread_states() in ofile_print.c for the current i386 thread
510   states (#if i386_THREAD_STATE == 1 case) so that it does not print the
511   obsolete1, obsolete2 or obsolete3 fields (or the same fields with the names
512   fpkind, initialized, exc_status via the #defines).  Removed the three added
513   #defined's from the change below now that they are no longer needed.  Radar
514   bug #4282026.
516 Changes for the 5.19 release (the cctools-590.10 release):
517 - Added three #defined's to ofile_print.c:
518     #define obsolete1 fpkind
519     #define obsolete2 initialized
520     #define obsolete3 exc_status
521   allow the source to build on Leopard with different fields in the struct
522   i386_float_state in <mach-o/i386/thread_status.h> . Radar bug #4279472.
523 - Added printing S_ATTR_SELF_MODIFYING_CODE to print_section() in ofile_print.c.
524   Radar bug #4202415.
526 Changes for the 5.19 release (the cctools-590.8 release):
527 - Changed print_thread_states() in ofile_print.c adding a #if for the new and
528   old i386 thread states.  And added code to print the new thread states.
529   Radar bug #4200908.
531 Changes for the 5.18 release (the cctools-589 release):
532 - Changed the Makefile and added a LEGACY macro with two defines to allow
533   the code to use the old field name "environ" from the i386 structs.
534   Radar bug #4113580.
536 Changes for the 5.18 release (the cctools-583 release):
537 - Changed the Makefile so that when RC_XBS is set to YES then the compiler
538   options -MD and -dependency-file as well as the md(1) program are not used.
539   Radar bug #4029936.
541 Changes for the 5.18 release (the cctools-580 release):
542 - Fixed the i386 opcode for the ud2 instruction.  It was disassembled from
543   0x0f 0xff. And should be disassembled from 0x0f 0x0b according to the Intel
544   manual.  The change was in i386_disasm.c . Radar bug #4085845.
545 - Changed the PowerPC disassembler to use "mtocrf" instead of "mtcrf" when bit
546   11 is set and likewise "mfocrf" instead "mfcr" in ppc_disasm.c.  Radar bug #
547   4034280.
548 - Changed the i386 disassembler to print constants so they would assemble
549   with the same width as they were in the object file.  The change was in
550   print_operand() in i386_disasm.c. To see if the the value_size is smaller
551   than 32-bits and signed, then sign extend it and force the size to be 32-bits.
552   Radar bug #4079507.
554 Changes for the 5.18 release (the cctools-578 release):
555 - Added support for sse3 instructions.  Changes were in i386_disasm.c .
556   Radar bug #4014327.
558 Changes for the 5.17 release (the cctools-571 release):
559 - Changed the Makefile to treat SUPanWheat the same as Panther to build for
560   a Mac OS X 10.3 (Panther) system.  Radar bug #3979451.
562 Changes for the 5.17 release (the cctools-568 release):
563 - Changed print_section() in ofile_print.c to print the section type
564   S_INTERPOSING.  Radar bug #3965794.
566 Changes for the 5.17 release (the cctools-563 release):
567 - Changed print_mach_header() in ofile_print.c to print the new flags
568   MH_WEAK_DEFINES and MH_BINDS_TO_WEAK.  Radar bug #3799069.
570 Changes for the 5.17 release (the cctools-562 release):
571 - Changed print_thread_states() in ofile_print.c to use cpu.vrsave instead of
572   cpu.pad.  Radar bug #3930480.
574 Changes for the 5.17 release (the cctools-558 release):
575 - Fixed a problem in print_hints() in ofile_print.c that would always cause the
576   check about Inconsistent mh_sizeofcmds to be printed if the verbose option
577   was not used.  Radar bug #3902811.
579 Changes for the 5.17 release (the cctools-557 release):
580 - Removed support for the INTERIM_PPC64.  The changes were to remove the
581   #ifdef INTERIM_PPC64 source changes in main.c and ofile_print.c . Radar bug 
582   #3600419.
584 Changes for the 5.17 release (the cctools-554 release):
585 - Fixed a problem with the sorted_symbols not being correctly sorted causing
586   symbol names not to be printed.   The problem was the sym_compare() routine
587   in main() used for the qsort() routine did not have its parameters updated
588   to struct symbol * from nlist_t * for the 64-bit port work.  Radar bug
589   #3889188.
591 Changes for the 5.17 release (the cctools-551 release):
592 - Changed print_thread_states() in ofile_print.c to handle printing a
593   PPC_THREAD_STATE64.  Radar bug #3866755.
595 Changes for the 5.17 release (the cctools-546 release):
596 - Fixed a bug in print_mach_header() in ofile_print.c that was missing a case
597   statement for CPU_SUBTYPE_POWERPC_970 and printing "ppc970".  Radar bug
598   #3825281.
600 Changes for the 5.17 release (the cctools-533 release):
601 - Changes to support 32-bit & 64-bit tools in the same binary.  Radar bug
602   #3793394.
603   - Changed the code in main.c, ofile_print.c and objc_print.c to use the
604     swap_*_t new macros from "stuff/target_arch.h".
605   - In process() in main.c added a new ofile_mh local variable and added a few
606     ifdef ARCH64 to set it to ofile->mh64 or ofile->mh.  And changed places
607     where it used ofile->mh to ofile_mh.
609 Changes for the 5.17 release (the cctools-531 release):
610 - Changed print_segment_command() in ofile_print.c to print the fileoff and
611   filesize fields with the correct format depending on the field with for
612   ARCH64.  Radar bug #3781406.
614 Changes for the 5.17 release (the cctools-529 release):
615 - Made changes to support 64-bit tools. Radar bug #3600431.
616   - Changed the Makefile to build otool in a sub-directory and building of
617     otool64 in a different sub-directory.  Things are no longer built with
618     -DINTERIM_PPC64 and otool64 is built with -DARCH64 and linked with
619     libstuff64 .
620   - Added the include "stuff/target_arch.h" to the following files:
621       i386_disasm.c
622       m68k_disasm.c
623       main.c
624       ofile_print.c
625       ppc_disasm.c
626       print_objc.c
627       sparc_disasm.c
628       i386_disasm.h
629       m68k_disasm.h
630       ofile_print.h
631       ppc_disasm.h
632       sparc_disasm.h
633       hppa_disasm.c
634       i860_disasm.c
635       m88k_disasm.c
636       hppa_disasm.h
637       i860_disasm.h
638       m88k_disasm.h
639     and changed the uses of structs, constants and names that are different for
640     64-bit files to the typedefs in "stuff/target_arch.h".
641   - In all places that used sorted_symbols this was changed to the new type
642     in "stuff/symbol.h" to struct symbol.  Which contains a name and an nlist_t.
643   - Changed the places in main.c and ofile_print.c with #ifdef DINTERIM_PPC64
644     to have code for 64-bit architectures.
646 Changes for the 5.16 release (the cctools-528.5 release):
647 - Changed the Makefile to treat MuonSeed the same as MuonPrime to build for
648   a Mac OS X 10.3 (Panther) system.
650 Changes for the 5.16 release (the cctools-528 release):
651 - Print the new GENERIC_RELOC_LOCAL_SECTDIFF reloc, handle it in
652   i386_disasm.c.
654 Changes for the 5.16 release (the cctools-527 release):
655 - Print the new PPC_RELOC_LOCAL_SECTDIFF reloc.
657 Changes for the 5.16 release (the cctools-526 release):
658 - Fixed warnings for the changes in mach-o headers for types changing from
659   unsigned long to uint32_t and from long to int32_t.  Radar bug #3744082.
660   - Changed a number of uses of "%lu" to "%u" and "%ld to "%d" in ofile_print.c.
661 - Added support for 3DNow! instructions.  Changes were in i386_disasm.c .
662   Radar bug #3737535.
664 Changes for the 5.16 release (the cctools-524 release):
665 - Fixed a bug in print_fat_headers() in ofile_print.c in the loop that was
666   looking for illegal duplicate architectures.  The loop was using unsigned
667   indexes and testing for j < i - 1 without checkin that i could be zero.
668   Radar bug #3709358.
670 Changes for the 5.16 release (the cctools-522 release):
671 - Fixed the problem with the changes to libc in Radar bug #3535291 causing the
672   symbols ___fegetfltrounds and ___fpclassifyd to be undefined.
673   Changed the Makefile to cause -lm_static to be used for releases after
674   Panther.  And changed main.c to remove the ifdef's around the stubs
675   __fpclassifyd() and __fpclassify(). Radar bug #3685865.
677 Changes for the 5.16 release (the cctools-520 release):
678 - Fixed a bug in the disassembly of the i386 movdq2q instruction.  Radar bug
679   #3488840.
680 - Fixed a bug in the disassembly of the i386 move word to accumulator
681   instructions.  It was incorrectly using the data-size attribute to determines
682   the size of the offset.  For move to accumulator instructions the
683   address-size attribute of the instruction determines the size of the offset.
684   Radar bug #3515794.
686 Changes for the 5.16 release (the cctools-509 release):
687 - Added #ifdef INTERIM_PPC64 to the source changes to support the interim ppc64
688   file format.  And added -DINTERIM_PPC64 to the Makefile.
689 - Changed print_thread_states() in ofile_print.c to treat CPU_TYPE_POWERPC64 the
690   same as CPU_TYPE_POWERPC and CPU_TYPE_VEO.
692 Changes for the 5.16 release (the cctools-501 release):
693 - Added the printing of MH_SUBSECTIONS_VIA_SYMBOLS to print_mach_header() in
694   ofile_print.c .  Radar bug #2284500.
696 Changes for the 5.16 release (the cctools-500 release):
697 - Added printing S_ATTR_LIVE_SUPPORT and S_ATTR_NO_DEAD_STRIP to print_section()
698   in ofile_print.c .  Radar bug #2284500.
700 Changes for the 5.16 release (the cctools-499.1 release):
701 - Made changes to support the interim ppc64 file format.  Radar bug #3562133
702   and #3562232.
703   - Changed print_text() in main.c to treat CPU_TYPE_POWERPC64 the same as
704     CPU_TYPE_POWERPC and CPU_TYPE_VEO.
705   - Changed print_relocs() in ofile_print.c to print "quad" for an
706     r_length == 3 and cputype == CPU_TYPE_POWERPC64 and r_type ==
707     PPC_RELOC_VANILLA in 2 places.
708   - Changed print_indirect_symbols() and guess_indirect_symbol() in
709     ofile_print.c to set the stride to 8 for CPU_TYPE_POWERPC64 otherwise 4.
710   - Updated print_arch(), print_cputype(), print_mach_header(), print_relocs()
711     and print_r_type() in ofile_print.c for CPU_TYPE_POWERPC64 to be the same
712     as CPU_TYPE_POWERPC.
714 Changes for the 5.14 release (the cctools-498 release):
715 - Added code to disassemble the PowerPC pseudo-instruction 'jmp' as the
716  non-linking form of 'jbsr' in ppc_disasm.c .  Radar bug #3458928.
718 Changes for the 5.13.2 release (the cctools-495.3 release):
719 - Updated print_mach_header() in ofile_print.c to print the new mach_header
720   flags MH_PREBINDABLE, MH_ALLMODSBOUND and MH_CANONICAL.  Radar bug #3176679.
722 Changes for the 5.12 release (the cctools-489 release):
723 - Added stub functions for the notify API in the new file notify.c and picked
724   up notify.h to allow otool to build on Panther7B40.  Radar bug #3378781.
726 Changes for the 5.12 release (the cctools-477 release):
727 - Added stub functions for __fpclassifyd(), for ppc, and __fpclassify() for i386
728   to the end of main.c to allow otool to link with just libc.a given the new
729   code in __ldtoa().  Radar bug #3271830.
731 Changes for the 5.12 release (the cctools-476 release):
732 - Fixed a bug in the i386 disassembly of movd instructions with the 0x7e sub
733   opcode.  Radar bug #3268255.
735 Changes for the 5.12 release (the cctools-472 release):
736 - Fixed a bug in disassembling the movq SSE2 instruction opcodes.  The operands
737   for register to memory and memory to register were switch.
738   Radar bug #3250086.
740 Changes for the 5.12 release (the cctools-468 release):
741 - Added support for the new use of the previously unused value 3 for r_length
742   to mean that the conditional branch was predicted using the Y-bit and the
743   sign of the displacement and opcode.  Radar bug #3223045.
744   - Changed in print_r_type() in ofile_print.c to take a new boolean parameter
745     predicted to tell it to print "+/-" after the r_type.
746   - Changed print_relocs() in ofile_print.c to set a local boolean predicted
747     to TRUE when r_length is 3 and pass it to print_r_type().
748   - Added the new routine get_reloc_r_length() to ppc_disasm.c .
749   - Changed the routine get_reloc() to get_reloc_r_type() in ppc_disasm.c .
750   - Change bc() in ppc_disasm.c to take 3 new parameters sect_offset, relocs and
751     nrelos so it can look for a relocation entry with a r_length value of 3 to
752     know to always print the prediction in this case.
754 Changes for the 5.12 release (the cctools-467 release):
755 - Added support for the PPC_RELOC_LO14_SECTDIFF relocation type used with
756   double word load/store instructions. Radar bug #3218027.
757   - Changed print_relocs() and in ofile_print.c to expect and print a pair
758     relocation entry for PPC_RELOC_LO14_SECTDIFF relocation type.
759   - Changed the 14th entry in ppc_r_types[] from " 14 (?) " to "LO14DIF " in
760     ofile_print.c that print_r_type() uses.
761   - Changed print_immediate() in ppc_disasm.c to handle PPC_RELOC_LO14_SECTDIFF.
763 Changes for the 5.12 release (the cctools-466 release):
764 - Fixed the incorrect cast on the comparison of the nlist struct's n_strx field
765   where the value being compared to was casted to a long.  The correct fix was
766   to cast n_strx to an unsigned long.  This is because the test is:
768         if(something.n_un.n_strx >= string_size)
769             error(...)
771   And the incorrect cast like this:
773         if(something.n_un.n_strx >= (long)string_size)
774             error(...)
776   will not catch the case when n_strx is negative.  So the correct cast is:
778         if((unsigned long)something.n_un.n_strx >= string_size)
779             error(...)
781   which was made in print_indirect_symbols() in ofile_print.c and a number of
782   other places.
784 Changes for the 5.12 release (the cctools-465 release):
785 - Fixed the disassembly of "movd -12(%ebp),%mm0" which incorrectly disassembled
786   without the displacement.  Radar bug #3206331.
788 Changes for the 5.12 release (the cctools-464 release):
789 - Made changes to build cleanly with gcc3.3
790   - Removed -Wno-precomp from the Makefile
791   - Fixed warnings for "comparison between signed and unsigned" in main.c,
792     ofile_print.c, m68k_disasm.c, i860_disasm.c, m88k_disasm.c, i386_disasm.c,
793     ppc_disasm.c, hppa_disasm.c, sparc_disasm.c, and print_objc.c .
795 Changes for the 5.11 release (the cctools-463 release):
796 - Added support for the MH_DYLIB_STUB filetype. Radar bug #3193744.
797   - Changed processor() in main.c when printing the section contents from
798     an MH_DYLIB_STUB that has indirect symbol table entries to force the section
799     size to zero and not try to print the contents that were stripped.
800   - Added the printing of the MH_DYLIB_STUB filetype to print_mach_header() in
801     ofile_print.c .
803 Changes for the 5.11 release (the cctools-450 release):
804 - Fixed the disassembly of movd instructions that used GPR registers so things
805   like:
806         movd %edx, %xmm0
807         movd %xmm0, %edx
808   disassembled correctly.  Radar bug #3117176.
810 Changes for the 5.11 release (the cctools-454 release):
811 - Fixed a bug in disassembling a bad i386 instruction that had a value for a
812   segment register greater than 6.  The array SEGREG[] was changed to add two
813   more entries to cover all 8 possible values with the last two values being
814   "%?6" and "%?7" for the illegal values.  Radar bug #3144846.
816 Changes for the 5.11 release (the cctools-439 release):
817 - Made the needed changes to main.c and ofile_print.c for VEO support.  Radar
818   bug #3068161.
819 - Added the disassembly of the SSE2 instructions.  Radar bug #2972491.
820 - Changed the disassembly of i386 opcode "fildl" and "fistpl" to not use the
821   'l' suffix because of the added i386 opcode "fildll" to be the same as "fildq"
822   and "fistpll" to be the same as "fistpq" (done for Radar bug #2909568).
824 Changes for the 5.11 release (the cctools-437 release):
825 - Fixed the disassembly of jbsr ppc instruction's (those with JBSR relocation
826   entries) so the "true target address" is correctly printed.  This fix is in
827   print_immediate() in ppc_disasm.c where the value should just be other_half
828   not "other_half + value".  Radar bug #3046962.
829 - Fixed the printing of the pair JBSR relocation when it is a scattered
830   relocation to point at the r_value as the other half "<- other_half".  This
831   fix is in print_relocs() in ofile_print.c.  Radar bug #3046962.
832 - Added the disassembly of the fxsave instruction in i386_disasm.c. Radar bug
833   #2972491.
835 Changes for the 5.10 release (the cctools-422 release):
836 - Added the disassembly of some pentium pro instructions in i386_disasm.c.
837   Radar bug #2928507.
838 - Added printing S_ATTR_STRIP_STATIC_SYMS to print_section() in ofile_print.c .
839   Radar bug #2945659.
841 Changes for the 5.10 release (the cctools-421 release):
842 - Added printing MH_NOFIXPREBINDING in print_mach_header() in ofile_print.c .
843   Radar bug #2941669.
845 Changes for the 5.10 release (the cctools-416 release):
846 - Removed the printing S_ATTR_WEAK_DEFS to print_section() in ofile_print.c.
847   Radar bug #2919646.
848 - Added the -m option to not use the archive(member_syntax) for file names.
849   Radar bug #2904708.
851 Changes for the 5.10 release (the cctools-414 release):
852 - Added printing S_ATTR_WEAK_DEFS to print_section() in ofile_print.c.
853   Radar bug #2898558.
855 Changes for the 5.10 release (the cctools-409.1 release):
856 - Changed print_literal8() in ofile_print.c to use:
857         /* l0 is the high word, so this is equivalent to if(isfinite(d)) */
858         if((l0 & 0x7ff00000) != 0x7ff00000)
859   instead of:
860         if(finite(d))
861   so otool will not have to link with libm.  The Makefile was also changed.
863 Changes for the 5.10 release (the cctools-403 release):
864 - Removed the hack in the Makefile to use cc when $(CC) is gcc3 when linking
865   to work that was working around Radar bug #2814731 now that gcc-1009 fixes it.
867 Changes for the 5.10 release (the cctools-400 release):
868 - Changed the Makefile back to again use the -dependency-file with gcc.
869 - Changed the hack in the Makefile to use cc when $(CC) is gcc3 when linking
870   to work around Radar bug #2814731.
872 Changes for the 5.10 release (the cctools-396 release):
873 - Added a hack in the Makefile to use cc when $(CC) is gcc when linking
874   to work around Radar bug #2814731.
875 - Changed the Makefile to not use the -dependency-file with gcc as well as
876   mwccppc.
877 - Added an include <string.h> to m68k_disasm.c, i860_disasm.c, m88k_disasm.c,
878   and ppc_disasm.c to pick up the prototype for memcpy().
880 Changes for the 5.10 release (the cctools-393 release):
881 - Added code to ofile_print.c to deal with the new LC_LOAD_WEAK_DYLIB command.
883 Changes for the 5.10 release (the cctools-392 release):
884 - Changed the call to ofile_process() in main.c to pass TRUE for the new
885   use_member_syntax parameter.  Radar bug #2730127.
887 Changes for the 5.10 release (the cctools-389 release):
888 - Added the -D option to print just the LC_ID_DYLIB name.
890 Changes for the 5.10 release (the cctools-388 release):
891 - Fixed the spelling of Inconsistant to be Inconsistent in main.c and
892   ofile_print.c.  Radar bug #2783706.
894 Changes for the 5.10 release (the cctools-386 release):
895 - Added code in print_loadcmds() in ofile_print.c to parse and print
896   LC_PREBIND_CKSUM load commands.
898 Changes for the 5.9 release (the cctools-370 release):
899 - Added printing MH_NOMULTIDEFS in print_mach_header() in ofile_print.c .
900 - Added code in main() in main.c and the routine print_hints() to ofile_print.c
901   to print the two-level namespace hints.
903 Changes for the 5.9 release (the cctools-367 release):
904 - Added code in print_loadcmds() in ofile_print.c to parse and print
905   LC_SUB_LIBRARY load commands.  Radar bug #2697458
906 - Added code in print_loadcmds() in ofile_print.c to parse and print
907   LC_TWOLEVEL_HINTS load commands.  Radar bug #2558069.
909 Changes for the 5.9 release (the cctools-360 release):
910 - Picked up the changes to print_objc.c from Radar bug #2660421 (open source
911   submittion).
913 Changes for the 5.9 release (the cctools-359 release):
914 - Added -Wno-long-double to shutup the compiler for
915   <architecture/m88k/fp_regs.h>.
917 Changes for the 5.8 release (the cctools-357 release):
918 - Added support for the CPU_SUBTYPE_POWERPC_7450 in ofile_print.c . Radar bug
919   #2599869.
921 Changes for the 5.8 release (the cctools-355 release):
922 - Changed the printing of sections marked with S_ATTR_SOME_INSTRUCTIONS so that
923   they are disassembled.  This is to aid coalesced sections created by the
924   compiler that are not marked with S_ATTR_PURE_INSTRUCTIONS as they contain
925   jump tables (Radar bug #2580311).
927 Changes for the 5.8 release (the cctools-342 release):
928 - Added a print_sub_client_command() to ofile_print.c . Radar bug #2533649.
929 - Added printing MH_TWOLEVEL and MH_FORCE_FLAT to print_mach_header() in
930   ofile_print.c. Radar bug #2534043.
932 Changes for the 5.8 release (the cctools-341 release):
933 - Changed print_immediate() in ppc_disasm.c to also check for PPC_RELOC_SECTDIFF
934   as it is incorrectly printing out "Stray PPC_RELOC_PAIR relocation entry".
935   This is happening because switch tables for (__TEXT,__coalesced_text) sections
936   are placed in line.  This is done because ld(1) complains about illegal
937   references to coalesced symbols being used with section difference relocation
938   entries.
940 Changes for the 5.7 release (the cctools-336 release):
941 - Added printing NO_TOC to print_section(). Radar bug #2494286.
943 Changes for the 5.7 release (the cctools-334 release):
944 - Added printing LAZY_INIT to print_mach_header() in ofile_print.c.  Radar bug
945   #2490396.
947 Changes for the 5.7 release (the cctools-329 release):
948 - Changed iinit and ninit fields of the struct dylib_module in
949   print_module_table() in ofile_print.c to iinit_iterm and ninit_nterm and
950   printed them as 2 numbers each.  Radar bug #2469527.
952 Changes for the 5.7 release (the cctools-328 release):
953 - Changed the Makefile so that it would use -L/usr/local/lib/system
954   moving forward and -L/Local/Developer/System when RC_RELEASE is Gonzo, Bunsen
955   or Beaker.
957 Changes for the 5.7 release (the cctools-327 release):
958 - Changed the Makefile so that it would use -L/AppleInternal/Developer/System
959   moving forward and -L/Local/Developer/System when RC_RELEASE is Gonzo, Bunsen
960   or Beaker.
962 Changes the 5.6 release (the cctools-320 release):
963 - Added support for the new LC_SUB_FRAMEWORK load command to support "Guarding
964   against direct linking of non-umbrella frameworks".  The files ofile_print.c
965   and ofile_print.h were updated. Radar bug 2443212.
967 Changes the 5.6 release (the cctools-316 release):
968 - Added printing the mach header flag MH_SPLIT_SEGS to ofile_print.c.
970 Changes the 5.5 release (the cctools-307 release):
971 - Fixed some bugs in print_relocs() in ofile_print.c for ppc section difference
972   relocations.  It was incorrectly printing "half = 0x????\n" some times which
973   lead to an extra "\n" and difficulty in determining which relocation entry an
974   error message was refering to due to the extra lines in the output.
975 - Added support for the CPU_SUBTYPE_POWERPC_7400 in ofile_print.c .
976   Radar bug #2397523.
977 - Fixed a bug in get_sect_info() where it was not comparing the segment name
978   in an object file.  This caused it to pick the first section if their were
979   segments with the same section names.
981 Changes the 5.4 release (the cctools-300 release):
982 - Added printing the new LC_ROUTINES load command.
983 - Added the S_COALESCED section type in section structures.
985 Changes the 5.3 release (the cctools-292 release):
986 - Added some braces to get rid of the warning message from the egcs compiler
987   "warning: suggest explicit braces to avoid ambiguous `else'".  This was done
988   to m68k_disasm.c, i860_disasm.c and sparc_disasm.c .
989 - Changed the return type of main() in main.c from void to int to remove a
990   warning from the egcs compiler.  Also changed the exit()'s calls at the end to
991   return()'s.
993 Changes for the 5.3 release, (the cctools-286 release):
994 - Added support for printing S_MOD_TERM_FUNC_POINTERS in print_section() in
995   ofile_print.c .
997 Changes for the 5.3 release, (the cctools-285 release):
998 - Fixed the i386 opcode of cmpxchg from 0x0fa6 (as it is in the i486 manual) to
999   0x0fb0 which is correct (as it is in the Pentium manual).
1001 Changes for the 5.3 release, MacOS X bring up (the cctools-282 release):
1002 - Changed the printing of the ppc_thread_state to not use bit fields for srr1,
1003   cr and exr to match the ppc_thread_state for Rhapsody/MacOS X.
1004 - Changed the Makefile to allow for RC_OS=macos for MacOS X builds.
1005 - Added a few casts in places to get it to compile with the MetroWerks compiler
1006   without -relax_pointers.
1007 - To get around the problem with the MetroWerks compiler using -framework
1008   System when -static is used the Makefile was changed to if out the -static
1009   flag and -static link for mwcc.
1011 Changes for the 5.2 release (the cctools-274 release):
1012 - Removed the uses of CPU_SUBTYPE_586SX in ofile_print.c and added support for
1013   new intel subtypes. Radar bug #2231830.
1015 Changes for the 5.2 release (the cctools-272 release):
1016 - Removed the reference to the header file "objc/NXString.h" in print_objc.c as
1017   this file is going away.  print_objc.c now just defines the layout of struct
1018   objc_string_object directly.  Radar bug #2231010.
1020 Changes for the 5.2 release (the cctools-267 release):
1021 - Added all the suport needed for the 4.4BSD extended format #1 for long names.
1022   Radar bug #1670513.
1024 Changes for the 5.1 release (the cctools-261 release):
1025 - Added disassembling dcba to ppc_disasm.c.
1026 - Updated print_special_register_name() in ppc_disasm.c to add the special
1027   register names to match the assembler.
1028 - Changed otool's use of CPU_SUBTYPE_POWERPC_740 to CPU_SUBTYPE_POWERPC_750.
1029 - Fixed a bug that in processor() in main.c where indirect_symbols and
1030   nindirect_symbols were not initialized.  This caused printing of symbol
1031   stub sections to to call guess_indirect_symbol() with bad results (print
1032   incorrect stuff or crash).
1033 - Fixed a bug in the ppc disasembler where it was printing the prediction of
1034   branch conditionals which had the BO 1z1zz (20 decimal) encoding.  See page
1035   4-53 of the PowerPC green book.
1037 Changes for the 5.1 release (the cctools-260 release):
1038 - Added -c to all the install commands in the Makefile.
1040 Changes for the 5.1 release (the cctools-255 release):
1041 - Added disassembling the VMX opcodes.  Radar bug 2004760.
1043 Changes for the 5.1 release (the cctools-253 release):
1044 - Changed the Makefile to only create the needed dst directories.
1046 Changes for the 5.1 release (the cctools-252 release):
1047 - Changed the ppc dissassembly of "addis rX,0,immed" to "lis rX,immed" and
1048   "addi rX,0,immed" to "li rX,immed".
1049 - Added guess_indirect_symbol() to be used by the disassemblers to print as a
1050   comment the stub name.  Changed the ppc, i386, m68k and sparc disassemblers
1051   to use this.
1053 Changes for the 5.1 release (the cctools-247 release):
1054 - Added MKDIRS if code to the Makefile to build native on Rhapsody.
1055 - Changed the Makefile to use gnutar instead of tar because it works on Rhapsody
1056   where tar does not.
1057 - Changed the Makefile to install otool in /usr/bin for RC_OS
1058   teflon and in /bin for RC_OS nextstep (Radar 1673496).
1060 Changes for the 5.0 release (the cctools-242 release):
1061 - Removed the non-existant instructions "stmd", "mtpmr" and "mfpmr".
1063 Changes for the 5.0 release (the cctools-240 release):
1064 - Changed printing the first agrument of fcmpo and fcmpu to crX not just a
1065   number.
1066 - Changed ldu, lfdu, lfsu, lhau, lwzu, stbu, stdu, stfdu, stfsu, sthu and stwu
1067   to print the RA parameter r0 not 0 when it is zero.  Note these are an invalid
1068   forms.
1069 - Changed lbzx, ldx, lfdx, lfsx, lhax, lhbrx, lhzx, lwax, lwbrx, lwzx, stbx,
1070   stdx, stfdx, stfiwx, stfsx, sthbrx, sthx, stwbrx, stwx, dcbi, eciwx, ecowx,
1071   icbi to print the RA parameter as 0 not r0 when it is zero.
1072 - Removed the non-existant instruction "lmd".
1074 Changes for the 5.0 release (the cctools-236 release):
1075 - Added disassembling mulld[o][.] .
1076 - Changed printing the first operand of mcrfs and mcrxr to print it as a cr
1077   register name not just a number.
1078 - Changed printing the operands of mcrf to print them as cr register names not
1079   just numbers.
1080 - Added the -Z to don't use simplified ppc mnemonics in disassembly.  Code was
1081   added for "cmp", "bc", "cmpi", "cmpl" and "cmpli".
1082 - Added disassembling the "mttbl rS" for "mtspr 284,rS" and "mttbu rS" for
1083   "mtspr 285,rS".
1084 - Removed the incorrect PowerPC disassembly of mttb and mttbu.
1086 Changes for the 5.0 release (the cctools-235 release):
1087 - Added printing the PPC_RELOC_JBSR and disassembling with it.
1088 - Removed the #if 0 code that was replaced by print_relocs().
1089 - Fixed a bug with otool -s __TEXT __text core dumping.  Line 365 in main.c
1090   needs an else (bug #79050).
1091 - Added the PowerPC disassembly of the eciwx, ecowx, fres[.], fsqrts[.],
1092   frsqrte[.], fsel[.], fsqrt[.], stfiwx and tlbsync instructions.
1094 Changes for the 5.0 release (the cctools-227 release):
1095 - Changed print_argstrings() used for -c to use get_stack_addr_from_flag()
1096   from libstuff and removed all the *_usrstack.c files.
1097 - Made otool -c work for PowerPC core files.
1099 Changes for the 5.0 release (the cctools-224 release):
1100 - Changed including <ranlib.h> to <mach-o/ranlib.h> which uses unsigned long
1101   instead of off_t (64 bits on Teflon).
1102 - Added printing of the ppc_float_state_t and ppc_exception_states.
1103 - Updated ofile_print.c with the updated PowerPC subtypes.
1105 Changes for the 5.0 release (the cctools-221 release):
1106 - Picked up the changes for the correct Rhapsody thread state changes into
1107   ofile_print.c.
1109 Changes for the 5.0 release (the cctools-215 release):
1110 - Fixed disassembly for the PowerPC instructions mftb and mftbu.
1112 Changes for the 5.0 release (the cctools-214 release):
1113 - Added support for PowerPC disassembly using SECTDIFF relocation types.
1114 - Added support for printing PPC_RELOC_HI16_SECTDIFF, PPC_RELOC_LO16_SECTDIFF,
1115   and PPC_RELOC_HA16_SECTDIFF relocation types.
1117 Changes for the 5.0 release (the cctools-212 release):
1118 - Changed tlbiex to tlbie and slbiex to slbie (also corrected the opcodes).
1119 - Added the ppc specific cpu subtypes to be printed.
1121 Changes for the 5.0 release (the cctools-210 release):
1122 - Changed mulwd to mulhw .
1123 - Changed mull to mullw and mullo to mullwo .
1124 - Changed m98k to ppc.
1126 Changes for the 4.0 release (the cctools-189 release):
1127 - Updated objc_print.c to reflect changes in Objc-C runtime structures.
1129 Changes for the 4.0 release (the cctools-188 release):
1130 - Added printing the __cstring_object section like the __string_object section
1131   (bug #61840).
1133 Changes for the 4.0 release (the cctools-185 release):
1134 - Printed the time stamp for -Lv for dynamic libraries.
1136 Changes for the 4.0 release (the cctools-173 release):
1137 - Added printing the LC_PREBOUND_DYLIB load command.
1139 Changes for the 4.0 release (the cctools-170 release):
1140 - Added printing MH_PREBOUND.
1142 Changes for the 4.0 release (the cctools-168 release):
1143 - Picked up the sparc changes to sparc_disasm.c .
1144 - Picked up the sparc changes to sparc_r_types[] in ofile_print.c .
1145 - Change the version numbers of dynamic library to the form X[.Y[.Z]] to match
1146   how next does versioning of it's projects.  This effected libtool(1), ld(1),
1147   otool(1), dyld, libstuff(version_number.c) and man pages for ld and libtool
1148   bug #55627).  In here the changes were in ofile_print.c .
1149 - Added -T, -M, -R and -I to the usage print out.
1151 Changes for the 4.0 release (the cctools-156 release):
1152 - Fixed a that caused sections with S_ATTR_PURE_INSTRUCTIONS set not to be
1153   disassembled.  This was casued by S_ATTR_SOME_INSTRUCTIONS also being set and
1154   the code in main.c checking the SECTION_ATTRIBUTES equal to 
1155   S_ATTR_PURE_INSTRUCTIONS and not just checking for that bit.
1157 Changes for the 4.0 release (the cctools-158 release):
1158 - Fixed a bug that caused printing of shlib and dyld names to be wrong.  Basicly
1159   the part of the structure that needed to be swapped was copied but the
1160   original pointer needed to be passed to the routine to print the name part of
1161   the structure.  This was introduced with the change for cctools-150 below.
1163 Changes for the 4.0 release (the cctools-154 release):
1164 - Added support for printing indirect symbol table entries for stripped defined
1165   externals.  Strip uses the values INDIRECT_SYMBOL_LOCAL and
1166   INDIRECT_SYMBOL_ABS to represent the symbols that are defined that were
1167   stripped otool prints these as LOCAL and ABSOLUTE.
1169 Changes for the 4.0 release (the cctools-150 release):
1170 - Fixed a bug in printing load commands that caused the thread commands on
1171   hppa to be printed swapped.  This was the same bug as the otool -L bug
1172   below where the wrong size to memcpy was used to copy the load command.
1174 Changes for the 4.0 release (the cctools-149 release):
1175 - Added printing the section attribute SOME_INSTRUCTIONS.
1176 - Removed printing the section attribute RELOC_AT_LAUNCH.
1177 - Added printing the mach header flag BINDATLOAD.
1178 - Fixed a bug in print_libraries for otool -L with dynamic libraries that
1179   memcpy'ed the wrong size into the dylib_command (bug #50440).
1181 Changes for the 4.0 release (the cctools-148 release):
1182 - Changed how otool gets built.  It how gets built with -static.
1184 Changes for the 4.0 release (the cctools-140 release):
1185 - Picked up sparc changes to sparc_disasm.c.
1186 - Added printing MH_BUNDLE filetype.
1188 Changes for the 4.0 release (the cctools-138 release):
1189 - Picked up a change to sparc_disass.c.  It was getting the targets for
1190   branches with negative displacements wrong.
1192 Changes for the 4.0 release (the cctools-135 release):
1193 - Fixed a bug in otool for sparc disassembly in the routine print_symbolic()
1194   which printed the wrong value for branch instructions when relocation entries
1195   were not present.  The problem was it was adding in the pc to the target
1196   value which already had the pc added to it.
1197 - Fix for Tracker 41317 [as(hppa) : does not support cache control hints.]
1198   otool/hppa-dissasm.c changed to disassemble the new parsing rule changes.
1200 Changes for the 4.0 release (the cctools-133 release):
1201 - Picked up the sparc changes to sparc_disasm.c.
1202 - Picked up the sparc changes for printing the floating-point sparc thread.
1204 Changes for the 4.0 release (the cctools-132 release):
1205 - Picked up the sparc changes for sparc_disasm.c and m88k_disasm.c.
1206 - Picked up the sparc changes for printing the sparc thread.
1208 Changes for the 3.3 release (the cctools-128 release):
1209 - Fixed otool -c for the hppa.  Had to add special code in print_argstrings()
1210   in main.c to deal with the different stack layout (bug #40373).
1211 - Removed the spaces printed before the register names for the hppa disassembler
1212   in 4 places.
1214 Changes for the 3.3 release (the cctools-127 release):
1215 - Fixed a bug when the a zero fill section was attempted to be printed without
1216   -v which caused otool to core dump (bug #42127).
1218 Changes for the 3.3 release (the cctools-122 release):
1219 - Fixed a bug in printed byte swapped tocs for a dylib.  The code in main.c
1220   had some copy and paste errors in it's allocate() and memcpy() before the
1221   call to swap_dylib_table_of_contents().
1223 Changes for the 3.3 release (the cctools-119 release):
1224 - Picked up first round of changes for the sparc target.  This work is
1225   incomplete.
1226 - HPPA, changed main.c, otool.h, ofile_print.c and Makefile to fix bug # 39398
1227   (otool does not understand certain thread states for hppa). Added
1228   hppa_usrstack.c for the same.
1230 Changes for the 3.3 release (the cctools-115 release):
1231 - Changed print_symbol() in ofile_print.c to take an extra parameter, dot_value,
1232   the value of the address being dissassembled which is only used for the value
1233   of the -symbol in a SECTDIFF relocation entry if their is no symbol that
1234   matches that value.
1236 Changes for the 3.3 release (the cctools-104 release):
1237 - Made a quick but incorrect fix for jbsr disassembly in hppa_disasm.c by
1238   passing the sect_addr as the first parameter to print_immediate() in the
1239   jbsr case '@' this will not work if a jbsr to a different section is used.
1241 Changes for the 3.3 release (the cctools-103 release):
1242 - Fixed a bug in hppa_r_types[] array which has only 15 (not 16 enties).
1244 Changes for the 3.3 release (the cctools-102 release):
1245 - Integrated in the hppa support.
1246 different otool/Makefile (integrated for cctools-102)
1247      Using cctoolshppa-37.  New hppa files. Changed to remove hppa-opcode.h.
1248 different otool/i386_usrstack.c (no changes for cctools-102)
1249      Using cctools-29. Late 3.2 fixes the hppa base did not have.
1250 different otool/m68k_usrstack.c (no changes for cctools-102)
1251      Using cctools-29. Late 3.2 fixes the hppa base did not have.
1252 different otool/main.c (integrated for cctools-102)
1253      Using cctoolshppa-37.  Call to hppa_disassemble() added.
1254 different otool/ofile_print.c (integrated for cctools-102)
1255      Using cctoolshppa-37.  Printing hppa cputypes and relocs added.
1256      Fixed some print space problems in the master clone ~comp/cctools-29.
1257 Only in cctoolshppa-37/otool: hppa_disasm.c (integrated for cctools-102)
1258      Pickup cctoolshppa-37/otool/hppa_disasm.c from cctoolshppa-37 and
1259      Changed line 9 from:
1260         #include "hppa-opcode.h"
1261      to
1262         #include "../as/hppa-opcode.h"
1263      Changed line 412 from:
1264         struct scattered_relocation_info *srp, *spairp;
1265      to
1266         struct scattered_relocation_info *srp;
1267      to remove a warning.
1268      Changed line 630 from:
1269         return HPPA_RELOC_NORELOC;
1270      to
1271         return 0xffffffff;
1272      since HPPA_RELOC_NORELOC was removed from mach-o/hppa/reloc.h
1273    Changes for cctools-102:
1274      moved some functions into libstuff/hppa.c as suggested by the comments.
1275 Only in cctoolshppa-37/otool: hppa_disasm.h (integrated for cctools-102)
1276      Pickup cctoolshppa-37/otool/hppa_disasm.h from cctoolshppa-37.
1277 Only in cctoolshppa-37/otool: hppa-opcode.h (also NOT pick up for cctools-102)
1278      This is simmilar but different to hppa-opcode.h in ../as .  This was not
1279      picked up but hppa_disasm.c was changed to include ../as/hppa-opcode.h
1281 Changes for the 3.3 release (the cctools-101 release):
1282 - Made sections with the attribute S_ATTR_PURE_INSTRUCTIONS disassemble with
1283   the -v flag.  Also had to fix the disassemblers to add sect_addr parameter to
1284   subract from the address when looking for relocation entries.
1285 - Added -I to print the indirect symbol tables.
1286 - Added code to print the dysymtab.
1288 Changes for the 3.3 release (the cctools-100 release):
1289 - First major round of changes for the new shlib stuff.
1290   1) In otool's disassemblers (m68k and i386) support for possition-independent 
1291      code through the SECTDIFF relocataion type.
1292 - Fixed a bug in the m68k disassembler for mulsl where the 2 register form did
1293   not disassemble the Dl register correctly (bug #38530).
1294 - Fixed a bug in the m68k disassembler for bcc branches of 16-bit and 8-bit
1295   displacements not getting their target calculated correctly (bug #38531).
1296 - Fixed a bug in the m68k disassembler for dbcc instructions where the 16-bit
1297   displacements were not getting their target calculated correctly.
1299 Changes for the 3.2 release (the cctools-24 release):
1300 - Fixed a bug in print_argstrings() which was using printf(%s) and that could
1301   not correctly deal with a string that did not end in a '\0' before the memory
1302   that contained the string ended (bug #33672).
1304 Changes for the 3.1 release (the cctools-22 release):
1305 - Added printing for these  (bug #32553):
1306     { "any",    CPU_TYPE_ANY,     CPU_SUBTYPE_MULTIPLE },
1307     { "little", CPU_TYPE_ANY,     CPU_SUBTYPE_LITTLE_ENDIAN },
1308     { "big",    CPU_TYPE_ANY,     CPU_SUBTYPE_BIG_ENDIAN },
1310 Changes for the 3.1 release (the cctools-21 release):
1311 - Fixed a few bugs in print_objc.c the had arguments reversed so things got
1312   swapped when they shouldn't have.
1314 Changes for the 3.1 release (the cctools-15 release):
1315 - Flushed out the swap_* stubs in print_objc.c.
1316 - Updated the printing of the m98k cpu flavor to use it's correct definition.
1318 Changes for the 3.1 release (the cctools-14 release):
1319 - Added the opcodes for tlbiex (31,338) and tlbia (31,370).
1320 - Changed the m98k instructions: lwarx, ldarx, stwcx. and stdcx. second arg from
1321   just a greg to 0 or a greg (r1-r31).
1322 - For the m98k disassembler removed "mr" for "ori Rx,Ry,0" because the 0 could
1323   have a relocation entry and it really could be an "ori" not a "mr" (move
1324   register).
1326 Changes for the 3.1 release (the cctools-13 release):
1327 - Added the m98k (PowerPC) architecture.  This includes a kludged
1328   mach/m98k/thread_status.h with only an entry point.
1330 Changes for the 3.1 release (the cctools-10 release):
1331 - Fixed two bugs in the i386 disassembler.  First the displacement routine
1332   needed to sign extend it's value if it was a byte or short before doing the
1333   addition.  Second for the 8-bit jumps the operand size needs to be printed
1334   as a long not a byte (bug #29789).
1336 Changes for the 3.1 release (the cctools-9 release):
1337 - Fixed otool -c for the m88k and i386 architectures (bug #29639).  This
1338   required a file for each arch that included <bsd/XXXX/vmparam.h> so the value
1339   of USRSTACK could be returned.
1341 Changes for the 3.1 release (the cctools-8 release):
1342 - Added symbolic disassembly for the i386 arch.  This involved a major clean up
1343   of i386_disasm.c .
1345 Changes for the 3.1 release (the cctools-7 release):
1346 - Added the i485 and i586 instructions to the dissembler for the i386 arch.
1347 - Added a comment character '#' before in the sprintf lines
1348   "#***** Error - bad opcode" in _bits.c for disassembling the i386.
1350 Changes for the 3.1 release (the cctools-5 release):
1351 - Picked up the lono team's mods to ofile_print.c for changes to the i386
1352   thread_status.h.
1354 Changes for the 3.1 release (the cctools-4 release):
1355 - Changed the arch name from ix86 to i386.
1356 - Changed CPU_TYPE_I80x86 to CPU_TYPE_I386 in main.c that was missed.
1358 Changes for the 3.1 release (the cctools-3 release):
1359 - Changed CPU_TYPE_I80x86 to CPU_TYPE_I386 and removed CPU_SUBTYPE_AT386
1360   CPU_SUBTYPE_EXL .
1362 Changes for the 3.1 release (the cctools-1 release)
1363 - Created the otool directory with the 3.1 otool.