diff options
author | Alan Modra <amodra@gmail.com> | 2002-11-06 12:04:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-11-06 12:04:31 +0000 |
commit | ad12c1c57742308da3e314c26d5a99ab587fb820 (patch) | |
tree | fc7894ef96016db4117f3f6de368bcd8712a3d4c /bfd/elf.c | |
parent | b6821651ed10df36b244f7b645312f2f015d4bff (diff) | |
download | gdb-ad12c1c57742308da3e314c26d5a99ab587fb820.zip gdb-ad12c1c57742308da3e314c26d5a99ab587fb820.tar.gz gdb-ad12c1c57742308da3e314c26d5a99ab587fb820.tar.bz2 |
Ah bah, missed these from last commit.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -5089,26 +5089,12 @@ _bfd_elf_copy_private_section_data (ibfd, isec, obfd, osec) asection *osec; { Elf_Internal_Shdr *ihdr, *ohdr; - const struct elf_backend_data *bed = get_elf_backend_data (ibfd); if (ibfd->xvec->flavour != bfd_target_elf_flavour || obfd->xvec->flavour != bfd_target_elf_flavour) return true; - /* Copy over private BFD data if it has not already been copied. - This must be done here, rather than in the copy_private_bfd_data - entry point, because the latter is called after the section - contents have been set, which means that the program headers have - already been worked out. The backend function provides a way to - override the test conditions and code path for the call to - copy_private_bfd_data. */ - if (bed->copy_private_bfd_data_p) - { - if ((*bed->copy_private_bfd_data_p) (ibfd, isec, obfd, osec)) - if (! copy_private_bfd_data (ibfd, obfd)) - return false; - } - else if (elf_tdata (obfd)->segment_map == NULL && elf_tdata (ibfd)->phdr != NULL) + if (elf_tdata (obfd)->segment_map == NULL && elf_tdata (ibfd)->phdr != NULL) { asection *s; |