diff options
author | Stan Shebs <shebs@codesourcery.com> | 2008-07-30 21:53:07 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2008-07-30 21:53:07 +0000 |
commit | ed7c5e43966bd5c32c9010a2b0cc4cea2b949e7a (patch) | |
tree | c7553471cbd5e0ba2faab0b19999b26a3cade981 | |
parent | 9d81d21bde742763fcdf5f950c3bcf8c43fcd11c (diff) | |
download | gdb-ed7c5e43966bd5c32c9010a2b0cc4cea2b949e7a.zip gdb-ed7c5e43966bd5c32c9010a2b0cc4cea2b949e7a.tar.gz gdb-ed7c5e43966bd5c32c9010a2b0cc4cea2b949e7a.tar.bz2 |
* objfiles.c (TARGET_KEEP_SECTION): Remove.
(add_to_objfile_sections): Remove use.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/objfiles.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b00b374..4b65672 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-07-30 Stan Shebs <stan@codesourcery.com> + + * objfiles.c (TARGET_KEEP_SECTION): Remove. + (add_to_objfile_sections): Remove use. + 2008-07-29 Tom Tromey <tromey@redhat.com> * cli/cli-decode.c (lookup_cmd_1): Use memcpy. diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 235f8ff..68cec1b 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -68,10 +68,6 @@ struct objfile *rt_common_objfile; /* For runtime common symbols */ objfile_p_char is a char * to get it through bfd_map_over_sections; we cast it back to its proper type. */ -#ifndef TARGET_KEEP_SECTION -#define TARGET_KEEP_SECTION(ASECT) 0 -#endif - /* Called via bfd_map_over_sections to build up the section table that the objfile references. The objfile contains pointers to the start of the table (objfile->sections) and to the first location after @@ -87,7 +83,7 @@ add_to_objfile_sections (struct bfd *abfd, struct bfd_section *asect, aflag = bfd_get_section_flags (abfd, asect); - if (!(aflag & SEC_ALLOC) && !(TARGET_KEEP_SECTION (asect))) + if (!(aflag & SEC_ALLOC)) return; if (0 == bfd_section_size (abfd, asect)) |