aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2014-02-01 01:11:28 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2014-02-01 01:11:28 +0100
commit0a09fb4a09e80c36fa3ef763ae276fd13d272a36 (patch)
treeef222978109ada409934d9bf0b2bb95bfab047d2 /ld
parent00eea2b9e018f07f958bc60749ba459671754adf (diff)
downloadgdb-0a09fb4a09e80c36fa3ef763ae276fd13d272a36.zip
gdb-0a09fb4a09e80c36fa3ef763ae276fd13d272a36.tar.gz
gdb-0a09fb4a09e80c36fa3ef763ae276fd13d272a36.tar.bz2
Fix MMIX build breakage from bfd_set_section_vma change.
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in call to bfd_set_section_vma exposed by recent bfd_set_section_vma change.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/mmix-elfnmmo.em2
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e765743..1c95e25 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
+ call to bfd_set_section_vma exposed by recent bfd_set_section_vma
+ change.
+
2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
* Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
diff --git a/ld/emultempl/mmix-elfnmmo.em b/ld/emultempl/mmix-elfnmmo.em
index 0059792..5e9781a 100644
--- a/ld/emultempl/mmix-elfnmmo.em
+++ b/ld/emultempl/mmix-elfnmmo.em
@@ -102,7 +102,7 @@ mmix_after_allocation (void)
This section is only present when there are register symbols. */
sec = bfd_get_section_by_name (link_info.output_bfd, MMIX_REG_SECTION_NAME);
if (sec != NULL)
- bfd_set_section_vma (abfd, sec, 0);
+ bfd_set_section_vma (sec->owner, sec, 0);
if (!_bfd_mmix_after_linker_allocation (link_info.output_bfd, &link_info))
{