This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Whack TARGET_KEEP_SECTION
- From: Stan Shebs <stan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 30 Jul 2008 14:57:28 -0700
- Subject: Whack TARGET_KEEP_SECTION
Another leftover from a long-forgotten project removed.
Stan
2008-07-30 Stan Shebs <stan@codesourcery.com>
* objfiles.c (TARGET_KEEP_SECTION): Remove.
(add_to_objfile_sections): Remove use.
Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.75
diff -u -p -r1.75 objfiles.c
--- objfiles.c 22 May 2008 16:58:02 -0000 1.75
+++ objfiles.c 30 Jul 2008 21:47:20 -0000
@@ -68,10 +68,6 @@ struct objfile *rt_common_objfile; /* Fo
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 *abf
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))