X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Flm32%2Fsim-if.c;h=9e868981641b2636d9a2e7ed01aee5fb6ca02073;hb=f16a9f57b50af64ccb9652d20cc934fc5e80cd20;hp=aad3a35a3076b80a6204cc6d5168b3e3e6b9f52b;hpb=5357150c97899af2cc93072780a9c3a128c5b1ae;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/lm32/sim-if.c b/sim/lm32/sim-if.c index aad3a35a30..9e86898164 100644 --- a/sim/lm32/sim-if.c +++ b/sim/lm32/sim-if.c @@ -1,7 +1,7 @@ /* Main simulator entry points specific to Lattice Mico32. Contributed by Jon Beniston - Copyright (C) 2009-2016 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -50,21 +50,18 @@ find_base (bfd *prog_bfd) found = 0; for (s = prog_bfd->sections; s; s = s->next) { - if ((strcmp (bfd_get_section_name (prog_bfd, s), ".boot") == 0) - || (strcmp (bfd_get_section_name (prog_bfd, s), ".text") == 0) - || (strcmp (bfd_get_section_name (prog_bfd, s), ".data") == 0) - || (strcmp (bfd_get_section_name (prog_bfd, s), ".bss") == 0)) + if ((strcmp (bfd_section_name (s), ".boot") == 0) + || (strcmp (bfd_section_name (s), ".text") == 0) + || (strcmp (bfd_section_name (s), ".data") == 0) + || (strcmp (bfd_section_name (s), ".bss") == 0)) { if (!found) { - base = bfd_get_section_vma (prog_bfd, s); + base = bfd_section_vma (s); found = 1; } else - base = - bfd_get_section_vma (prog_bfd, - s) < base ? bfd_get_section_vma (prog_bfd, - s) : base; + base = bfd_section_vma (s) < base ? bfd_section_vma (s) : base; } } return base & ~(0xffffUL);