aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-07 17:18:25 +0000
committerTom Tromey <tromey@redhat.com>2013-01-07 17:18:25 +0000
commit45a466b578083a05f1138eff9232254b1a30f683 (patch)
tree4f4bf2bd7c7f5eb7ce6622325a3235a38b2b20d2
parent0140d685ba051db5942b109778c0810f21c42313 (diff)
downloadgdb-45a466b578083a05f1138eff9232254b1a30f683.zip
gdb-45a466b578083a05f1138eff9232254b1a30f683.tar.gz
gdb-45a466b578083a05f1138eff9232254b1a30f683.tar.bz2
* section.c (_bfd_std_section): Rename from std_section.
(bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr) (STD_SECTION): Update. * bfd-in2.h: Rebuild.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/bfd-in2.h10
-rw-r--r--bfd/section.c16
3 files changed, 20 insertions, 13 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4e1602b..053dde3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2013-01-07 Tom Tromey <tromey@redhat.com>
+
+ * section.c (_bfd_std_section): Rename from std_section.
+ (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
+ (STD_SECTION): Update.
+ * bfd-in2.h: Rebuild.
+
2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
* archures.c (bfd_mach_mips5900): Define.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 01f0fa2..20a45b2 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1575,7 +1575,7 @@ struct relax_table {
/* These sections are global, and are managed by BFD. The application
and target back end are not permitted to change the values in
these sections. */
-extern asection std_section[4];
+extern asection _bfd_std_section[4];
#define BFD_ABS_SECTION_NAME "*ABS*"
#define BFD_UND_SECTION_NAME "*UND*"
@@ -1583,13 +1583,13 @@ extern asection std_section[4];
#define BFD_IND_SECTION_NAME "*IND*"
/* Pointer to the common section. */
-#define bfd_com_section_ptr (&std_section[0])
+#define bfd_com_section_ptr (&_bfd_std_section[0])
/* Pointer to the undefined section. */
-#define bfd_und_section_ptr (&std_section[1])
+#define bfd_und_section_ptr (&_bfd_std_section[1])
/* Pointer to the absolute section. */
-#define bfd_abs_section_ptr (&std_section[2])
+#define bfd_abs_section_ptr (&_bfd_std_section[2])
/* Pointer to the indirect section. */
-#define bfd_ind_section_ptr (&std_section[3])
+#define bfd_ind_section_ptr (&_bfd_std_section[3])
#define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
#define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
diff --git a/bfd/section.c b/bfd/section.c
index 6fd7d8e..a59bc71 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1,7 +1,7 @@
/* Object file "section" support for the BFD library.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
- 2012
+ 2012, 2013
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -545,7 +545,7 @@ CODE_FRAGMENT
.{* These sections are global, and are managed by BFD. The application
. and target back end are not permitted to change the values in
. these sections. *}
-.extern asection std_section[4];
+.extern asection _bfd_std_section[4];
.
.#define BFD_ABS_SECTION_NAME "*ABS*"
.#define BFD_UND_SECTION_NAME "*UND*"
@@ -553,13 +553,13 @@ CODE_FRAGMENT
.#define BFD_IND_SECTION_NAME "*IND*"
.
.{* Pointer to the common section. *}
-.#define bfd_com_section_ptr (&std_section[0])
+.#define bfd_com_section_ptr (&_bfd_std_section[0])
.{* Pointer to the undefined section. *}
-.#define bfd_und_section_ptr (&std_section[1])
+.#define bfd_und_section_ptr (&_bfd_std_section[1])
.{* Pointer to the absolute section. *}
-.#define bfd_abs_section_ptr (&std_section[2])
+.#define bfd_abs_section_ptr (&_bfd_std_section[2])
.{* Pointer to the indirect section. *}
-.#define bfd_ind_section_ptr (&std_section[3])
+.#define bfd_ind_section_ptr (&_bfd_std_section[3])
.
.#define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
.#define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
@@ -725,9 +725,9 @@ static const asymbol global_syms[] =
};
#define STD_SECTION(NAME, IDX, FLAGS) \
- BFD_FAKE_SECTION(std_section[IDX], FLAGS, &global_syms[IDX], NAME, IDX)
+ BFD_FAKE_SECTION(_bfd_std_section[IDX], FLAGS, &global_syms[IDX], NAME, IDX)
-asection std_section[] = {
+asection _bfd_std_section[] = {
STD_SECTION (BFD_COM_SECTION_NAME, 0, SEC_IS_COMMON),
STD_SECTION (BFD_UND_SECTION_NAME, 1, 0),
STD_SECTION (BFD_ABS_SECTION_NAME, 2, 0),