diff options
author | Nick Clifton <nickc@redhat.com> | 2002-11-07 14:36:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-11-07 14:36:31 +0000 |
commit | 681aa0079fbf6d22e73a85d41de0c9d5d0d9fd4c (patch) | |
tree | a205ce572b00a52706dbd36c3f3da1f750894d54 /bfd/reloc.c | |
parent | b255e512260ab2b6e982c5aa13ecd83ff263c72b (diff) | |
download | binutils-redhat-681aa0079fbf6d22e73a85d41de0c9d5d0d9fd4c.tar.gz |
Use bfd_simple_get_relocated_section_contents() instead of bfd_get_section_contents().
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index b13f6722c1..0885e03232 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -4,21 +4,21 @@ Free Software Foundation, Inc. Written by Cygnus Support. -This file is part of BFD, the Binary File Descriptor library. + This file is part of BFD, the Binary File Descriptor library. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* SECTION @@ -645,7 +645,8 @@ bfd_perform_relocation (abfd, reloc_entry, data, input_section, output_bfd, reloc_target_output_section = symbol->section->output_section; /* Convert input-section-relative symbol value to absolute. */ - if (output_bfd && ! howto->partial_inplace) + if ((output_bfd && ! howto->partial_inplace) + || reloc_target_output_section == NULL) output_base = 0; else output_base = reloc_target_output_section->vma; |