This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: objdump won't always disassmble a section


On Tue, Jan 13, 2009 at 12:38:49AM +1030, Alan Modra wrote:
> 	* objdump.c (disassemble_section): Don't assume non-instruction
> 	data if object symbol at given address is in different section.

And to go with this, let's not put an object symbol on the first
overlay section..

bfd/
	* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.

Index: bfd/elf32-spu.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-spu.c,v
retrieving revision 1.59
diff -u -p -r1.59 elf32-spu.c
--- bfd/elf32-spu.c	12 Jan 2009 04:09:43 -0000	1.59
+++ bfd/elf32-spu.c	12 Jan 2009 13:18:58 -0000
@@ -1951,8 +1951,8 @@ spu_elf_build_stubs (struct bfd_link_inf
       h = define_ovtab_symbol (htab, "__icache_base");
       if (h == NULL)
 	return FALSE;
-      h->root.u.def.value = 0;
-      h->root.u.def.section = htab->ovl_sec[0];
+      h->root.u.def.value = htab->ovl_sec[0]->vma;
+      h->root.u.def.section = bfd_abs_section_ptr;
       h->size = htab->num_buf << htab->line_size_log2;
 
       if (htab->init != NULL && htab->init->size != 0)


-- 
Alan Modra
Australia Development Lab, IBM


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