]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Set bfd errror for normal and TLS symbol access
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 13 Jan 2013 00:30:20 +0000 (00:30 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 13 Jan 2013 00:30:20 +0000 (00:30 +0000)
* elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
normal and TLS symbol access.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.

bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index 0fcbe54b458237a123cfd8e2424473a2aa93af87..ecec502a17396e3edb31597afea28698aa8155f8 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
+       normal and TLS symbol access.
+       * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
+
 2013-01-12  Alan Modra  <amodra@gmail.com>
 
        * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
index f76c7a7f404e80bb5ed7b83cdd2a8fc035d53ffe..99e8f45c86e9923d12f577af5912995a6ef1e55b 100644 (file)
@@ -1642,6 +1642,7 @@ elf_i386_check_relocs (bfd *abfd,
                      (_("%B: `%s' accessed both as normal and "
                         "thread local symbol"),
                       abfd, name);
+                   bfd_set_error (bfd_error_bad_value);
                    return FALSE;
                  }
              }
index 92bf991387f6168bff9ef2486e461144742aa798..0d23cc39663a46c45fb218d694d24d1e28f54864 100644 (file)
@@ -1644,6 +1644,7 @@ elf_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
                    (*_bfd_error_handler)
                      (_("%B: '%s' accessed both as normal and thread local symbol"),
                       abfd, name);
+                   bfd_set_error (bfd_error_bad_value);
                    return FALSE;
                  }
              }