summaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-08-09 08:53:51 +0000
committerJakub Jelinek <jakub@redhat.com>2004-08-09 08:53:51 +0000
commit7f7674efad8ed78bd55757482415fb13651f98c9 (patch)
tree214b530846198e04a87a464b40c8358116176b1a /bfd/elf64-x86-64.c
parente69027d210de1c395048307d534a35bbd9c3f574 (diff)
downloadgdb-7f7674efad8ed78bd55757482415fb13651f98c9.tar.gz
* elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
error, test input_section flags rather than sec.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 72b065281e8..683cf8c6145 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -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"),