aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-06-15 01:08:57 +0000
committerAlan Modra <amodra@gmail.com>2004-06-15 01:08:57 +0000
commitdcb74f961ab8068d8768932cedba58ab0d95b1f2 (patch)
tree80398081011146dce452ecf9b3e76cfcf24f9b5b
parent84b11e2eb505dd43a13ae6b0e95c117dd23604d0 (diff)
downloadgdb-dcb74f961ab8068d8768932cedba58ab0d95b1f2.zip
gdb-dcb74f961ab8068d8768932cedba58ab0d95b1f2.tar.gz
gdb-dcb74f961ab8068d8768932cedba58ab0d95b1f2.tar.bz2
* hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc. (htab_dma_binary(bfd): Likewise. * hw_init.c (update_for_binary_section(bfd): Likewise.
-rw-r--r--sim/ppc/ChangeLog7
-rw-r--r--sim/ppc/hw_htab.c6
-rw-r--r--sim/ppc/hw_init.c4
3 files changed, 12 insertions, 5 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 1a17f41..55b18cc 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,10 @@
+2004-06-15 Alan Modra <amodra@bigpond.net.au>
+
+ * hw_htab.c (htab_sum_binary(bfd): Use bfd_get_section_size
+ instead of bfd_get_section_size_before_reloc.
+ (htab_dma_binary(bfd): Likewise.
+ * hw_init.c (update_for_binary_section(bfd): Likewise.
+
2004-05-10 Daniel Jacobowitz <dan@debian.org>
* configure.in (sim_fpu_cflags): Add -I../common.
diff --git a/sim/ppc/hw_htab.c b/sim/ppc/hw_htab.c
index d536068..d9b280a 100644
--- a/sim/ppc/hw_htab.c
+++ b/sim/ppc/hw_htab.c
@@ -1,6 +1,6 @@
/* This file is part of the program psim.
- Copyright 1994, 1995, 1996, 2003 Andrew Cagney
+ Copyright 1994, 1995, 1996, 2003, 2004 Andrew Cagney
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
@@ -391,7 +391,7 @@ htab_sum_binary(bfd *abfd,
PTR data)
{
htab_binary_sizes *sizes = (htab_binary_sizes*)data;
- unsigned_word size = bfd_get_section_size_before_reloc (sec);
+ unsigned_word size = bfd_get_section_size (sec);
unsigned_word vma = bfd_get_section_vma (abfd, sec);
#define bfd_get_section_lma(abfd, sec) ((sec)->lma + 0)
unsigned_word ra = bfd_get_section_lma (abfd, sec);
@@ -437,7 +437,7 @@ htab_dma_binary(bfd *abfd,
return;
/* check/ignore any sections of size zero */
- section_size = bfd_get_section_size_before_reloc(sec);
+ section_size = bfd_get_section_size (sec);
if (section_size == 0)
return;
diff --git a/sim/ppc/hw_init.c b/sim/ppc/hw_init.c
index 253ef7c..1ac5434 100644
--- a/sim/ppc/hw_init.c
+++ b/sim/ppc/hw_init.c
@@ -1,6 +1,6 @@
/* This file is part of the program psim.
- Copyright 1994, 1997, 2003 Andrew Cagney
+ Copyright 1994, 1997, 2003, 2004 Andrew Cagney
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
@@ -329,7 +329,7 @@ update_for_binary_section(bfd *abfd,
return;
/* check/ignore any sections of size zero */
- section_size = bfd_get_section_size_before_reloc(the_section);
+ section_size = bfd_get_section_size (the_section);
if (section_size == 0)
return;