aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-24 22:00:22 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-24 22:00:22 +0000
commit2e0567eb0d6e8c2c21eb6b68fea20648a878ccd4 (patch)
treebf7b3c3672d01b922f056e6ba92194444a338388 /bfd/elflink.h
parent67c8c9014191526995d1e815a089298b1203e84f (diff)
downloadgdb-2e0567eb0d6e8c2c21eb6b68fea20648a878ccd4.zip
gdb-2e0567eb0d6e8c2c21eb6b68fea20648a878ccd4.tar.gz
gdb-2e0567eb0d6e8c2c21eb6b68fea20648a878ccd4.tar.bz2
* elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
section to 0 if user_set_vma is set. * elflink.h (elf_bfd_final_link): Likewise.
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;
}