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: [patch] bfd: Core files with p_filesz < p_memsz (build-id)


On Fri, 03 Aug 2007 04:50:00 +0200, Alan Modra wrote:
[snip]
> I'd be happy with the following.  Please check that this doesn't break
> gdb..
> 
> 	* elf.c (_bfd_elf_make_section_from_phdr): Properly handle
> 	bss segments.

[ This patch got applied in the meantime modulo whitespaces. ]

Works fine, thanks.


Jan


Functionality of the patch on a p_filesz < p_memsz (build-id) core file:

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000001000 0x0000000000400000 0x0000000000000000
                 0x0000000000001000 0x00000000000b1000  R E    1000
  LOAD           0x0000000000002000 0x00000000006b1000 0x0000000000000000
                 0x000000000000a000 0x000000000000a000  RW     1000

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  4 load1a        00001000  0000000000400000  0000000000000000  00001000  2**12
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  5 load1b        00000000  0000000000401000  0000000000001000  00002000  2**12
                  ALLOC, READONLY, CODE
  6 load2         0000a000  00000000006b1000  0000000000000000  00002000  2**12
                  CONTENTS, ALLOC, LOAD


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