Treat R_ARM_THM_PC22 like R_ARM_PC24.
authorNick Clifton <nickc@redhat.com>
Fri, 12 Oct 2001 11:16:21 +0000 (11:16 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 12 Oct 2001 11:16:21 +0000 (11:16 +0000)
bfd/ChangeLog
bfd/elf32-arm.h

index 1d81e717f295d5b1f747f0d68312950ca2190de3..5abf7aba3297ffedf7b4142ee77fbbb8492b9153 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-12  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
+       like R_ARM_PC24.  Include reloc number in error message about
+       unresolvable relocs.
+
 2001-10-10  Jakub Jelinek  <jakub@redhat.com>
 
        * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
index 5304cf6255a1bdd8aca59d861e266b0c7826b129..838c24ff5564142a61b5629b568766bcdefd366d 100644 (file)
@@ -1883,6 +1883,7 @@ elf32_arm_relocate_section (output_bfd, info, input_bfd, input_section,
                {
                case R_ARM_PC24:
                case R_ARM_ABS32:
+               case R_ARM_THM_PC22:
                  if (info->shared
                      && (
                  (!info->symbolic && h->dynindx != -1)
@@ -1923,8 +1924,10 @@ elf32_arm_relocate_section (output_bfd, info, input_bfd, input_section,
                  if (sec->output_section == NULL)
                    {
                      (*_bfd_error_handler)
-                       (_("%s: warning: unresolvable relocation against symbol `%s' from %s section"),
-                        bfd_archive_filename (input_bfd), h->root.root.string,
+                       (_("%s: warning: unresolvable relocation %d against symbol `%s' from %s section"),
+                        bfd_archive_filename (input_bfd),
+                        r_type,
+                        h->root.root.string,
                         bfd_get_section_name (input_bfd, input_section));
                      relocation_needed = 0;
                    }