From: Jakub Jelinek Date: Mon, 9 Aug 2004 08:53:51 +0000 (+0000) Subject: * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic X-Git-Tag: csl-arm-2004-q3~559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba3bee0b4e7dc5199a6fdfc48b7e8dc1f6476b11;p=platform%2Fupstream%2Fbinutils.git * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic error, test input_section flags rather than sec. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index edae313..5a81642 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-08-09 Jakub Jelinek + + * 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 * elf-bfd.h (struct elf_backend_data): Add 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"),