This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: objdump.c


Hi,

An internal port requires that section information be available to the
disassembler.  The following one-line patch to binutils/objdump.c
accomplishes this.  Any objections?

Thanks,

John
2001-07-24  John Healy  <jhealy@redhat.com>

        Patch suggested by Frank Eigler <fche@redhat.com>.           
        * objdump.c (disassemble_data): Fill in section member of the
        disasm_info structure.


Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.35
diff -c -3 -p -r1.35 objdump.c
*** objdump.c	2001/05/28 10:03:19	1.35
--- objdump.c	2001/07/24 18:40:07
*************** disassemble_data (abfd)
*** 1731,1736 ****
--- 1731,1737 ----
        disasm_info.buffer = data;
        disasm_info.buffer_vma = section->vma;
        disasm_info.buffer_length = datasize;
+       disasm_info.section = section;
        if (start_address == (bfd_vma) -1
  	  || start_address < disasm_info.buffer_vma)
  	addr_offset = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]