* elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Aug 2004 08:53:51 +0000 (08:53 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 9 Aug 2004 08:53:51 +0000 (08:53 +0000)
error, test input_section flags rather than sec.

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

index edae313573732e411eeac92adec1f5747d256823..5a81642f614a8b552da25019ced7d09a06c8a8d8 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-09  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
+       error, test input_section flags rather than sec.
+
 2004-08-09  Alan Modra  <amodra@bigpond.net.au>
 
        * elf-bfd.h (struct elf_backend_data): Add
index 72b065281e883b97e9191d7790c6db11c386db57..683cf8c6145e3cfd6ae723ced10a44c009be0496 100644 (file)
@@ -1950,8 +1950,8 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
        case R_X86_64_PC32:
          if (info->shared
              && !SYMBOL_REFERENCES_LOCAL (info, h)
-             && (sec->flags & SEC_ALLOC) != 0
-             && (sec->flags & SEC_READONLY) != 0)
+             && (input_section->flags & SEC_ALLOC) != 0
+             && (input_section->flags & SEC_READONLY) != 0)
            {
              (*_bfd_error_handler)
                (_("%s: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"),
This page took 0.030454 seconds and 4 git commands to generate.