This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: remove mach-o specific code in objdump.c
On Fri, Nov 14, 2008 at 1:13 AM, Tristan Gingold <gingold@adacore.com> wrote:
>
> On Nov 14, 2008, at 9:54 AM, Nick Clifton wrote:
>
>> Hi Tristan,
>>
>>> * dwarf segment name is not anymore __DWARFA (and furthermore the mach-o
>>> backend now uses standard
>>> elf names to make gdb happy)
>>> * there is no bias anymore.
>>
>> What about old mach-o files ? We need to be able to dump them properly as
>> well.
>
> I never met such old mach-o files. MacOS X Tiger and Leopard uses this new
> convention and IIRC previous
> versions didn't support dwarf (stabs was use by default in Tiger - the
> switch to dwarf is very recent).
>
> HJ, it seems that you added this code:
>
> revision 1.113
> date: 2005/09/30 14:57:52; author: hjl; state: Exp; lines: +47 -0
> 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
>
> * dwarf.c (fetch_indirect_string): Adjust for section address.
> (process_debug_info): Likewise.
> (display_debug_loc): Likewise.
> (display_debug_ranges): Likewise.
>
> * objdump.c (mach_o_dwarf_sections): New.
> (generic_dwarf_sections): Likewise.
> (check_mach_o_dwarf): Likewise.
> (dump_dwarf): Call check_mach_o_dwarf.
>
> Do you remember of the context ?
>
Those are sections used on Darwin/x86 around 2005-09-30 when
Apple first moved to DWARF. I won't be surprised that they have changed
since then.
--
H.J.