MIPS: Remove remains of IRIX OS ABI support
[deliverable/binutils-gdb.git] / bfd / elf32-microblaze.c
index b29ac049eddad66535c5d4e229995c958dd253c2..5c66808ed423f9321ea026ba0baa0f6d708b1c24 100644 (file)
@@ -652,6 +652,7 @@ microblaze_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
   r_type = ELF32_R_TYPE (dst->r_info);
   if (r_type >= R_MICROBLAZE_max)
     {
+      /* xgettext:c-format */
       _bfd_error_handler (_("%B: unrecognised MicroBlaze reloc number: %d"),
                          abfd, r_type);
       bfd_set_error (bfd_error_bad_value);
@@ -956,6 +957,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
 
       if (r_type < 0 || r_type >= (int) R_MICROBLAZE_max)
        {
+         /* xgettext:c-format */
          _bfd_error_handler (_("%s: unknown relocation type %d"),
                              bfd_get_filename (input_bfd), (int) r_type);
          bfd_set_error (bfd_error_bad_value);
@@ -1083,6 +1085,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
                    else
                      {
                        _bfd_error_handler
+                         /* xgettext:c-format */
                          (_("%s: The target (%s) of an %s relocation "
                             "is in the wrong section (%s)"),
                           bfd_get_filename (input_bfd),
@@ -1130,6 +1133,7 @@ microblaze_elf_relocate_section (bfd *output_bfd,
                    else
                      {
                        _bfd_error_handler
+                         /* xgettext:c-format */
                          (_("%s: The target (%s) of an %s relocation "
                             "is in the wrong section (%s)"),
                           bfd_get_filename (input_bfd),
@@ -3392,13 +3396,13 @@ microblaze_elf_finish_dynamic_sections (bfd *output_bfd,
             {
               asection *s;
 
-              s = bfd_get_linker_section (dynobj, name);
+              s = bfd_get_section_by_name (output_bfd, name);
               if (s == NULL)
                 dyn.d_un.d_val = 0;
               else
                 {
                   if (! size)
-                    dyn.d_un.d_ptr = s->output_section->vma + s->output_offset;
+                    dyn.d_un.d_ptr = s->vma;
                   else
                     dyn.d_un.d_val = s->size;
                 }
This page took 0.024697 seconds and 4 git commands to generate.