Index: bfd/elf.c =================================================================== RCS file: /cvs/src/src/bfd/elf.c,v retrieving revision 1.366 diff -c -3 -p -r1.366 elf.c *** bfd/elf.c 25 Nov 2006 00:38:14 -0000 1.366 --- bfd/elf.c 1 Dec 2006 12:26:37 -0000 *************** rewrite_elf_program_header (bfd *ibfd, b *** 5427,5436 **** map->p_type = segment->p_type; map->p_flags = segment->p_flags; map->p_flags_valid = 1; /* If the first section in the input segment is removed, there is no need to preserve segment physical address in the corresponding output segment. */ ! if (first_section->output_section != NULL) { map->p_paddr = segment->p_paddr; map->p_paddr_valid = 1; --- 5427,5437 ---- map->p_type = segment->p_type; map->p_flags = segment->p_flags; map->p_flags_valid = 1; + /* If the first section in the input segment is removed, there is no need to preserve segment physical address in the corresponding output segment. */ ! if (first_section != NULL && first_section->output_section != NULL) { map->p_paddr = segment->p_paddr; map->p_paddr_valid = 1;