A question about objcopy
He Yunlong-B20256
Harry.He@freescale.com
Tue Aug 4 09:53:00 GMT 2009
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
More information about the Binutils
mailing list