diff options
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5431,7 +5431,7 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) /* 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) + if (!first_section || first_section->output_section != NULL) { map->p_paddr = segment->p_paddr; map->p_paddr_valid = 1; |