aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-20 14:38:46 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-20 14:38:46 +0000
commit198beae2cfaf8ea8bfd554ef8d3d3feeabc33ed7 (patch)
treea7f14543a6127d3f9fbbfb8dfc79313cc4a22e5a
parente7d715e57543306e019954928a714afea276d9ca (diff)
downloadgdb-198beae2cfaf8ea8bfd554ef8d3d3feeabc33ed7.zip
gdb-198beae2cfaf8ea8bfd554ef8d3d3feeabc33ed7.tar.gz
gdb-198beae2cfaf8ea8bfd554ef8d3d3feeabc33ed7.tar.bz2
2003-10-19 Andrew Cagney <cagney@redhat.com>
* targets.c: Replace "struct sec" with "struct bfd_section" * syms.c, sparclynx.c, section.c, opncls.c: Ditto. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. Index: binutils/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * coffgrok.h (coff_section): Replace 'struct sec" with "struct bfd_section". Index: gdb/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * symtab.c: Replace "struct sec" with "struct bfd_section". * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. Index: ld/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * pe-dll.c: Replace "struct sec" with "struct bfd_section". Index: sim/common/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * sim-base.h: Replace "struct sec" with "struct bfd_section".
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/aout-target.h2
-rw-r--r--bfd/aout-tic30.c2
-rw-r--r--bfd/aoutf1.h2
-rw-r--r--bfd/bfd-in.h24
-rw-r--r--bfd/bfd-in2.h54
-rw-r--r--bfd/bfd.c8
-rw-r--r--bfd/coffgen.c2
-rw-r--r--bfd/elf-bfd.h2
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/elfxx-target.h2
-rw-r--r--bfd/libbfd-in.h6
-rw-r--r--bfd/libbfd.h6
-rw-r--r--bfd/libcoff-in.h2
-rw-r--r--bfd/libcoff.h2
-rw-r--r--bfd/opncls.c6
-rw-r--r--bfd/section.c10
-rw-r--r--bfd/sparclynx.c2
-rw-r--r--bfd/syms.c4
-rw-r--r--bfd/targets.c8
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/coffgrok.h2
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/block.c4
-rw-r--r--gdb/blockframe.c4
-rw-r--r--gdb/linespec.c2
-rw-r--r--gdb/objfiles.c12
-rw-r--r--gdb/symtab.c2
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/pe-dll.c16
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-base.h2
32 files changed, 122 insertions, 95 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 94d47ed..6e2e095 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2003-10-20 Andrew Cagney <cagney@redhat.com>
+
+ * targets.c: Replace "struct sec" with "struct bfd_section"
+ * syms.c, sparclynx.c, section.c, opncls.c: Ditto.
+ * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto.
+ * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto.
+ * aout-tic30.c, aout-target.h:
+ * bfd-in2.h, libcoff.h, libbfd.h: Regenerate.
+
2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs.
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 28af054..3b81273 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -443,7 +443,7 @@ MY_bfd_final_link (abfd, info)
#endif
#ifndef MY_bfd_debug_info_accumulate
#define MY_bfd_debug_info_accumulate \
- (void (*) PARAMS ((bfd*, struct sec *))) bfd_void
+ (void (*) PARAMS ((bfd*, struct bfd_section *))) bfd_void
#endif
#ifndef MY_core_file_failing_command
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index 29106b9..1f37b99 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -899,7 +899,7 @@ tic30_aout_set_arch_mach (abfd, arch, machine)
#endif
#ifndef MY_bfd_debug_info_accumulate
#define MY_bfd_debug_info_accumulate \
- (void (*) PARAMS ((bfd*, struct sec *))) bfd_void
+ (void (*) PARAMS ((bfd*, struct bfd_section *))) bfd_void
#endif
#ifndef MY_core_file_failing_command
diff --git a/bfd/aoutf1.h b/bfd/aoutf1.h
index 4d66d87..d572ba8 100644
--- a/bfd/aoutf1.h
+++ b/bfd/aoutf1.h
@@ -834,7 +834,7 @@ static const struct aout_backend_data sunos4_aout_backend =
#define MY_bfd_debug_info_start bfd_void
#define MY_bfd_debug_info_end bfd_void
#define MY_bfd_debug_info_accumulate \
- (void (*) PARAMS ((bfd *, struct sec *))) bfd_void
+ (void (*) PARAMS ((bfd *, struct bfd_section *))) bfd_void
#define MY_core_file_p sunos4_core_file_p
#define MY_write_object_contents NAME(aout,sunos4_write_object_contents)
#define MY_backend_data &sunos4_aout_backend
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index cfc99b8..ae27150 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -314,7 +314,7 @@ alent;
#define align_power(addr, align) \
(((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
-typedef struct sec *sec_ptr;
+typedef struct bfd_section *sec_ptr;
#define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)
#define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)
@@ -520,7 +520,7 @@ extern bfd_boolean bfd_cache_close
extern bfd_boolean bfd_record_phdr
(bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
- bfd_boolean, bfd_boolean, unsigned int, struct sec **);
+ bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
/* Byte swapping routines. */
@@ -601,7 +601,7 @@ extern bfd_boolean bfd_ecoff_write_accumulated_debug
const struct ecoff_debug_swap *swap,
struct bfd_link_info *info, file_ptr where);
extern bfd_boolean bfd_mips_ecoff_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* Externally visible ELF routines. */
@@ -620,10 +620,10 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list
(bfd *, struct bfd_link_needed_list **);
extern bfd_boolean bfd_elf32_size_dynamic_sections
(bfd *, const char *, const char *, const char *, const char * const *,
- struct bfd_link_info *, struct sec **, struct bfd_elf_version_tree *);
+ struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *);
extern bfd_boolean bfd_elf64_size_dynamic_sections
(bfd *, const char *, const char *, const char *, const char * const *,
- struct bfd_link_info *, struct sec **, struct bfd_elf_version_tree *);
+ struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *);
extern void bfd_elf_set_dt_needed_name
(bfd *, const char *);
extern void bfd_elf_set_dt_needed_soname
@@ -678,9 +678,9 @@ extern int bfd_get_sign_extend_vma
(bfd *);
extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
extern bfd_boolean bfd_mips_elf32_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* SunOS shared library support routines for the linker. */
@@ -689,7 +689,7 @@ extern struct bfd_link_needed_list *bfd_sunos_get_needed_list
extern bfd_boolean bfd_sunos_record_link_assignment
(bfd *, struct bfd_link_info *, const char *);
extern bfd_boolean bfd_sunos_size_dynamic_sections
- (bfd *, struct bfd_link_info *, struct sec **, struct sec **, struct sec **);
+ (bfd *, struct bfd_link_info *, struct bfd_section **, struct bfd_section **, struct bfd_section **);
/* Linux shared library support routines for the linker. */
@@ -743,7 +743,7 @@ extern bfd_boolean bfd_xcoff_record_link_assignment
extern bfd_boolean bfd_xcoff_size_dynamic_sections
(bfd *, struct bfd_link_info *, const char *, const char *,
unsigned long, unsigned long, unsigned long, bfd_boolean,
- int, bfd_boolean, bfd_boolean, struct sec **, bfd_boolean);
+ int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);
extern bfd_boolean bfd_xcoff_link_generate_rtinit
(bfd *, const char *, const char *, bfd_boolean);
@@ -768,7 +768,7 @@ extern bfd_boolean bfd_coff_set_symbol_class
(bfd *, struct symbol_cache_entry *, unsigned int);
extern bfd_boolean bfd_m68k_coff_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* ARM Interworking support. Called from linker. */
extern bfd_boolean bfd_arm_allocate_interworking_sections
@@ -815,10 +815,10 @@ extern unsigned int bfd_arm_get_mach_from_notes
/* TI COFF load page support. */
extern void bfd_ticoff_set_section_load_page
- (struct sec *, int);
+ (struct bfd_section *, int);
extern int bfd_ticoff_get_section_load_page
- (struct sec *);
+ (struct bfd_section *);
/* H8/300 functions. */
extern bfd_vma bfd_h8300_pad_address
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e4bf1d5..e7d25cb 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -321,7 +321,7 @@ alent;
#define align_power(addr, align) \
(((addr) + ((bfd_vma) 1 << (align)) - 1) & ((bfd_vma) -1 << (align)))
-typedef struct sec *sec_ptr;
+typedef struct bfd_section *sec_ptr;
#define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0)
#define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0)
@@ -527,7 +527,7 @@ extern bfd_boolean bfd_cache_close
extern bfd_boolean bfd_record_phdr
(bfd *, unsigned long, bfd_boolean, flagword, bfd_boolean, bfd_vma,
- bfd_boolean, bfd_boolean, unsigned int, struct sec **);
+ bfd_boolean, bfd_boolean, unsigned int, struct bfd_section **);
/* Byte swapping routines. */
@@ -608,7 +608,7 @@ extern bfd_boolean bfd_ecoff_write_accumulated_debug
const struct ecoff_debug_swap *swap,
struct bfd_link_info *info, file_ptr where);
extern bfd_boolean bfd_mips_ecoff_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* Externally visible ELF routines. */
@@ -627,10 +627,10 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list
(bfd *, struct bfd_link_needed_list **);
extern bfd_boolean bfd_elf32_size_dynamic_sections
(bfd *, const char *, const char *, const char *, const char * const *,
- struct bfd_link_info *, struct sec **, struct bfd_elf_version_tree *);
+ struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *);
extern bfd_boolean bfd_elf64_size_dynamic_sections
(bfd *, const char *, const char *, const char *, const char * const *,
- struct bfd_link_info *, struct sec **, struct bfd_elf_version_tree *);
+ struct bfd_link_info *, struct bfd_section **, struct bfd_elf_version_tree *);
extern void bfd_elf_set_dt_needed_name
(bfd *, const char *);
extern void bfd_elf_set_dt_needed_soname
@@ -685,9 +685,9 @@ extern int bfd_get_sign_extend_vma
(bfd *);
extern bfd_boolean bfd_m68k_elf32_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
extern bfd_boolean bfd_mips_elf32_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* SunOS shared library support routines for the linker. */
@@ -696,7 +696,7 @@ extern struct bfd_link_needed_list *bfd_sunos_get_needed_list
extern bfd_boolean bfd_sunos_record_link_assignment
(bfd *, struct bfd_link_info *, const char *);
extern bfd_boolean bfd_sunos_size_dynamic_sections
- (bfd *, struct bfd_link_info *, struct sec **, struct sec **, struct sec **);
+ (bfd *, struct bfd_link_info *, struct bfd_section **, struct bfd_section **, struct bfd_section **);
/* Linux shared library support routines for the linker. */
@@ -750,7 +750,7 @@ extern bfd_boolean bfd_xcoff_record_link_assignment
extern bfd_boolean bfd_xcoff_size_dynamic_sections
(bfd *, struct bfd_link_info *, const char *, const char *,
unsigned long, unsigned long, unsigned long, bfd_boolean,
- int, bfd_boolean, bfd_boolean, struct sec **, bfd_boolean);
+ int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);
extern bfd_boolean bfd_xcoff_link_generate_rtinit
(bfd *, const char *, const char *, bfd_boolean);
@@ -775,7 +775,7 @@ extern bfd_boolean bfd_coff_set_symbol_class
(bfd *, struct symbol_cache_entry *, unsigned int);
extern bfd_boolean bfd_m68k_coff_create_embedded_relocs
- (bfd *, struct bfd_link_info *, struct sec *, struct sec *, char **);
+ (bfd *, struct bfd_link_info *, struct bfd_section *, struct bfd_section *, char **);
/* ARM Interworking support. Called from linker. */
extern bfd_boolean bfd_arm_allocate_interworking_sections
@@ -822,10 +822,10 @@ extern unsigned int bfd_arm_get_mach_from_notes
/* TI COFF load page support. */
extern void bfd_ticoff_set_section_load_page
- (struct sec *, int);
+ (struct bfd_section *, int);
extern int bfd_ticoff_get_section_load_page
- (struct sec *);
+ (struct bfd_section *);
/* H8/300 functions. */
extern bfd_vma bfd_h8300_pad_address
@@ -865,11 +865,11 @@ unsigned long bfd_calc_gnu_debuglink_crc32
char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);
-struct sec *bfd_create_gnu_debuglink_section
+struct bfd_section *bfd_create_gnu_debuglink_section
(bfd *abfd, const char *filename);
bfd_boolean bfd_fill_in_gnu_debuglink_section
- (bfd *abfd, struct sec *sect, const char *filename);
+ (bfd *abfd, struct bfd_section *sect, const char *filename);
/* Extracted from libbfd.c. */
@@ -1036,7 +1036,7 @@ struct bfd_comdat_info
long symbol;
};
-typedef struct sec
+typedef struct bfd_section
{
/* The name of the section; the name isn't a copy, the pointer is
the same as that passed to bfd_make_section. */
@@ -1049,7 +1049,7 @@ typedef struct sec
int index;
/* The next section in the list belonging to the BFD, or NULL. */
- struct sec *next;
+ struct bfd_section *next;
/* The field flags contains attributes of the section. Some
flags are read in from the object file, and some are
@@ -1315,7 +1315,7 @@ typedef struct sec
bfd_vma output_offset;
/* The output section through which to map on output. */
- struct sec *output_section;
+ struct bfd_section *output_section;
/* The alignment requirement of the section, as an exponent of 2 -
e.g., 3 aligns to 2^3 (or 8). */
@@ -1365,7 +1365,7 @@ typedef struct sec
/* Points to the kept section if this section is a link-once section,
and is discarded. */
- struct sec *kept_section;
+ struct bfd_section *kept_section;
/* When a section is being output, this value changes as more
linenumbers are written out. */
@@ -3593,7 +3593,7 @@ typedef struct symbol_cache_entry
/* A pointer to the section to which this symbol is
relative. This will always be non NULL, there are special
sections for undefined and absolute symbols. */
- struct sec *section;
+ struct bfd_section *section;
/* Back end special data. */
union
@@ -3724,10 +3724,10 @@ struct bfd
struct bfd_hash_table section_htab;
/* Pointer to linked list of sections. */
- struct sec *sections;
+ struct bfd_section *sections;
/* The place where we add to the section list. */
- struct sec **section_tail;
+ struct bfd_section **section_tail;
/* The number of sections. */
unsigned int section_count;
@@ -3973,8 +3973,8 @@ struct bfd_preserve
void *tdata;
flagword flags;
const struct bfd_arch_info *arch_info;
- struct sec *sections;
- struct sec **section_tail;
+ struct bfd_section *sections;
+ struct bfd_section **section_tail;
unsigned int section_count;
struct bfd_hash_table section_htab;
};
@@ -4240,7 +4240,7 @@ typedef struct bfd_target
alent * (*_get_lineno) (bfd *, struct symbol_cache_entry *);
bfd_boolean (*_bfd_find_nearest_line)
- (bfd *, struct sec *, struct symbol_cache_entry **, bfd_vma,
+ (bfd *, struct bfd_section *, struct symbol_cache_entry **, bfd_vma,
const char **, const char **, unsigned int *);
/* Back-door to allow format-aware applications to create debug symbols
while using BFD for everything else. Currently used by the assembler
@@ -4300,7 +4300,7 @@ typedef struct bfd_target
bfd_byte *, bfd_boolean, struct symbol_cache_entry **);
bfd_boolean (*_bfd_relax_section)
- (bfd *, struct sec *, struct bfd_link_info *, bfd_boolean *);
+ (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
/* Create a hash table for the linker. Different backends store
different information in this table. */
@@ -4321,7 +4321,7 @@ typedef struct bfd_target
bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
/* Should this section be split up into smaller pieces during linking. */
- bfd_boolean (*_bfd_link_split_section) (bfd *, struct sec *);
+ bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
/* Remove sections that are not referenced from the output. */
bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
@@ -4330,7 +4330,7 @@ typedef struct bfd_target
bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
/* Discard members of a group. */
- bfd_boolean (*_bfd_discard_group) (bfd *, struct sec *);
+ bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
/* Routines to handle dynamic symbols and relocs. */
#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 2957747..6924d09 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -113,10 +113,10 @@ CODE_FRAGMENT
. struct bfd_hash_table section_htab;
.
. {* Pointer to linked list of sections. *}
-. struct sec *sections;
+. struct bfd_section *sections;
.
. {* The place where we add to the section list. *}
-. struct sec **section_tail;
+. struct bfd_section **section_tail;
.
. {* The number of sections. *}
. unsigned int section_count;
@@ -1276,8 +1276,8 @@ CODE_FRAGMENT
. void *tdata;
. flagword flags;
. const struct bfd_arch_info *arch_info;
-. struct sec *sections;
-. struct sec **section_tail;
+. struct bfd_section *sections;
+. struct bfd_section **section_tail;
. unsigned int section_count;
. struct bfd_hash_table section_htab;
.};
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 5896a00..7f4063c 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -329,7 +329,7 @@ coff_section_from_bfd_index (abfd, index)
bfd *abfd;
int index;
{
- struct sec *answer = abfd->sections;
+ struct bfd_section *answer = abfd->sections;
if (index == N_ABS)
return bfd_abs_section_ptr;
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index a4f46a6..13f800c 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1342,7 +1342,7 @@ extern bfd_boolean _bfd_elf_slurp_version_tables
extern bfd_boolean _bfd_elf_merge_sections
(bfd *, struct bfd_link_info *);
extern bfd_boolean bfd_elf_discard_group
- (bfd *, struct sec *);
+ (bfd *, struct bfd_section *);
extern void bfd_elf_set_group_contents
(bfd *, asection *, void *);
extern void _bfd_elf_link_just_syms
diff --git a/bfd/elf.c b/bfd/elf.c
index 417fd50..c95fcd0 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4432,7 +4432,7 @@ _bfd_elf_write_corefile_contents (bfd *abfd)
/* Given a section, search the header to find them. */
int
-_bfd_elf_section_from_bfd_section (bfd *abfd, struct sec *asect)
+_bfd_elf_section_from_bfd_section (bfd *abfd, struct bfd_section *asect)
{
const struct elf_backend_data *bed;
int index;
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 723cdf2..40c49d7 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -99,7 +99,7 @@
#define bfd_elfNN_bfd_debug_info_start bfd_void
#define bfd_elfNN_bfd_debug_info_end bfd_void
#define bfd_elfNN_bfd_debug_info_accumulate \
- ((void (*) (bfd*, struct sec *)) bfd_void)
+ ((void (*) (bfd*, struct bfd_section *)) bfd_void)
#ifndef bfd_elfNN_bfd_get_relocated_section_contents
#define bfd_elfNN_bfd_get_relocated_section_contents \
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 66b6cc1..2d54b27 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -355,7 +355,7 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
bfd_false)
#define _bfd_nolink_bfd_discard_group \
- ((bfd_boolean (*) (bfd *, struct sec *)) \
+ ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
bfd_false)
#define _bfd_nolink_bfd_link_hash_table_create \
((struct bfd_link_hash_table *(*) (bfd *)) bfd_nullvoidptr)
@@ -368,7 +368,7 @@ extern bfd_boolean _bfd_generic_set_section_contents
#define _bfd_nolink_bfd_final_link \
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_split_section \
- ((bfd_boolean (*) (bfd *, struct sec *)) bfd_false)
+ ((bfd_boolean (*) (bfd *, struct bfd_section *)) bfd_false)
/* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not
have dynamic symbols or relocs. Use BFD_JUMP_TABLE_DYNAMIC
@@ -464,7 +464,7 @@ extern bfd_boolean _bfd_generic_final_link
(bfd *, struct bfd_link_info *);
extern bfd_boolean _bfd_generic_link_split_section
- (bfd *, struct sec *);
+ (bfd *, struct bfd_section *);
/* Generic reloc_link_order processing routine. */
extern bfd_boolean _bfd_generic_reloc_link_order
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index eba9a7d..a8f8b2c 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -360,7 +360,7 @@ extern bfd_boolean _bfd_generic_set_section_contents
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
bfd_false)
#define _bfd_nolink_bfd_discard_group \
- ((bfd_boolean (*) (bfd *, struct sec *)) \
+ ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
bfd_false)
#define _bfd_nolink_bfd_link_hash_table_create \
((struct bfd_link_hash_table *(*) (bfd *)) bfd_nullvoidptr)
@@ -373,7 +373,7 @@ extern bfd_boolean _bfd_generic_set_section_contents
#define _bfd_nolink_bfd_final_link \
((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_false)
#define _bfd_nolink_bfd_link_split_section \
- ((bfd_boolean (*) (bfd *, struct sec *)) bfd_false)
+ ((bfd_boolean (*) (bfd *, struct bfd_section *)) bfd_false)
/* Routines to use for BFD_JUMP_TABLE_DYNAMIC for targets which do not
have dynamic symbols or relocs. Use BFD_JUMP_TABLE_DYNAMIC
@@ -469,7 +469,7 @@ extern bfd_boolean _bfd_generic_final_link
(bfd *, struct bfd_link_info *);
extern bfd_boolean _bfd_generic_link_split_section
- (bfd *, struct sec *);
+ (bfd *, struct bfd_section *);
/* Generic reloc_link_order processing routine. */
extern bfd_boolean _bfd_generic_reloc_link_order
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index 19e5338..6b5947c 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -301,7 +301,7 @@ struct coff_link_hash_table
/* Functions in coffgen.c. */
extern const bfd_target *coff_object_p
PARAMS ((bfd *));
-extern struct sec *coff_section_from_bfd_index
+extern struct bfd_section *coff_section_from_bfd_index
PARAMS ((bfd *, int));
extern long coff_get_symtab_upper_bound
PARAMS ((bfd *));
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index be2de1f..5771132 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -305,7 +305,7 @@ struct coff_link_hash_table
/* Functions in coffgen.c. */
extern const bfd_target *coff_object_p
PARAMS ((bfd *));
-extern struct sec *coff_section_from_bfd_index
+extern struct bfd_section *coff_section_from_bfd_index
PARAMS ((bfd *, int));
extern long coff_get_symtab_upper_bound
PARAMS ((bfd *));
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 086775b..34b39ae 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -1024,7 +1024,7 @@ FUNCTION
bfd_create_gnu_debuglink_section
SYNOPSIS
- struct sec *bfd_create_gnu_debuglink_section
+ struct bfd_section *bfd_create_gnu_debuglink_section
(bfd *abfd, const char *filename);
DESCRIPTION
@@ -1089,7 +1089,7 @@ FUNCTION
SYNOPSIS
bfd_boolean bfd_fill_in_gnu_debuglink_section
- (bfd *abfd, struct sec *sect, const char *filename);
+ (bfd *abfd, struct bfd_section *sect, const char *filename);
DESCRIPTION
@@ -1105,7 +1105,7 @@ RETURNS
bfd_boolean
bfd_fill_in_gnu_debuglink_section (bfd *abfd,
- struct sec *sect,
+ struct bfd_section *sect,
const char *filename)
{
bfd_size_type debuglink_size;
diff --git a/bfd/section.c b/bfd/section.c
index 5842748..30b1330 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -166,7 +166,7 @@ CODE_FRAGMENT
. long symbol;
.};
.
-.typedef struct sec
+.typedef struct bfd_section
.{
. {* The name of the section; the name isn't a copy, the pointer is
. the same as that passed to bfd_make_section. *}
@@ -179,7 +179,7 @@ CODE_FRAGMENT
. int index;
.
. {* The next section in the list belonging to the BFD, or NULL. *}
-. struct sec *next;
+. struct bfd_section *next;
.
. {* The field flags contains attributes of the section. Some
. flags are read in from the object file, and some are
@@ -445,7 +445,7 @@ CODE_FRAGMENT
. bfd_vma output_offset;
.
. {* The output section through which to map on output. *}
-. struct sec *output_section;
+. struct bfd_section *output_section;
.
. {* The alignment requirement of the section, as an exponent of 2 -
. e.g., 3 aligns to 2^3 (or 8). *}
@@ -495,7 +495,7 @@ CODE_FRAGMENT
.
. {* Points to the kept section if this section is a link-once section,
. and is discarded. *}
-. struct sec *kept_section;
+. struct bfd_section *kept_section;
.
. {* When a section is being output, this value changes as more
. linenumbers are written out. *}
@@ -635,7 +635,7 @@ static const asymbol global_syms[] =
0, 0, 0, 0, \
\
/* output_offset, output_section, alignment_power, */ \
- 0, (struct sec *) &SEC, 0, \
+ 0, (struct bfd_section *) &SEC, 0, \
\
/* relocation, orelocation, reloc_count, filepos, rel_filepos, */ \
NULL, NULL, 0, 0, 0, \
diff --git a/bfd/sparclynx.c b/bfd/sparclynx.c
index 6be9a44..a7d78c6 100644
--- a/bfd/sparclynx.c
+++ b/bfd/sparclynx.c
@@ -245,7 +245,7 @@ static const struct aout_backend_data sparclynx_aout_backend =
#define MY_bfd_debug_info_start bfd_void
#define MY_bfd_debug_info_end bfd_void
#define MY_bfd_debug_info_accumulate \
- (void (*) PARAMS ((bfd *, struct sec *))) bfd_void
+ (void (*) PARAMS ((bfd *, struct bfd_section *))) bfd_void
#define MY_write_object_contents NAME(aout,sparclynx_write_object_contents)
#define MY_backend_data &sparclynx_aout_backend
diff --git a/bfd/syms.c b/bfd/syms.c
index 33fd9fd..86ea521 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -293,7 +293,7 @@ CODE_FRAGMENT
. {* A pointer to the section to which this symbol is
. relative. This will always be non NULL, there are special
. sections for undefined and absolute symbols. *}
-. struct sec *section;
+. struct bfd_section *section;
.
. {* Back end special data. *}
. union
@@ -581,7 +581,7 @@ coff_section_type (const char *s)
we could perhaps obsolete coff_section_type. */
static char
-decode_section_type (const struct sec *section)
+decode_section_type (const struct bfd_section *section)
{
if (section->flags & SEC_CODE)
return 't';
diff --git a/bfd/targets.c b/bfd/targets.c
index fe8b01c..7bf8789 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -354,7 +354,7 @@ BFD_JUMP_TABLE macros.
.
. alent * (*_get_lineno) (bfd *, struct symbol_cache_entry *);
. bfd_boolean (*_bfd_find_nearest_line)
-. (bfd *, struct sec *, struct symbol_cache_entry **, bfd_vma,
+. (bfd *, struct bfd_section *, struct symbol_cache_entry **, bfd_vma,
. const char **, const char **, unsigned int *);
. {* Back-door to allow format-aware applications to create debug symbols
. while using BFD for everything else. Currently used by the assembler
@@ -414,7 +414,7 @@ BFD_JUMP_TABLE macros.
. bfd_byte *, bfd_boolean, struct symbol_cache_entry **);
.
. bfd_boolean (*_bfd_relax_section)
-. (bfd *, struct sec *, struct bfd_link_info *, bfd_boolean *);
+. (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
.
. {* Create a hash table for the linker. Different backends store
. different information in this table. *}
@@ -435,7 +435,7 @@ BFD_JUMP_TABLE macros.
. bfd_boolean (*_bfd_final_link) (bfd *, struct bfd_link_info *);
.
. {* Should this section be split up into smaller pieces during linking. *}
-. bfd_boolean (*_bfd_link_split_section) (bfd *, struct sec *);
+. bfd_boolean (*_bfd_link_split_section) (bfd *, struct bfd_section *);
.
. {* Remove sections that are not referenced from the output. *}
. bfd_boolean (*_bfd_gc_sections) (bfd *, struct bfd_link_info *);
@@ -444,7 +444,7 @@ BFD_JUMP_TABLE macros.
. bfd_boolean (*_bfd_merge_sections) (bfd *, struct bfd_link_info *);
.
. {* Discard members of a group. *}
-. bfd_boolean (*_bfd_discard_group) (bfd *, struct sec *);
+. bfd_boolean (*_bfd_discard_group) (bfd *, struct bfd_section *);
.
. {* Routines to handle dynamic symbols and relocs. *}
.#define BFD_JUMP_TABLE_DYNAMIC(NAME) \
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 11a6dc5..6ee23c4 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-20 Andrew Cagney <cagney@redhat.com>
+
+ * coffgrok.h (coff_section): Replace 'struct sec" with "struct
+ bfd_section".
+
2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
* objdump.c (read_section_stabs): Just read one section, return
diff --git a/binutils/coffgrok.h b/binutils/coffgrok.h
index d071d24..c063f1d 100644
--- a/binutils/coffgrok.h
+++ b/binutils/coffgrok.h
@@ -53,7 +53,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
int nrelocs;
int size;
struct coff_reloc *relocs;
- struct sec *bfd_section;
+ struct bfd_section *bfd_section;
};
struct coff_ofile
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f64fe7b..28fa745 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-20 Andrew Cagney <cagney@redhat.com>
+
+ * symtab.c: Replace "struct sec" with "struct bfd_section".
+ * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
+
2003-10-19 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: Add lines for:
diff --git a/gdb/block.c b/gdb/block.c
index 8729a24..28b1181 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -71,7 +71,7 @@ block_function (const struct block *bl)
is NULL, we don't pass this information back to the caller. */
struct blockvector *
-blockvector_for_pc_sect (CORE_ADDR pc, struct sec *section,
+blockvector_for_pc_sect (CORE_ADDR pc, struct bfd_section *section,
int *pindex, struct symtab *symtab)
{
struct block *b;
@@ -136,7 +136,7 @@ blockvector_for_pc (CORE_ADDR pc, int *pindex)
in the specified section, or 0 if there is none. */
struct block *
-block_for_pc_sect (CORE_ADDR pc, struct sec *section)
+block_for_pc_sect (CORE_ADDR pc, struct bfd_section *section)
{
struct blockvector *bl;
int index;
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 04be0d1..fa2a17f 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -294,7 +294,7 @@ get_frame_function (struct frame_info *frame)
Returns 0 if function is not known. */
struct symbol *
-find_pc_sect_function (CORE_ADDR pc, struct sec *section)
+find_pc_sect_function (CORE_ADDR pc, struct bfd_section *section)
{
struct block *b = block_for_pc_sect (pc, section);
if (b == 0)
@@ -317,7 +317,7 @@ find_pc_function (CORE_ADDR pc)
static CORE_ADDR cache_pc_function_low = 0;
static CORE_ADDR cache_pc_function_high = 0;
static char *cache_pc_function_name = 0;
-static struct sec *cache_pc_function_section = NULL;
+static struct bfd_section *cache_pc_function_section = NULL;
/* Clear cache, e.g. when symbol table is discarded. */
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 7e8c6a7..b3eb05f 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1736,7 +1736,7 @@ minsym_found (int funfirstline, struct minimal_symbol *msymbol)
values.sals = (struct symtab_and_line *)
xmalloc (sizeof (struct symtab_and_line));
values.sals[0] = find_pc_sect_line (SYMBOL_VALUE_ADDRESS (msymbol),
- (struct sec *) 0, 0);
+ (struct bfd_section *) 0, 0);
values.sals[0].section = SYMBOL_BFD_SECTION (msymbol);
if (funfirstline)
{
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ce927fc..1321b82 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -1044,14 +1044,14 @@ map_to_file (int fd)
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
-/* Returns a section whose range includes PC and SECTION,
- or NULL if none found. Note the distinction between the return type,
- struct obj_section (which is defined in gdb), and the input type
- struct sec (which is a bfd-defined data type). The obj_section
- contains a pointer to the bfd struct sec section. */
+/* Returns a section whose range includes PC and SECTION, or NULL if
+ none found. Note the distinction between the return type, struct
+ obj_section (which is defined in gdb), and the input type "struct
+ bfd_section" (which is a bfd-defined data type). The obj_section
+ contains a pointer to the "struct bfd_section". */
struct obj_section *
-find_pc_sect_section (CORE_ADDR pc, struct sec *section)
+find_pc_sect_section (CORE_ADDR pc, struct bfd_section *section)
{
struct obj_section *s;
struct objfile *objfile;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index d984a35..3a3a547 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1872,7 +1872,7 @@ find_pc_symtab (CORE_ADDR pc)
/* If it's worth the effort, we could be using a binary search. */
struct symtab_and_line
-find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent)
+find_pc_sect_line (CORE_ADDR pc, struct bfd_section *section, int notcurrent)
{
struct symtab *s;
struct linetable *l;
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 406538d..5237d5e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-20 Andrew Cagney <cagney@redhat.com>
+
+ * pe-dll.c: Replace "struct sec" with "struct bfd_section".
+
2003-10-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
* Makefile.am: Remove old (before GCC 3.3) emulations for AVR
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 9682494..f9417be 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -137,7 +137,7 @@ int pe_dll_extra_pe_debug = 0;
static bfd_vma image_base;
static bfd *filler_bfd;
-static struct sec *edata_s, *reloc_s;
+static struct bfd_section *edata_s, *reloc_s;
static unsigned char *edata_d, *reloc_d;
static size_t edata_sz, reloc_sz;
static int runtime_pseudo_relocs_created = 0;
@@ -339,7 +339,7 @@ pe_export_sort (const void *va, const void *vb)
defined, since we can't export symbols we don't have. */
static bfd_vma *exported_symbol_offsets;
-static struct sec **exported_symbol_sections;
+static struct bfd_section **exported_symbol_sections;
static int export_table_size;
static int count_exported;
static int count_exported_byname;
@@ -501,7 +501,7 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
int i, j;
struct bfd_link_hash_entry *blhe;
bfd *b;
- struct sec *s;
+ struct bfd_section *s;
def_file_export *e = 0;
if (!pe_def_file)
@@ -626,9 +626,9 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info)
e = pe_def_file->exports;
exported_symbol_offsets = xmalloc (NE * sizeof (bfd_vma));
- exported_symbol_sections = xmalloc (NE * sizeof (struct sec *));
+ exported_symbol_sections = xmalloc (NE * sizeof (struct bfd_section *));
- memset (exported_symbol_sections, 0, NE * sizeof (struct sec *));
+ memset (exported_symbol_sections, 0, NE * sizeof (struct bfd_section *));
max_ordinal = 0;
min_ordinal = 65536;
count_exported = 0;
@@ -967,7 +967,7 @@ fill_edata (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED)
{
if (pe_def_file->exports[s].ordinal != -1)
{
- struct sec *ssec = exported_symbol_sections[s];
+ struct bfd_section *ssec = exported_symbol_sections[s];
unsigned long srva = (exported_symbol_offsets[s]
+ ssec->output_section->vma
+ ssec->output_offset);
@@ -993,7 +993,7 @@ fill_edata (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED)
}
-static struct sec *current_sec;
+static struct bfd_section *current_sec;
void
pe_walk_relocs_of_symbol (struct bfd_link_info *info,
@@ -1060,7 +1060,7 @@ generate_reloc (bfd *abfd, struct bfd_link_info *info)
unsigned long page_ptr, page_count;
int bi;
bfd *b;
- struct sec *s;
+ struct bfd_section *s;
total_relocs = 0;
for (b = info->input_bfds; b; b = b->link_next)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index be39aba..4d4a2fd 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-20 Andrew Cagney <cagney@redhat.com>
+
+ * sim-base.h: Replace "struct sec" with "struct bfd_section".
+
2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
* callback.c (os_ftruncate, os_truncate): New functions.
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h
index 3f702f6..6f565c7 100644
--- a/sim/common/sim-base.h
+++ b/sim/common/sim-base.h
@@ -179,7 +179,7 @@ typedef struct {
#define STATE_PROG_SYMS(sd) ((sd)->base.prog_syms)
/* The program's text section. */
- struct sec *text_section;
+ struct bfd_section *text_section;
/* Starting and ending text section addresses from the bfd. */
SIM_ADDR text_start, text_end;
#define STATE_TEXT_SECTION(sd) ((sd)->base.text_section)