This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: NAME##_get_symtab vs bfd_canonicalize_symtab
On Sat, Oct 11, 2003 at 10:18:56AM -0400, Andrew Cagney wrote:
Hello,
I'm finding this lack of consistency, lets say, confusing ... thoughts
on cleaning it up?
Yes please.
M'kay. I checked this in.
Andrew
Index: doc/ChangeLog
2003-10-15 Andrew Cagney <cagney@redhat.com>
* bfdint.texi (BFD target vector symbols): Rename _get_symtab to
_canonicalize_symtab.
2003-10-15 Andrew Cagney <cagney@redhat.com>
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Replace NAME##_get_symtab
with NAME##_canonicalize_symtab.
* libcoff-in.h (coff_canonicalize_symtab): Update.
* xsym.h (bfd_sym_canonicalize_symtab): Update.
* elf-bfd.h (_bfd_elf_canonicalize_symtab): Update.
* coffgen.c (coff_canonicalize_symtab): Update.
* libbfd-in.h (_bfd_nosymbols_canonicalize_symtab): Update.
* libnlm.h (nlmNAME(canonicalize_symtab)): Update.
* ieee.c (ieee_vec): Update comment.
* libecoff.h (_bfd_ecoff_canonicalize_symtab): Update.
* mmo.c (mmo_canonicalize_symtab): Update.
* nlm-target.h (nlm_canonicalize_symtab): Update.
* nlmcode.h (nlm_canonicalize_symtab): Update.
* i386msdos.c (msdos_canonicalize_symtab): Update.
* hp300hpux.c (MY (canonicalize_symtab)): Update.
* oasys.c (oasys_canonicalize_symtab): Update.
* som.c (som_canonicalize_symtab): Update.
* pef.c (bfd_pef_canonicalize_symtab): Update.
* nlmcode.h (nlm_canonicalize_symtab): Update.
* xsym.c (bfd_sym_canonicalize_symtab): Update.
* vms.c (vms_canonicalize_symtab): Update.
* versados.c (versados_canonicalize_symtab): Update.
* mach-o.c (bfd_mach_o_canonicalize_symtab): Update.
* ieee.c (ieee_canonicalize_symtab): Update.
* pdp11.c (NAME(aout,canonicalize_symtab)): Update.
* reloc.c: Update comment.
* libaout.h (NAME(aout,canonicalize_symtab)): Update.
* coff64-rs6000.c (aix5coff64_vec): Update.
* coff64-rs6000.c (bfd_xcoff_aix5_backend_data): Update.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update.
* aoutx.h (NAME(aout,canonicalize_symtab)): Update.
* elfxx-target.h (bfd_elfNN_canonicalize_symtab): Update.
* hp300hpux.c (MY_canonicalize_symtab): Update.
* ecoff.c (_bfd_ecoff_canonicalize_symtab): Update.
* aout-tic30.c (MY_canonicalize_symtab): Update.
* aout-target.h (MY_canonicalize_symtab): Update.
* ppcboot.c (ppcboot_canonicalize_symtab): Update.
* elf.c (_bfd_elf_canonicalize_symtab): Update.
* elfcode.h (elf_canonicalize_symtab): Update.
* ihex.c (ihex_canonicalize_symtab): Update.
* tekhex.c (tekhex_canonicalize_symtab): Update.
* binary.c (binary_canonicalize_symtab): Update.
* srec.c (srec_canonicalize_symtab): Update.
Index: aout-target.h
===================================================================
RCS file: /cvs/src/src/bfd/aout-target.h,v
retrieving revision 1.18
diff -u -r1.18 aout-target.h
--- aout-target.h 30 Nov 2002 08:39:34 -0000 1.18
+++ aout-target.h 16 Oct 2003 03:34:56 -0000
@@ -470,8 +470,8 @@
#ifndef MY_get_symtab_upper_bound
#define MY_get_symtab_upper_bound NAME(aout,get_symtab_upper_bound)
#endif
-#ifndef MY_get_symtab
-#define MY_get_symtab NAME(aout,get_symtab)
+#ifndef MY_canonicalize_symtab
+#define MY_canonicalize_symtab NAME(aout,canonicalize_symtab)
#endif
#ifndef MY_get_reloc_upper_bound
#define MY_get_reloc_upper_bound NAME(aout,get_reloc_upper_bound)
Index: aout-tic30.c
===================================================================
RCS file: /cvs/src/src/bfd/aout-tic30.c,v
retrieving revision 1.18
diff -u -r1.18 aout-tic30.c
--- aout-tic30.c 13 Mar 2003 09:28:49 -0000 1.18
+++ aout-tic30.c 16 Oct 2003 03:35:21 -0000
@@ -926,8 +926,8 @@
#ifndef MY_get_symtab_upper_bound
#define MY_get_symtab_upper_bound NAME(aout,get_symtab_upper_bound)
#endif
-#ifndef MY_get_symtab
-#define MY_get_symtab NAME(aout,get_symtab)
+#ifndef MY_canonicalize_symtab
+#define MY_canonicalize_symtab NAME(aout,canonicalize_symtab)
#endif
#ifndef MY_get_reloc_upper_bound
#define MY_get_reloc_upper_bound NAME(aout,get_reloc_upper_bound)
Index: aoutx.h
===================================================================
RCS file: /cvs/src/src/bfd/aoutx.h,v
retrieving revision 1.42
diff -u -r1.42 aoutx.h
--- aoutx.h 30 Sep 2003 16:17:11 -0000 1.42
+++ aoutx.h 16 Oct 2003 03:36:28 -0000
@@ -2026,7 +2026,7 @@
}
long
-NAME(aout,get_symtab) (abfd, location)
+NAME(aout,canonicalize_symtab) (abfd, location)
bfd *abfd;
asymbol **location;
{
Index: bfd-in2.h
===================================================================
RCS file: /cvs/src/src/bfd/bfd-in2.h,v
retrieving revision 1.240
diff -u -r1.240 bfd-in2.h
--- bfd-in2.h 13 Oct 2003 15:55:51 -0000 1.240
+++ bfd-in2.h 16 Oct 2003 03:37:19 -0000
@@ -4213,7 +4213,7 @@
/* Entry points used for symbols. */
#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
NAME##_get_symtab_upper_bound, \
- NAME##_get_symtab, \
+ NAME##_canonicalize_symtab, \
NAME##_make_empty_symbol, \
NAME##_print_symbol, \
NAME##_get_symbol_info, \
Index: binary.c
===================================================================
RCS file: /cvs/src/src/bfd/binary.c,v
retrieving revision 1.17
diff -u -r1.17 binary.c
--- binary.c 30 Nov 2002 08:39:35 -0000 1.17
+++ binary.c 16 Oct 2003 03:37:25 -0000
@@ -47,7 +47,7 @@
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
static long binary_get_symtab_upper_bound PARAMS ((bfd *));
static char *mangle_name PARAMS ((bfd *, char *));
-static long binary_get_symtab PARAMS ((bfd *, asymbol **));
+static long binary_canonicalize_symtab PARAMS ((bfd *, asymbol **));
static void binary_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
static bfd_boolean binary_set_section_contents
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
@@ -174,7 +174,7 @@
/* Return the symbol table. */
static long
-binary_get_symtab (abfd, alocation)
+binary_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: coff-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-rs6000.c,v
retrieving revision 1.54
diff -u -r1.54 coff-rs6000.c
--- coff-rs6000.c 25 Jun 2003 06:40:18 -0000 1.54
+++ coff-rs6000.c 16 Oct 2003 03:37:35 -0000
@@ -4165,7 +4165,7 @@
/* Symbols */
coff_get_symtab_upper_bound,
- coff_get_symtab,
+ coff_canonicalize_symtab,
coff_make_empty_symbol,
coff_print_symbol,
coff_get_symbol_info,
@@ -4407,7 +4407,7 @@
/* Symbols */
coff_get_symtab_upper_bound,
- coff_get_symtab,
+ coff_canonicalize_symtab,
coff_make_empty_symbol,
coff_print_symbol,
coff_get_symbol_info,
Index: coff64-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v
retrieving revision 1.45
diff -u -r1.45 coff64-rs6000.c
--- coff64-rs6000.c 25 Jun 2003 06:40:23 -0000 1.45
+++ coff64-rs6000.c 16 Oct 2003 03:37:43 -0000
@@ -2706,7 +2706,7 @@
/* Symbols */
coff_get_symtab_upper_bound,
- coff_get_symtab,
+ coff_canonicalize_symtab,
coff_make_empty_symbol,
coff_print_symbol,
coff_get_symbol_info,
@@ -2949,7 +2949,7 @@
/* Symbols */
coff_get_symtab_upper_bound,
- coff_get_symtab,
+ coff_canonicalize_symtab,
coff_make_empty_symbol,
coff_print_symbol,
coff_get_symbol_info,
Index: coffgen.c
===================================================================
RCS file: /cvs/src/src/bfd/coffgen.c,v
retrieving revision 1.38
diff -u -r1.38 coffgen.c
--- coffgen.c 1 Apr 2003 13:08:05 -0000 1.38
+++ coffgen.c 16 Oct 2003 03:37:57 -0000
@@ -365,7 +365,7 @@
/* Canonicalize a COFF symbol table. */
long
-coff_get_symtab (abfd, alocation)
+coff_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: ecoff.c
===================================================================
RCS file: /cvs/src/src/bfd/ecoff.c,v
retrieving revision 1.27
diff -u -r1.27 ecoff.c
--- ecoff.c 29 Jun 2003 10:06:39 -0000 1.27
+++ ecoff.c 16 Oct 2003 03:40:24 -0000
@@ -1062,7 +1062,7 @@
/* Get the canonical symbols. */
long
-_bfd_ecoff_get_symtab (abfd, alocation)
+_bfd_ecoff_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: elf-bfd.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-bfd.h,v
retrieving revision 1.112
diff -u -r1.112 elf-bfd.h
--- elf-bfd.h 14 Oct 2003 22:43:10 -0000 1.112
+++ elf-bfd.h 16 Oct 2003 03:44:40 -0000
@@ -1359,7 +1359,7 @@
(bfd *, sec_ptr, void *, file_ptr, bfd_size_type);
extern long _bfd_elf_get_symtab_upper_bound
(bfd *);
-extern long _bfd_elf_get_symtab
+extern long _bfd_elf_canonicalize_symtab
(bfd *, asymbol **);
extern long _bfd_elf_get_dynamic_symtab_upper_bound
(bfd *);
Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.200
diff -u -r1.200 elf.c
--- elf.c 23 Sep 2003 00:40:48 -0000 1.200
+++ elf.c 16 Oct 2003 03:46:59 -0000
@@ -5591,7 +5591,7 @@
}
long
-_bfd_elf_get_symtab (bfd *abfd, asymbol **allocation)
+_bfd_elf_canonicalize_symtab (bfd *abfd, asymbol **allocation)
{
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
long symcount = bed->s->slurp_symbol_table (abfd, allocation, FALSE);
Index: elfcode.h
===================================================================
RCS file: /cvs/src/src/bfd/elfcode.h,v
retrieving revision 1.49
diff -u -r1.49 elfcode.h
--- elfcode.h 7 Aug 2003 08:38:09 -0000 1.49
+++ elfcode.h 16 Oct 2003 03:47:01 -0000
@@ -102,7 +102,7 @@
#define elf_get_reloc_upper_bound NAME(bfd_elf,get_reloc_upper_bound)
#define elf_canonicalize_reloc NAME(bfd_elf,canonicalize_reloc)
#define elf_slurp_symbol_table NAME(bfd_elf,slurp_symbol_table)
-#define elf_get_symtab NAME(bfd_elf,get_symtab)
+#define elf_canonicalize_symtab NAME(bfd_elf,canonicalize_symtab)
#define elf_canonicalize_dynamic_symtab \
NAME(bfd_elf,canonicalize_dynamic_symtab)
#define elf_make_empty_symbol NAME(bfd_elf,make_empty_symbol)
Index: elfxx-target.h
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-target.h,v
retrieving revision 1.55
diff -u -r1.55 elfxx-target.h
--- elfxx-target.h 14 Oct 2003 22:43:10 -0000 1.55
+++ elfxx-target.h 16 Oct 2003 03:47:01 -0000
@@ -51,7 +51,7 @@
#ifndef bfd_elfNN_get_symbol_info
#define bfd_elfNN_get_symbol_info _bfd_elf_get_symbol_info
#endif
-#define bfd_elfNN_get_symtab _bfd_elf_get_symtab
+#define bfd_elfNN_canonicalize_symtab _bfd_elf_canonicalize_symtab
#define bfd_elfNN_get_symtab_upper_bound _bfd_elf_get_symtab_upper_bound
#define bfd_elfNN_make_empty_symbol _bfd_elf_make_empty_symbol
#ifndef bfd_elfNN_new_section_hook
Index: hp300hpux.c
===================================================================
RCS file: /cvs/src/src/bfd/hp300hpux.c,v
retrieving revision 1.9
diff -u -r1.9 hp300hpux.c
--- hp300hpux.c 30 Nov 2002 08:39:39 -0000 1.9
+++ hp300hpux.c 16 Oct 2003 03:47:06 -0000
@@ -93,7 +93,7 @@
slurp_symbol_table
swap_std_reloc_in
slurp_reloc_table
- get_symtab
+ canonicalize_symtab
get_symtab_upper_bound
canonicalize_reloc
mkobject
@@ -129,7 +129,7 @@
/* these don't use MY because that causes problems within JUMP_TABLE
(CONCAT2 winds up being expanded recursively, which ANSI C compilers
will not do). */
-#define MY_get_symtab hp300hpux_get_symtab
+#define MY_canonicalize_symtab hp300hpux_canonicalize_symtab
#define MY_get_symtab_upper_bound hp300hpux_get_symtab_upper_bound
#define MY_canonicalize_reloc hp300hpux_canonicalize_reloc
#define MY_write_object_contents hp300hpux_write_object_contents
@@ -208,7 +208,7 @@
bfd_size_type));
bfd_boolean MY (slurp_reloc_table)
PARAMS ((bfd *, sec_ptr, asymbol **));
-long MY (get_symtab)
+long MY (canonicalize_symtab)
PARAMS ((bfd *, asymbol **));
long MY (get_symtab_upper_bound)
PARAMS ((bfd *));
@@ -802,7 +802,7 @@
/* call aout_32 versions if the input file was generated by gcc */
/************************************************************************/
-long aout_32_get_symtab
+long aout_32_canonicalize_symtab
PARAMS ((bfd * abfd, asymbol ** location));
long aout_32_get_symtab_upper_bound
PARAMS ((bfd * abfd));
@@ -811,7 +811,7 @@
asymbol ** symbols));
long
-MY (get_symtab) (abfd, location)
+MY (canonicalize_symtab) (abfd, location)
bfd *abfd;
asymbol **location;
{
@@ -819,7 +819,7 @@
aout_symbol_type *symbase;
if (obj_aout_subformat (abfd) == gnu_encap_format)
- return aout_32_get_symtab (abfd, location);
+ return aout_32_canonicalize_symtab (abfd, location);
if (!MY (slurp_symbol_table) (abfd))
return -1;
Index: i386msdos.c
===================================================================
RCS file: /cvs/src/src/bfd/i386msdos.c,v
retrieving revision 1.11
diff -u -r1.11 i386msdos.c
--- i386msdos.c 30 Nov 2002 08:39:39 -0000 1.11
+++ i386msdos.c 16 Oct 2003 03:47:06 -0000
@@ -186,7 +186,7 @@
#define msdos_set_arch_mach _bfd_generic_set_arch_mach
#define msdos_get_symtab_upper_bound _bfd_nosymbols_get_symtab_upper_bound
-#define msdos_get_symtab _bfd_nosymbols_get_symtab
+#define msdos_canonicalize_symtab _bfd_nosymbols_canonicalize_symtab
#define msdos_print_symbol _bfd_nosymbols_print_symbol
#define msdos_get_symbol_info _bfd_nosymbols_get_symbol_info
#define msdos_find_nearest_line _bfd_nosymbols_find_nearest_line
Index: ieee.c
===================================================================
RCS file: /cvs/src/src/bfd/ieee.c,v
retrieving revision 1.32
diff -u -r1.32 ieee.c
--- ieee.c 25 Jun 2003 06:40:21 -0000 1.32
+++ ieee.c 16 Oct 2003 03:47:19 -0000
@@ -80,7 +80,7 @@
PARAMS ((bfd *));
static long ieee_get_symtab_upper_bound
PARAMS ((bfd *));
-static long ieee_get_symtab
+static long ieee_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
static asection *get_section_entry
PARAMS ((bfd *, ieee_data_type *i, unsigned int));
@@ -1145,7 +1145,7 @@
extern const bfd_target ieee_vec;
static long
-ieee_get_symtab (abfd, location)
+ieee_canonicalize_symtab (abfd, location)
bfd *abfd;
asymbol **location;
{
@@ -4097,10 +4097,11 @@
ieee_update_armap_timestamp */
BFD_JUMP_TABLE_ARCHIVE (ieee),
- /* ieee_get_symtab_upper_bound, ieee_get_symtab, ieee_make_empty_symbol,
- ieee_print_symbol, ieee_get_symbol_info, ieee_bfd_is_local_label_name,
- ieee_get_lineno, ieee_find_nearest_line, ieee_bfd_make_debug_symbol,
- ieee_read_minisymbols, ieee_minisymbol_to_symbol */
+ /* ieee_get_symtab_upper_bound, ieee_canonicalize_symtab,
+ ieee_make_empty_symbol, ieee_print_symbol, ieee_get_symbol_info,
+ ieee_bfd_is_local_label_name, ieee_get_lineno,
+ ieee_find_nearest_line, ieee_bfd_make_debug_symbol,
+ ieee_read_minisymbols, ieee_minisymbol_to_symbol */
BFD_JUMP_TABLE_SYMBOLS (ieee),
/* ieee_get_reloc_upper_bound, ieee_canonicalize_reloc,
Index: ihex.c
===================================================================
RCS file: /cvs/src/src/bfd/ihex.c,v
retrieving revision 1.18
diff -u -r1.18 ihex.c
--- ihex.c 30 Nov 2002 08:39:39 -0000 1.18
+++ ihex.c 16 Oct 2003 03:47:24 -0000
@@ -966,7 +966,7 @@
_bfd_generic_get_section_contents_in_window
#define ihex_get_symtab_upper_bound bfd_0l
-#define ihex_get_symtab \
+#define ihex_canonicalize_symtab \
((long (*) PARAMS ((bfd *, asymbol **))) bfd_0l)
#define ihex_make_empty_symbol _bfd_generic_make_empty_symbol
#define ihex_print_symbol _bfd_nosymbols_print_symbol
Index: libaout.h
===================================================================
RCS file: /cvs/src/src/bfd/libaout.h,v
retrieving revision 1.10
diff -u -r1.10 libaout.h
--- libaout.h 10 Dec 2002 16:15:27 -0000 1.10
+++ libaout.h 16 Oct 2003 03:47:24 -0000
@@ -534,7 +534,7 @@
extern long NAME(aout,get_symtab_upper_bound)
PARAMS ((bfd *));
-extern long NAME(aout,get_symtab)
+extern long NAME(aout,canonicalize_symtab)
PARAMS ((bfd *, asymbol **));
extern void NAME(aout,swap_ext_reloc_in)
Index: libbfd-in.h
===================================================================
RCS file: /cvs/src/src/bfd/libbfd-in.h,v
retrieving revision 1.27
diff -u -r1.27 libbfd-in.h
--- libbfd-in.h 7 Oct 2003 08:53:41 -0000 1.27
+++ libbfd-in.h 16 Oct 2003 03:47:26 -0000
@@ -286,7 +286,7 @@
support. Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). */
#define _bfd_nosymbols_get_symtab_upper_bound _bfd_n1
-#define _bfd_nosymbols_get_symtab \
+#define _bfd_nosymbols_canonicalize_symtab \
((long (*) (bfd *, asymbol **)) _bfd_n1)
#define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol
#define _bfd_nosymbols_print_symbol \
Index: libbfd.h
===================================================================
RCS file: /cvs/src/src/bfd/libbfd.h,v
retrieving revision 1.94
diff -u -r1.94 libbfd.h
--- libbfd.h 7 Oct 2003 08:53:41 -0000 1.94
+++ libbfd.h 16 Oct 2003 03:47:41 -0000
@@ -291,7 +291,7 @@
support. Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). */
#define _bfd_nosymbols_get_symtab_upper_bound _bfd_n1
-#define _bfd_nosymbols_get_symtab \
+#define _bfd_nosymbols_canonicalize_symtab \
((long (*) (bfd *, asymbol **)) _bfd_n1)
#define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol
#define _bfd_nosymbols_print_symbol \
Index: libcoff-in.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff-in.h,v
retrieving revision 1.18
diff -u -r1.18 libcoff-in.h
--- libcoff-in.h 25 Jun 2003 06:40:21 -0000 1.18
+++ libcoff-in.h 16 Oct 2003 03:47:41 -0000
@@ -305,7 +305,7 @@
PARAMS ((bfd *, int));
extern long coff_get_symtab_upper_bound
PARAMS ((bfd *));
-extern long coff_get_symtab
+extern long coff_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
extern int coff_count_linenumbers
PARAMS ((bfd *));
Index: libcoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff.h,v
retrieving revision 1.32
diff -u -r1.32 libcoff.h
--- libcoff.h 25 Jun 2003 11:07:05 -0000 1.32
+++ libcoff.h 16 Oct 2003 03:47:42 -0000
@@ -309,7 +309,7 @@
PARAMS ((bfd *, int));
extern long coff_get_symtab_upper_bound
PARAMS ((bfd *));
-extern long coff_get_symtab
+extern long coff_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
extern int coff_count_linenumbers
PARAMS ((bfd *));
Index: libecoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libecoff.h,v
retrieving revision 1.12
diff -u -r1.12 libecoff.h
--- libecoff.h 30 Nov 2002 08:39:39 -0000 1.12
+++ libecoff.h 16 Oct 2003 03:47:42 -0000
@@ -299,7 +299,7 @@
#define _bfd_ecoff_update_armap_timestamp bfd_true
extern long _bfd_ecoff_get_symtab_upper_bound PARAMS ((bfd *abfd));
-extern long _bfd_ecoff_get_symtab PARAMS ((bfd *abfd, asymbol **alocation));
+extern long _bfd_ecoff_canonicalize_symtab PARAMS ((bfd *abfd, asymbol **alocation));
extern asymbol *_bfd_ecoff_make_empty_symbol PARAMS ((bfd *abfd));
extern void _bfd_ecoff_print_symbol
PARAMS ((bfd *, PTR filep, asymbol *, bfd_print_symbol_type));
Index: libnlm.h
===================================================================
RCS file: /cvs/src/src/bfd/libnlm.h,v
retrieving revision 1.4
diff -u -r1.4 libnlm.h
--- libnlm.h 30 Nov 2002 08:39:39 -0000 1.4
+++ libnlm.h 16 Oct 2003 03:47:42 -0000
@@ -61,7 +61,7 @@
PARAMS ((bfd *, asymbol *, symbol_info *));
extern long nlmNAME(get_symtab_upper_bound)
PARAMS ((bfd *));
-extern long nlmNAME(get_symtab)
+extern long nlmNAME(canonicalize_symtab)
PARAMS ((bfd *, asymbol **));
extern asymbol *nlmNAME(make_empty_symbol)
PARAMS ((bfd *));
Index: mach-o.c
===================================================================
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.4
diff -u -r1.4 mach-o.c
--- mach-o.c 30 Nov 2002 08:39:40 -0000 1.4
+++ mach-o.c 16 Oct 2003 03:47:45 -0000
@@ -80,7 +80,7 @@
PARAMS ((bfd *));
static long bfd_mach_o_get_symtab_upper_bound
PARAMS ((bfd *));
-static long bfd_mach_o_get_symtab
+static long bfd_mach_o_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
static void bfd_mach_o_get_symbol_info
PARAMS ((bfd *, asymbol *, symbol_info *));
@@ -255,7 +255,7 @@
}
static long
-bfd_mach_o_get_symtab (abfd, alocation)
+bfd_mach_o_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
@@ -275,7 +275,7 @@
if (bfd_mach_o_scan_read_symtab_symbols (abfd, &mdata->commands[i].command.symtab) != 0)
{
- fprintf (stderr, "bfd_mach_o_get_symtab: unable to load symbols for section %lu\n", i);
+ fprintf (stderr, "bfd_mach_o_canonicalize_symtab: unable to load symbols for section %lu\n", i);
return 0;
}
Index: mmo.c
===================================================================
RCS file: /cvs/src/src/bfd/mmo.c,v
retrieving revision 1.14
diff -u -r1.14 mmo.c
--- mmo.c 4 Feb 2003 12:34:08 -0000 1.14
+++ mmo.c 16 Oct 2003 03:48:22 -0000
@@ -401,7 +401,7 @@
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
static long mmo_get_symtab_upper_bound
PARAMS ((bfd *));
-static long mmo_get_symtab
+static long mmo_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
static void mmo_get_symbol_info
PARAMS ((bfd *, asymbol *, symbol_info *));
@@ -2200,7 +2200,7 @@
/* Translate the symbol table. */
static long
-mmo_get_symtab (abfd, alocation)
+mmo_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: nlm-target.h
===================================================================
RCS file: /cvs/src/src/bfd/nlm-target.h,v
retrieving revision 1.8
diff -u -r1.8 nlm-target.h
--- nlm-target.h 5 Jun 2002 03:43:11 -0000 1.8
+++ nlm-target.h 16 Oct 2003 03:48:22 -0000
@@ -21,7 +21,7 @@
#define nlm_core_file_p _bfd_dummy_target
#define nlm_get_symtab_upper_bound nlmNAME(get_symtab_upper_bound)
-#define nlm_get_symtab nlmNAME(get_symtab)
+#define nlm_canonicalize_symtab nlmNAME(canonicalize_symtab)
#define nlm_make_empty_symbol nlmNAME(make_empty_symbol)
#define nlm_print_symbol nlmNAME(print_symbol)
#define nlm_get_symbol_info nlmNAME(get_symbol_info)
Index: nlmcode.h
===================================================================
RCS file: /cvs/src/src/bfd/nlmcode.h,v
retrieving revision 1.9
diff -u -r1.9 nlmcode.h
--- nlmcode.h 30 Nov 2002 08:39:40 -0000 1.9
+++ nlmcode.h 16 Oct 2003 03:48:23 -0000
@@ -42,7 +42,7 @@
#define nlm_symbol_type nlmNAME(symbol_type)
#define nlm_get_symtab_upper_bound nlmNAME(get_symtab_upper_bound)
-#define nlm_get_symtab nlmNAME(get_symtab)
+#define nlm_canonicalize_symtab nlmNAME(canonicalize_symtab)
#define nlm_make_empty_symbol nlmNAME(make_empty_symbol)
#define nlm_print_symbol nlmNAME(print_symbol)
#define nlm_get_symbol_info nlmNAME(get_symbol_info)
@@ -918,7 +918,7 @@
symbol table fails. */
long
-nlm_get_symtab (abfd, alocation)
+nlm_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: oasys.c
===================================================================
RCS file: /cvs/src/src/bfd/oasys.c,v
retrieving revision 1.19
diff -u -r1.19 oasys.c
--- oasys.c 4 Feb 2003 12:34:08 -0000 1.19
+++ oasys.c 16 Oct 2003 03:48:29 -0000
@@ -83,7 +83,7 @@
static int oasys_sizeof_headers
PARAMS ((bfd *, bfd_boolean));
-long oasys_get_symtab
+long oasys_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
long oasys_canonicalize_reloc
PARAMS ((bfd *, sec_ptr, arelent **, asymbol **));
@@ -271,7 +271,7 @@
extern const bfd_target oasys_vec;
long
-oasys_get_symtab (abfd, location)
+oasys_canonicalize_symtab (abfd, location)
bfd *abfd;
asymbol **location;
{
Index: pdp11.c
===================================================================
RCS file: /cvs/src/src/bfd/pdp11.c,v
retrieving revision 1.17
diff -u -r1.17 pdp11.c
--- pdp11.c 25 Jun 2003 06:40:22 -0000 1.17
+++ pdp11.c 16 Oct 2003 03:48:50 -0000
@@ -2008,7 +2008,7 @@
long
-NAME(aout,get_symtab) (abfd, location)
+NAME(aout,canonicalize_symtab) (abfd, location)
bfd *abfd;
asymbol **location;
{
Index: pef.c
===================================================================
RCS file: /cvs/src/src/bfd/pef.c,v
retrieving revision 1.5
diff -u -r1.5 pef.c
--- pef.c 29 May 2003 15:05:40 -0000 1.5
+++ pef.c 16 Oct 2003 03:48:57 -0000
@@ -76,7 +76,7 @@
static long bfd_pef_parse_symbols PARAMS ((bfd *, asymbol **));
static long bfd_pef_count_symbols PARAMS ((bfd *));
static long bfd_pef_get_symtab_upper_bound PARAMS ((bfd *));
-static long bfd_pef_get_symtab PARAMS ((bfd *, asymbol **));
+static long bfd_pef_canonicalize_symtab PARAMS ((bfd *, asymbol **));
static asymbol *bfd_pef_make_empty_symbol PARAMS ((bfd *));
static void bfd_pef_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
static int bfd_pef_sizeof_headers PARAMS ((bfd *, bfd_boolean));
@@ -1027,7 +1027,7 @@
}
static long
-bfd_pef_get_symtab (abfd, alocation)
+bfd_pef_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: ppcboot.c
===================================================================
RCS file: /cvs/src/src/bfd/ppcboot.c,v
retrieving revision 1.14
diff -u -r1.14 ppcboot.c
--- ppcboot.c 30 Nov 2002 08:39:40 -0000 1.14
+++ ppcboot.c 16 Oct 2003 03:48:57 -0000
@@ -95,7 +95,7 @@
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
static long ppcboot_get_symtab_upper_bound PARAMS ((bfd *));
static char *mangle_name PARAMS ((bfd *, char *));
-static long ppcboot_get_symtab PARAMS ((bfd *, asymbol **));
+static long ppcboot_canonicalize_symtab PARAMS ((bfd *, asymbol **));
static void ppcboot_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
static bfd_boolean ppcboot_set_section_contents
PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
@@ -287,7 +287,7 @@
/* Return the symbol table. */
static long
-ppcboot_get_symtab (abfd, alocation)
+ppcboot_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: reloc.c
===================================================================
RCS file: /cvs/src/src/bfd/reloc.c,v
retrieving revision 1.91
diff -u -r1.91 reloc.c
--- reloc.c 25 Aug 2003 12:39:14 -0000 1.91
+++ reloc.c 16 Oct 2003 03:48:58 -0000
@@ -122,15 +122,16 @@
o <<sym_ptr_ptr>>
The symbol table pointer points to a pointer to the symbol
- associated with the relocation request. It is
- the pointer into the table returned by the back end's
- <<get_symtab>> action. @xref{Symbols}. The symbol is referenced
- through a pointer to a pointer so that tools like the linker
- can fix up all the symbols of the same name by modifying only
- one pointer. The relocation routine looks in the symbol and
- uses the base of the section the symbol is attached to and the
- value of the symbol as the initial relocation offset. If the
- symbol pointer is zero, then the section provided is looked up.
+ associated with the relocation request. It is the pointer
+ into the table returned by the back end's
+ <<canonicalize_symtab>> action. @xref{Symbols}. The symbol is
+ referenced through a pointer to a pointer so that tools like
+ the linker can fix up all the symbols of the same name by
+ modifying only one pointer. The relocation routine looks in
+ the symbol and uses the base of the section the symbol is
+ attached to and the value of the symbol as the initial
+ relocation offset. If the symbol pointer is zero, then the
+ section provided is looked up.
o <<address>>
Index: som.c
===================================================================
RCS file: /cvs/src/src/bfd/som.c,v
retrieving revision 1.36
diff -u -r1.36 som.c
--- som.c 6 Mar 2003 12:29:04 -0000 1.36
+++ som.c 16 Oct 2003 03:49:04 -0000
@@ -175,7 +175,7 @@
asymbol **, bfd_boolean));
static bfd_boolean som_slurp_reloc_table
PARAMS ((bfd *, asection *, asymbol **, bfd_boolean));
-static long som_get_symtab
+static long som_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
static asymbol * som_make_empty_symbol
PARAMS ((bfd *));
@@ -4520,7 +4520,7 @@
in the symbol table. */
static long
-som_get_symtab (abfd, location)
+som_canonicalize_symtab (abfd, location)
bfd *abfd;
asymbol **location;
{
Index: srec.c
===================================================================
RCS file: /cvs/src/src/bfd/srec.c,v
retrieving revision 1.24
diff -u -r1.24 srec.c
--- srec.c 3 Dec 2002 23:55:48 -0000 1.24
+++ srec.c 16 Oct 2003 03:49:07 -0000
@@ -138,7 +138,7 @@
static bfd_boolean symbolsrec_write_object_contents PARAMS ((bfd *));
static int srec_sizeof_headers PARAMS ((bfd *, bfd_boolean));
static long srec_get_symtab_upper_bound PARAMS ((bfd *));
-static long srec_get_symtab PARAMS ((bfd *, asymbol **));
+static long srec_canonicalize_symtab PARAMS ((bfd *, asymbol **));
/* Macros for converting between hex and binary. */
@@ -1188,7 +1188,7 @@
/* Return the symbol table. */
static long
-srec_get_symtab (abfd, alocation)
+srec_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: targets.c
===================================================================
RCS file: /cvs/src/src/bfd/targets.c,v
retrieving revision 1.97
diff -u -r1.97 targets.c
--- targets.c 8 Oct 2003 13:50:23 -0000 1.97
+++ targets.c 16 Oct 2003 03:49:07 -0000
@@ -328,7 +328,7 @@
. {* Entry points used for symbols. *}
.#define BFD_JUMP_TABLE_SYMBOLS(NAME) \
. NAME##_get_symtab_upper_bound, \
-. NAME##_get_symtab, \
+. NAME##_canonicalize_symtab, \
. NAME##_make_empty_symbol, \
. NAME##_print_symbol, \
. NAME##_get_symbol_info, \
Index: tekhex.c
===================================================================
RCS file: /cvs/src/src/bfd/tekhex.c,v
retrieving revision 1.15
diff -u -r1.15 tekhex.c
--- tekhex.c 20 Dec 2002 22:41:13 -0000 1.15
+++ tekhex.c 16 Oct 2003 03:49:09 -0000
@@ -120,7 +120,7 @@
static const bfd_target *tekhex_object_p PARAMS ((bfd *));
static bfd_boolean tekhex_mkobject PARAMS ((bfd *));
static long tekhex_get_symtab_upper_bound PARAMS ((bfd *));
-static long tekhex_get_symtab PARAMS ((bfd *, asymbol **));
+static long tekhex_canonicalize_symtab PARAMS ((bfd *, asymbol **));
static void pass_over PARAMS ((bfd *, void (*) (bfd*, int, char *)));
static void first_phase PARAMS ((bfd *, int, char *));
static void insert_byte PARAMS ((bfd *, int, bfd_vma));
@@ -522,7 +522,7 @@
}
static long
-tekhex_get_symtab (abfd, table)
+tekhex_canonicalize_symtab (abfd, table)
bfd *abfd;
asymbol **table;
{
Index: versados.c
===================================================================
RCS file: /cvs/src/src/bfd/versados.c,v
retrieving revision 1.17
diff -u -r1.17 versados.c
--- versados.c 25 Jun 2003 06:40:22 -0000 1.17
+++ versados.c 16 Oct 2003 03:49:09 -0000
@@ -58,7 +58,7 @@
PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type));
static int versados_sizeof_headers PARAMS ((bfd *, bfd_boolean));
static long int versados_get_symtab_upper_bound PARAMS ((bfd *));
-static long int versados_get_symtab PARAMS ((bfd *, asymbol **));
+static long int versados_canonicalize_symtab PARAMS ((bfd *, asymbol **));
static void versados_get_symbol_info
PARAMS ((bfd *, asymbol *, symbol_info *));
static void versados_print_symbol
@@ -740,7 +740,7 @@
/* Return the symbol table. */
static long
-versados_get_symtab (abfd, alocation)
+versados_canonicalize_symtab (abfd, alocation)
bfd *abfd;
asymbol **alocation;
{
Index: vms.c
===================================================================
RCS file: /cvs/src/src/bfd/vms.c,v
retrieving revision 1.24
diff -u -r1.24 vms.c
--- vms.c 25 Jun 2003 06:40:21 -0000 1.24
+++ vms.c 16 Oct 2003 03:49:10 -0000
@@ -95,7 +95,7 @@
PARAMS ((bfd *, struct stat *));
static long vms_get_symtab_upper_bound
PARAMS ((bfd *abfd));
-static long vms_get_symtab
+static long vms_canonicalize_symtab
PARAMS ((bfd *abfd, asymbol **symbols));
static void vms_print_symbol
PARAMS ((bfd *abfd, PTR file, asymbol *symbol, bfd_print_symbol_type how));
@@ -1065,7 +1065,7 @@
/* Copy symbols from hash table to symbol vector
- called from bfd_hash_traverse in vms_get_symtab
+ called from bfd_hash_traverse in vms_canonicalize_symtab
init counter to 0 if entry == 0 */
static bfd_boolean
@@ -1089,12 +1089,12 @@
return # of symbols read */
static long
-vms_get_symtab (abfd, symbols)
+vms_canonicalize_symtab (abfd, symbols)
bfd *abfd;
asymbol **symbols;
{
#if VMS_DEBUG
- vms_debug (1, "vms_get_symtab(%p, <ret>)\n", abfd);
+ vms_debug (1, "vms_canonicalize_symtab(%p, <ret>)\n", abfd);
#endif
/* init counter */
Index: xsym.c
===================================================================
RCS file: /cvs/src/src/bfd/xsym.c,v
retrieving revision 1.4
diff -u -r1.4 xsym.c
--- xsym.c 12 Mar 2003 09:59:52 -0000 1.4
+++ xsym.c 16 Oct 2003 03:49:14 -0000
@@ -2413,7 +2413,7 @@
}
long
-bfd_sym_get_symtab (abfd, sym)
+bfd_sym_canonicalize_symtab (abfd, sym)
bfd *abfd ATTRIBUTE_UNUSED;
asymbol **sym ATTRIBUTE_UNUSED;
{
Index: xsym.h
===================================================================
RCS file: /cvs/src/src/bfd/xsym.h,v
retrieving revision 1.3
diff -u -r1.3 xsym.h
--- xsym.h 30 Nov 2002 08:39:40 -0000 1.3
+++ xsym.h 16 Oct 2003 03:49:14 -0000
@@ -693,7 +693,7 @@
PARAMS ((bfd *, asymbol *, symbol_info *));
extern long bfd_sym_get_symtab_upper_bound
PARAMS ((bfd *));
-extern long bfd_sym_get_symtab
+extern long bfd_sym_canonicalize_symtab
PARAMS ((bfd *, asymbol **));
extern int bfd_sym_sizeof_headers
PARAMS ((bfd *, bfd_boolean));
Index: doc/bfdint.texi
===================================================================
RCS file: /cvs/src/src/bfd/doc/bfdint.texi,v
retrieving revision 1.14
diff -u -r1.14 bfdint.texi
--- doc/bfdint.texi 25 Jun 2003 06:40:25 -0000 1.14
+++ doc/bfdint.texi 16 Oct 2003 03:49:26 -0000
@@ -694,7 +694,7 @@
@samp{bfd_get_symtab_upper_bound}. The corresponding field in the
target vector is named @samp{_bfd_get_symtab_upper_bound}.
-@item _get_symtab
+@item _canonicalize_symtab
Read in the symbol table. This is called via
@samp{bfd_canonicalize_symtab}. The corresponding field in the target
vector is named @samp{_bfd_canonicalize_symtab}.