Fix MMIX build breakage from bfd_set_section_vma change.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 1 Feb 2014 00:11:28 +0000 (01:11 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 1 Feb 2014 00:11:28 +0000 (01:11 +0100)
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
call to bfd_set_section_vma exposed by recent bfd_set_section_vma
change.

ld/ChangeLog
ld/emultempl/mmix-elfnmmo.em

index e765743feb798fa09a440f87a656afa2c1d2fc16..1c95e252b7a74135e04e981b7d03e08a62b6b533 100644 (file)
@@ -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.
index 0059792022776f3f0b5b56ff8bfe2df302f9560f..5e9781a2341e999cc95a2173360b2094cfbc832f 100644 (file)
@@ -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))
     {