summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2006-02-10 17:13:23 +0000
committerH.J. Lu <hjl@lucon.org>2006-02-10 17:13:23 +0000
commit43ab4264edbd828829b89c4b99a80280b86e4d55 (patch)
treed54e87c6ac5b06f4114f2daefc3f954c7081abe4
parent2212a35f4715467e2edcce4439e7d5cc0a0721d4 (diff)
downloadbinutils-redhat-43ab4264edbd828829b89c4b99a80280b86e4d55.tar.gz
2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (copy_private_bfd_data): Minor update.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6ba25312c1..57b71cd916 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
+ * elf.c (copy_private_bfd_data): Minor update.
+
+2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
+
PR binutils/2258
* elf.c (copy_private_bfd_data): Renamed to ...
(rewrite_elf_program_header): This.
diff --git a/bfd/elf.c b/bfd/elf.c
index 59dd56fea3..b56e2e8114 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5731,8 +5731,6 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
static bfd_boolean
copy_private_bfd_data (bfd *ibfd, bfd *obfd)
{
- Elf_Internal_Phdr *segment;
-
if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
return TRUE;
@@ -5744,6 +5742,7 @@ copy_private_bfd_data (bfd *ibfd, bfd *obfd)
{
/* Check if any sections in the input BFD covered by ELF program
header are changed. */
+ Elf_Internal_Phdr *segment;
asection *section, *osec;
unsigned int i, num_segments;
Elf_Internal_Shdr *this_hdr;