From f0a5d95aae21532529061054fa13816d7adf81d8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 3 Apr 2014 11:34:00 +1030 Subject: [PATCH] Fix sim breakage * elf-bfd.h (struct elf_backend_data ): Replace "size_t size" with "bfd_size_type size". (_bfd_elf32_bfd_from_remote_memory): Likewise. (_bfd_elf64_bfd_from_remote_memory): Likewise. * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. * elfcode.h (bfd_from_remote_memory): Likewise. --- bfd/elf-bfd.h | 6 +++--- bfd/elf.c | 2 +- bfd/elfcode.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 6d073032463..f58a3b765c4 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1191,7 +1191,7 @@ struct elf_backend_data /* This function implements `bfd_elf_bfd_from_remote_memory'; see elf.c, elfcode.h. */ bfd *(*elf_backend_bfd_from_remote_memory) - (bfd *templ, bfd_vma ehdr_vma, size_t size, bfd_vma *loadbasep, + (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep, int (*target_read_memory) (bfd_vma vma, bfd_byte *myaddr, bfd_size_type len)); @@ -2334,10 +2334,10 @@ extern char *elfcore_write_ppc_linux_prpsinfo32 (bfd *, char *, int *, const struct elf_internal_linux_prpsinfo *); extern bfd *_bfd_elf32_bfd_from_remote_memory - (bfd *templ, bfd_vma ehdr_vma, size_t size, bfd_vma *loadbasep, + (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep, int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type)); extern bfd *_bfd_elf64_bfd_from_remote_memory - (bfd *templ, bfd_vma ehdr_vma, size_t size, bfd_vma *loadbasep, + (bfd *templ, bfd_vma ehdr_vma, bfd_size_type size, bfd_vma *loadbasep, int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type)); extern bfd_vma bfd_elf_obj_attr_size (bfd *); diff --git a/bfd/elf.c b/bfd/elf.c index d67b917c684..9e46f7c7caa 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -9908,7 +9908,7 @@ bfd * bfd_elf_bfd_from_remote_memory (bfd *templ, bfd_vma ehdr_vma, - size_t size, + bfd_size_type size, bfd_vma *loadbasep, int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type)) { diff --git a/bfd/elfcode.h b/bfd/elfcode.h index f8400659eff..a49a7088ebb 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -1605,7 +1605,7 @@ bfd * NAME(_bfd_elf,bfd_from_remote_memory) (bfd *templ, bfd_vma ehdr_vma, - size_t size, + bfd_size_type size, bfd_vma *loadbasep, int (*target_read_memory) (bfd_vma, bfd_byte *, bfd_size_type)) { -- 2.30.2