aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 7fb51a7..8a9e579 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1896,7 +1896,8 @@ elf_bfd_final_link (abfd, info)
zero. This is done in elf_fake_sections as well, but forcing
the VMA to 0 here will ensure that relocs against these
sections are handled correctly. */
- if ((o->flags & SEC_ALLOC) == 0)
+ if ((o->flags & SEC_ALLOC) == 0
+ && ! o->user_set_vma)
o->vma = 0;
}