X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Ferc32%2Ffunc.c;h=4743aadf04c676cca919596d130da79ddc68c330;hb=3922b302645fda04da42a5279399578ae2f6206c;hp=fd09c57c12fd02e3cc76937f9057019fc6289774;hpb=296730a52b06fe7dd658924acae1269a54015d52;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/erc32/func.c b/sim/erc32/func.c index fd09c57c12..4743aadf04 100644 --- a/sim/erc32/func.c +++ b/sim/erc32/func.c @@ -1,6 +1,6 @@ /* This file is part of SIS (SPARC instruction simulator) - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2020 Free Software Foundation, Inc. Contributed by Jiri Gaisler, European Space Agency This program is free software; you can redistribute it and/or modify @@ -1051,14 +1051,14 @@ bfd_load (const char *fname) if (sis_verbose) printf("loading %s:", fname); for (section = pbfd->sections; section; section = section->next) { - if (bfd_get_section_flags(pbfd, section) & SEC_ALLOC) { + if (bfd_section_flags (section) & SEC_ALLOC) { bfd_vma section_address; unsigned long section_size; const char *section_name; - section_name = bfd_get_section_name(pbfd, section); + section_name = bfd_section_name (section); - section_address = bfd_get_section_vma(pbfd, section); + section_address = bfd_section_vma (section); /* * Adjust sections from a.out files, since they don't carry their * addresses with. @@ -1084,14 +1084,14 @@ bfd_load (const char *fname) } } - section_size = bfd_section_size(pbfd, section); + section_size = bfd_section_size (section); if (sis_verbose) printf("\nsection %s at 0x%08lx (0x%lx bytes)", section_name, section_address, section_size); /* Text, data or lit */ - if (bfd_get_section_flags(pbfd, section) & SEC_LOAD) { + if (bfd_section_flags (section) & SEC_LOAD) { file_ptr fptr; fptr = 0;