Add support for debuginfod to the binutils (disable by default, enabled via a configu...
[deliverable/binutils-gdb.git] / sim / erc32 / func.c
index 4085b9a1a1880aab68d6c6663524d68dd9e4588a..4743aadf04c676cca919596d130da79ddc68c330 100644 (file)
@@ -1,4 +1,7 @@
-/* Copyright (C) 1995-2015 Free Software Foundation, Inc.
+/* This file is part of SIS (SPARC instruction simulator)
+
+   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
    it under the terms of the GNU General Public License as published by
@@ -1048,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.
@@ -1081,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;
This page took 0.029094 seconds and 4 git commands to generate.