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]

A question about objcopy


Hi, Experts,
 
    I met one issue that "strip" rewrite vaddr of one segment, in
debugging, I find the changing occur in lines below, but why need this
change? is it for spaces to hold program headers and file headers?
 
static bfd_boolean
copy_elf_program_header (bfd *ibfd, bfd *obfd)
{
...
 
      if (!map->includes_phdrs
   && !map->includes_filehdr
   && map->p_paddr_valid)
 /* There is some other padding before the first section.  */
 map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
          - segment->p_paddr);
 
...
}
 
Thanks
Harry


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