aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-11 03:50:17 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-11 03:50:17 -0700
commit64140f86ab732f9ed87beccab07c32befaf9ca52 (patch)
tree5fb5d629fbdbb998a370fda6b64d2ee91d0babf4 /bfd/elf.c
parenteff0bc54a343fed1dd152f0a1b455b2438f76e6f (diff)
downloadgdb-64140f86ab732f9ed87beccab07c32befaf9ca52.zip
gdb-64140f86ab732f9ed87beccab07c32befaf9ca52.tar.gz
gdb-64140f86ab732f9ed87beccab07c32befaf9ca52.tar.bz2
Fix a typo in _bfd_elf_copy_private_bfd_data
* elf.c (_bfd_elf_copy_private_bfd_data): Fix a typo.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 9e401c8..15de37b 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1237,7 +1237,7 @@ _bfd_elf_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
into SHT_NOBITS sections, the output SHT_NOBITS type
matches any input type. */
if ((oheader->sh_type == SHT_NOBITS
- || oheader->sh_type == oheader->sh_type)
+ || iheader->sh_type == oheader->sh_type)
&& iheader->sh_flags == oheader->sh_flags
&& iheader->sh_addralign == oheader->sh_addralign
&& iheader->sh_entsize == oheader->sh_entsize