diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-08-09 08:53:51 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-08-09 08:53:51 +0000 |
commit | ba3bee0b4e7dc5199a6fdfc48b7e8dc1f6476b11 (patch) | |
tree | 2d933bbed0895bc7f84e845a2cc60937fb36ec06 /bfd/elf64-x86-64.c | |
parent | 40e45c8b6c8500ec4415e644f0d659de14665358 (diff) | |
download | gdb-ba3bee0b4e7dc5199a6fdfc48b7e8dc1f6476b11.zip gdb-ba3bee0b4e7dc5199a6fdfc48b7e8dc1f6476b11.tar.gz gdb-ba3bee0b4e7dc5199a6fdfc48b7e8dc1f6476b11.tar.bz2 |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 72b0652..683cf8c 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"), |