aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-28 20:44:43 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-28 20:44:43 +0000
commit9b3fa589504692443e3bbef3e4d3c2446c589152 (patch)
treeec39d7af724acce77aae4f2dbbe30677da2406b6
parent4ac3ff671be253bfaaeeab80d01bceecba6532a0 (diff)
downloadgdb-9b3fa589504692443e3bbef3e4d3c2446c589152.zip
gdb-9b3fa589504692443e3bbef3e4d3c2446c589152.tar.gz
gdb-9b3fa589504692443e3bbef3e4d3c2446c589152.tar.bz2
* section.c (bfd_make_section_anyway): New function.
* section.c: Change comments to say several sections can have the same name. * bfd-in2.h: Re-generate to reflect above change. * coffgen.c (make_a_section_from_file): Call bfd_make_section_anyway if still no section after the bfd_coff_make_section_hook. * coffcode.h: Add comment about TWO_DATA_SECS.
-rw-r--r--bfd/bfd-in2.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 2054de7..43a3a71 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -620,6 +620,12 @@ typedef struct sec
translate to bfd_com_section), but ECOFF has two. */
#define SEC_IS_COMMON 0x8000
+ /* The section contains only debugging information. For
+ example, this is set for ELF .debug and .stab sections.
+ strip tests this flag to see if a section can be
+ discarded. */
+#define SEC_DEBUGGING 0x10000
+
/* End of section flags. */
/* The virtual memory address of the section - where it will be
@@ -770,7 +776,10 @@ bfd_get_section_by_name PARAMS ((bfd *abfd, CONST char *name));
asection *
bfd_make_section_old_way PARAMS ((bfd *, CONST char *name));
-asection *
+asection *
+bfd_make_section_anyway PARAMS ((bfd *, CONST char *name));
+
+asection *
bfd_make_section PARAMS ((bfd *, CONST char *name));
boolean
@@ -1558,6 +1567,7 @@ struct _bfd
struct hpux_core_struct *hpux_core_data;
struct sgi_core_struct *sgi_core_data;
struct lynx_core_struct *lynx_core_data;
+ struct osf_core_struct *osf_core_data;
PTR any;
} tdata;