This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Minor bfd changes.
- To: binutils at sources dot redhat dot com
- Subject: Minor bfd changes.
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Sun, 10 Jun 2001 14:54:33 +0930
* elflink.h: Whitespace changes.
(elf_link_read_relocs_from_section): Use "unsigned int" iterator
rather than "unsigned char".
(elf_link_output_relocs): Likewise.
(elf_link_input_bfd): Likewise.
(elf_reloc_link_order): LIkewise.
* elf.c: s/CONST/const/. Whitespace changes.
* elf32-mips.c: Formatting fix.
* Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
* Makefile.in: Regenerate.
* po/Make-in: Remove trailing tab.
--
Alan Modra
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/bfd/Makefile.am,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile.am
--- Makefile.am 2001/05/25 22:50:26 1.56
+++ Makefile.am 2001/06/10 04:12:32
@@ -499,7 +499,8 @@ SOURCE_HFILES = \
elfcode.h elfcore.h elflink.h freebsd.h genlink.h go32stub.h \
libaout.h libbfd.h libcoff.h libecoff.h libhppa.h \
libieee.h libnlm.h liboasys.h libpei.h netbsd.h nlm-target.h \
- nlmcode.h nlmswap.h ns32k.h peicode.h som.h vms.h libxcoff.h xcoff.h
+ nlmcode.h nlmswap.h ns32k.h peicode.h som.h vms.h libxcoff.h \
+ xcoff-target.h
## ... and all .h files which are in the build tree.
BUILD_HFILES = \
Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.71
diff -u -p -r1.71 elf.c
--- elf.c 2001/06/08 15:30:52 1.71
+++ elf.c 2001/06/10 04:12:37
@@ -829,8 +829,8 @@ bfd_elf_print_symbol (abfd, filep, symbo
break;
case bfd_print_symbol_all:
{
- CONST char *section_name;
- CONST char *name = NULL;
+ const char *section_name;
+ const char *name = NULL;
struct elf_backend_data *bed;
unsigned char st_other;
@@ -5020,13 +5020,13 @@ _bfd_elf_set_arch_mach (abfd, arch, mach
static boolean
elf_find_function (abfd, section, symbols, offset,
- filename_ptr, functionname_ptr)
+ filename_ptr, functionname_ptr)
bfd *abfd ATTRIBUTE_UNUSED;
asection *section;
asymbol **symbols;
bfd_vma offset;
- CONST char **filename_ptr;
- CONST char **functionname_ptr;
+ const char **filename_ptr;
+ const char **functionname_ptr;
{
const char *filename;
asymbol *func;
@@ -5082,46 +5082,46 @@ elf_find_function (abfd, section, symbol
boolean
_bfd_elf_find_nearest_line (abfd, section, symbols, offset,
- filename_ptr, functionname_ptr, line_ptr)
+ filename_ptr, functionname_ptr, line_ptr)
bfd *abfd;
asection *section;
asymbol **symbols;
bfd_vma offset;
- CONST char **filename_ptr;
- CONST char **functionname_ptr;
+ const char **filename_ptr;
+ const char **functionname_ptr;
unsigned int *line_ptr;
{
boolean found;
if (_bfd_dwarf1_find_nearest_line (abfd, section, symbols, offset,
- filename_ptr, functionname_ptr,
- line_ptr))
+ filename_ptr, functionname_ptr,
+ line_ptr))
{
if (!*functionname_ptr)
- elf_find_function (abfd, section, symbols, offset,
- *filename_ptr ? NULL : filename_ptr,
- functionname_ptr);
-
+ elf_find_function (abfd, section, symbols, offset,
+ *filename_ptr ? NULL : filename_ptr,
+ functionname_ptr);
+
return true;
}
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
- filename_ptr, functionname_ptr,
- line_ptr, 0,
- &elf_tdata (abfd)->dwarf2_find_line_info))
+ filename_ptr, functionname_ptr,
+ line_ptr, 0,
+ &elf_tdata (abfd)->dwarf2_find_line_info))
{
if (!*functionname_ptr)
- elf_find_function (abfd, section, symbols, offset,
- *filename_ptr ? NULL : filename_ptr,
- functionname_ptr);
-
+ elf_find_function (abfd, section, symbols, offset,
+ *filename_ptr ? NULL : filename_ptr,
+ functionname_ptr);
+
return true;
}
if (! _bfd_stab_section_find_nearest_line (abfd, symbols, section, offset,
- &found, filename_ptr,
- functionname_ptr, line_ptr,
- &elf_tdata (abfd)->line_info))
+ &found, filename_ptr,
+ functionname_ptr, line_ptr,
+ &elf_tdata (abfd)->line_info))
return false;
if (found)
return true;
@@ -5130,7 +5130,7 @@ _bfd_elf_find_nearest_line (abfd, sectio
return false;
if (! elf_find_function (abfd, section, symbols, offset,
- filename_ptr, functionname_ptr))
+ filename_ptr, functionname_ptr))
return false;
*line_ptr = 0;
Index: elf32-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-mips.c,v
retrieving revision 1.98
diff -u -p -r1.98 elf32-mips.c
--- elf32-mips.c 2001/06/07 17:31:22 1.98
+++ elf32-mips.c 2001/06/10 04:12:43
@@ -249,8 +249,8 @@ static bfd *reldyn_sorting_bfd;
(abfd->xvec == &bfd_elf32_tradlittlemips_vec)) ? ict_none : \
((ABI_N32_P (abfd) || ABI_64_P (abfd)) ? ict_irix6 : ict_irix5))
#endif
-/* Whether we are trying to be compatible with IRIX at all. */
+/* Whether we are trying to be compatible with IRIX at all. */
#define SGI_COMPAT(abfd) \
(IRIX_COMPAT (abfd) != ict_none)
Index: elflink.h
===================================================================
RCS file: /cvs/src/src/bfd/elflink.h,v
retrieving revision 1.93
diff -u -p -r1.93 elflink.h
--- elflink.h 2001/05/28 11:57:54 1.93
+++ elflink.h 2001/06/10 04:12:48
@@ -121,7 +121,7 @@ is_global_data_symbol_definition (abfd,
}
/* Search the symbol table of the archive element of the archive ABFD
- whoes archive map contains a mention of SYMDEF, and determine if
+ whose archive map contains a mention of SYMDEF, and determine if
the symbol is defined in this element. */
static boolean
elf_link_is_defined_archive_symbol (abfd, symdef)
@@ -2471,7 +2471,7 @@ elf_link_read_relocs_from_section (abfd,
* sizeof (Elf_Internal_Rel)));
for (; erel < erelend; erel++, irela += bed->s->int_rels_per_ext_rel)
{
- unsigned char i;
+ unsigned int i;
if (bed->s->swap_reloc_in)
(*bed->s->swap_reloc_in) (abfd, (bfd_byte *) erel, irel);
@@ -5484,7 +5484,7 @@ elf_link_output_relocs (output_bfd, inpu
erel = ((Elf_External_Rel *) output_rel_hdr->contents + *rel_countp);
for (; irela < irelaend; irela += bed->s->int_rels_per_ext_rel, erel++)
{
- unsigned char i;
+ unsigned int i;
for (i = 0; i < bed->s->int_rels_per_ext_rel; i++)
{
@@ -5840,7 +5840,7 @@ elf_link_input_bfd (finfo, input_bfd)
Elf_Internal_Rela *irelaend;
struct elf_link_hash_entry **rel_hash;
Elf_Internal_Shdr *input_rel_hdr;
- unsigned char next_erel;
+ unsigned int next_erel;
/* Adjust the reloc addresses and symbol indices. */
@@ -6162,7 +6162,7 @@ elf_reloc_link_order (output_bfd, info,
{
Elf_Internal_Rel *irel;
Elf_External_Rel *erel;
- unsigned char i;
+ unsigned int i;
irel = (Elf_Internal_Rel *) bfd_zmalloc (bed->s->int_rels_per_ext_rel
* sizeof (Elf_Internal_Rel));
@@ -6187,7 +6187,7 @@ elf_reloc_link_order (output_bfd, info,
{
Elf_Internal_Rela *irela;
Elf_External_Rela *erela;
- unsigned char i;
+ unsigned int i;
irela = (Elf_Internal_Rela *) bfd_zmalloc (bed->s->int_rels_per_ext_rel
* sizeof (Elf_Internal_Rela));
Index: po/Make-in
===================================================================
RCS file: /cvs/src/src/bfd/po/Make-in,v
retrieving revision 1.2
diff -u -p -r1.2 Make-in
--- Make-in 2001/03/23 18:05:30 1.2
+++ Make-in 2001/06/10 04:12:50
@@ -206,7 +206,7 @@ clean: mostlyclean
distclean: clean
rm -f Makefile Makefile.in *.mo *.msg *.cat *.cat.m
rm -f SRC-POTFILES BLD-POTFILES SRC-POTFILES.in BLD-POTFILES.in
-
+
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."