summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index e84bd39580d..79190e60f2b 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4816,6 +4816,7 @@ copy_private_bfd_data (ibfd, obfd)
correct value. Note - some backends require that
p_paddr be left as zero. */
if (segment->p_paddr == 0
+ && segment->p_vaddr != 0
&& (! bed->want_p_paddr_set_to_zero)
&& isec == 0
&& output_section->lma != 0