]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move bfd_elf_bfd_from_remote_memory to opncls.c
authorAlan Modra <amodra@gmail.com>
Wed, 3 May 2023 03:17:15 +0000 (12:47 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 3 May 2023 05:23:28 +0000 (14:53 +0930)
commit37cfe371c4f2bb7aba2a684ed91749d1288ca187
tree5078b1f8b46595dd074bc1d53f8626e481e9e24a
parentd659ef954399b0b1693d1cd02dbac222100b9aa2
Move bfd_elf_bfd_from_remote_memory to opncls.c

bfd_elf_bfd_from_remote_memory is just a wrapper, and the function
could be implemented for other formats.  Move it to opncls.c because
it acts a little like some of the other bfd_open* routines.  Also give
it the usual FUNCTION etc. comment so prototypes and docs are handled
automatically.

* elf.c (bfd_elf_bfd_from_remote_memory): Move to..
* opncls.c: ..here, add FUNCTION comment.
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Delete prototype.
* bfd-in2.h: Regenerate.
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elf.c
bfd/opncls.c