This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Make elf_swap_symbol_in available in elf_size_info
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 6 Jun 2002 09:57:30 +0930
- Subject: Re: Make elf_swap_symbol_in available in elf_size_info
- References: <20020605133000.GZ464@bubble.sa.bigpond.net.au>
One too many `*'s. The PTR macro already has one. Apologies for
the extra unnecessary CVS traffic.
bfd/ChangeLog
* elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
are "const PTR", not "const PTR *".
(bfd_elf32_swap_symbol_in): Likewise.
(bfd_elf64_swap_symbol_in): Likewise.
* elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
(elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
* elflink.h (elf_link_is_defined_archive_symbol): Likewise.
(elf_link_add_object_symbols): Likewise.
(elf_link_record_local_dynamic_symbol): Likewise.
(elf_link_input_bfd): Likewise.
(elf_gc_mark): Likewise.
(elf_reloc_symbol_deleted_p): Likewise.
* elf-m10200.c (mn10200_elf_relax_section): Likewise.
(mn10200_elf_relax_delete_bytes): Likewise.
(mn10200_elf_symbol_address_p): Likewise.
(mn10200_elf_get_relocated_section_contents): Likewise.
* elf-m10300.c (mn10300_elf_relax_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(mn10300_elf_relax_delete_bytes): Likewise.
(mn10300_elf_symbol_address_p): Likewise.
(mn10300_elf_get_relocated_section_contents): Likewise.
* elf32-h8300.c (elf32_h8_relax_section): Likewise.
(elf32_h8_relax_delete_bytes): Likewise.
(elf32_h8_symbol_address_p): Likewise.
(elf32_h8_get_relocated_section_contents): Likewise.
* elf32-hppa.c (get_local_syms): Likewise.
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
* elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
* elf32-sh.c (sh_elf_relax_section): Likewise.
(sh_elf_relax_delete_bytes): Likewise.
(sh_elf_get_relocated_section_contents): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
* elf64-alpha.c (elf64_alpha_relax_section): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
* elf64-mmix.c (mmix_elf_relax_section): Likewise.
* elf64-ppc.c (get_local_syms): Likewise.
* elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
* elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
* po/SRC-POTFILES.in: Regenerate.
Index: bfd/elf-bfd.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-bfd.h,v
retrieving revision 1.77
diff -u -p -r1.77 elf-bfd.h
--- bfd/elf-bfd.h 5 Jun 2002 13:31:57 -0000 1.77
+++ bfd/elf-bfd.h 6 Jun 2002 00:17:54 -0000
@@ -354,7 +354,7 @@ struct elf_size_info {
void (*write_relocs)
PARAMS ((bfd *, asection *, PTR));
void (*swap_symbol_in)
- PARAMS ((bfd *, const PTR *, const PTR *, Elf_Internal_Sym *));
+ PARAMS ((bfd *, const PTR, const PTR, Elf_Internal_Sym *));
void (*swap_symbol_out)
PARAMS ((bfd *, const Elf_Internal_Sym *, PTR, PTR));
boolean (*slurp_reloc_table)
@@ -1443,7 +1443,7 @@ extern boolean bfd_elf32_bfd_final_link
PARAMS ((bfd *, struct bfd_link_info *));
extern void bfd_elf32_swap_symbol_in
- PARAMS ((bfd *, const PTR *, const PTR *, Elf_Internal_Sym *));
+ PARAMS ((bfd *, const PTR, const PTR, Elf_Internal_Sym *));
extern void bfd_elf32_swap_symbol_out
PARAMS ((bfd *, const Elf_Internal_Sym *, PTR, PTR));
extern void bfd_elf32_swap_reloc_in
@@ -1495,7 +1495,7 @@ extern boolean bfd_elf64_bfd_final_link
PARAMS ((bfd *, struct bfd_link_info *));
extern void bfd_elf64_swap_symbol_in
- PARAMS ((bfd *, const PTR *, const PTR *, Elf_Internal_Sym *));
+ PARAMS ((bfd *, const PTR, const PTR, Elf_Internal_Sym *));
extern void bfd_elf64_swap_symbol_out
PARAMS ((bfd *, const Elf_Internal_Sym *, PTR, PTR));
extern void bfd_elf64_swap_reloc_in
Index: bfd/elf-m10200.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-m10200.c,v
retrieving revision 1.15
diff -u -p -r1.15 elf-m10200.c
--- bfd/elf-m10200.c 5 Jun 2002 13:31:58 -0000 1.15
+++ bfd/elf-m10200.c 6 Jun 2002 00:17:55 -0000
@@ -630,8 +630,8 @@ mn10200_elf_relax_section (abfd, sec, li
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
if (isym.st_shndx == SHN_UNDEF)
sym_sec = bfd_und_section_ptr;
@@ -1318,7 +1318,7 @@ mn10200_elf_relax_delete_bytes (abfd, se
Elf_Internal_Sym isym;
Elf_External_Sym_Shndx dummy;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -1380,7 +1380,7 @@ mn10200_elf_symbol_address_p (abfd, sec,
{
Elf_Internal_Sym isym;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -1503,8 +1503,8 @@ mn10200_elf_get_relocated_section_conten
{
asection *isec;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isymp);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isymp);
if (isymp->st_shndx == SHN_UNDEF)
isec = bfd_und_section_ptr;
Index: bfd/elf-m10300.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-m10300.c,v
retrieving revision 1.25
diff -u -p -r1.25 elf-m10300.c
--- bfd/elf-m10300.c 5 Jun 2002 13:31:59 -0000 1.25
+++ bfd/elf-m10300.c 6 Jun 2002 00:17:58 -0000
@@ -938,8 +938,8 @@ mn10300_elf_relax_section (abfd, sec, li
esym = extsyms + r_index;
shndx = shndx_buf + (shndx_buf ? r_index : 0);
bfd_elf32_swap_symbol_in (input_bfd,
- (const PTR *) esym,
- (const PTR *) shndx,
+ (const PTR) esym,
+ (const PTR) shndx,
&isym);
if (isym.st_shndx == SHN_UNDEF)
@@ -1030,8 +1030,8 @@ mn10300_elf_relax_section (abfd, sec, li
{
Elf_Internal_Sym isym;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, &isym);
if (isym.st_shndx == sec_shndx
&& ELF_ST_TYPE (isym.st_info) == STT_FUNC)
{
@@ -1257,8 +1257,8 @@ mn10300_elf_relax_section (abfd, sec, li
struct elf_link_hash_table *elftab;
bfd_size_type amt;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, &isym);
if (isym.st_shndx != sec_shndx)
continue;
@@ -1555,8 +1555,8 @@ mn10300_elf_relax_section (abfd, sec, li
/* A local symbol. */
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym,
+ (const PTR) shndx, &isym);
if (isym.st_shndx == SHN_UNDEF)
sym_sec = bfd_und_section_ptr;
@@ -2679,7 +2679,7 @@ mn10300_elf_relax_delete_bytes (abfd, se
Elf_Internal_Sym isym;
Elf_External_Sym_Shndx dummy;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -2741,7 +2741,7 @@ mn10300_elf_symbol_address_p (abfd, sec,
{
Elf_Internal_Sym isym;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -2864,8 +2864,8 @@ mn10300_elf_get_relocated_section_conten
{
asection *isec;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isymp);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isymp);
if (isymp->st_shndx == SHN_UNDEF)
isec = bfd_und_section_ptr;
Index: bfd/elf32-h8300.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-h8300.c,v
retrieving revision 1.11
diff -u -p -r1.11 elf32-h8300.c
--- bfd/elf32-h8300.c 5 Jun 2002 13:31:59 -0000 1.11
+++ bfd/elf32-h8300.c 6 Jun 2002 00:17:59 -0000
@@ -816,8 +816,8 @@ elf32_h8_relax_section (abfd, sec, link_
/* A local symbol. */
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
sym_sec = bfd_section_from_elf_index (abfd, isym.st_shndx);
symval = (isym.st_value
@@ -913,8 +913,8 @@ elf32_h8_relax_section (abfd, sec, link_
shndx = shndx_buf;
if (shndx != NULL)
shndx += ELF32_R_SYM (last_reloc->r_info);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym,
+ (const PTR) shndx,
&last_symbol);
last_sym_sec
@@ -1342,7 +1342,7 @@ elf32_h8_relax_delete_bytes (abfd, sec,
Elf_Internal_Sym isym;
Elf_External_Sym_Shndx dummy;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -1404,7 +1404,7 @@ elf32_h8_symbol_address_p (abfd, sec, ad
{
Elf_Internal_Sym isym;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -1527,8 +1527,8 @@ elf32_h8_get_relocated_section_contents
{
asection *isec;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isymp);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isymp);
if (isymp->st_shndx == SHN_UNDEF)
isec = bfd_und_section_ptr;
Index: bfd/elf32-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
retrieving revision 1.83
diff -u -p -r1.83 elf32-hppa.c
--- bfd/elf32-hppa.c 5 Jun 2002 13:31:59 -0000 1.83
+++ bfd/elf32-hppa.c 6 Jun 2002 00:18:02 -0000
@@ -2827,8 +2827,8 @@ get_local_syms (output_bfd, input_bfd, i
isym = local_syms, shndx = shndx_buf;
esym < end_sy;
esym++, isym++, shndx = (shndx ? shndx + 1 : NULL))
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isym);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isym);
/* Now we can free the external symbols. */
free (shndx_buf);
Index: bfd/elf32-m68k.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68k.c,v
retrieving revision 1.42
diff -u -p -r1.42 elf32-m68k.c
--- bfd/elf32-m68k.c 5 Jun 2002 13:31:59 -0000 1.42
+++ bfd/elf32-m68k.c 6 Jun 2002 00:18:04 -0000
@@ -2211,8 +2211,8 @@ bfd_m68k_elf32_create_embedded_relocs (a
/* A local symbol. */
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
targetsec = bfd_section_from_elf_index (abfd, isym.st_shndx);
}
Index: bfd/elf32-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-mips.c,v
retrieving revision 1.153
diff -u -p -r1.153 elf32-mips.c
--- bfd/elf32-mips.c 5 Jun 2002 13:31:59 -0000 1.153
+++ bfd/elf32-mips.c 6 Jun 2002 00:18:04 -0000
@@ -1886,8 +1886,8 @@ bfd_mips_elf32_create_embedded_relocs (a
/* A local symbol. */
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
targetsec = bfd_section_from_elf_index (abfd, isym.st_shndx);
}
Index: bfd/elf32-sh.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.48
diff -u -p -r1.48 elf32-sh.c
--- bfd/elf32-sh.c 5 Jun 2002 13:31:59 -0000 1.48
+++ bfd/elf32-sh.c 6 Jun 2002 00:18:08 -0000
@@ -2067,8 +2067,8 @@ sh_elf_relax_section (abfd, sec, link_in
esym = extsyms + ELF32_R_SYM (irelfn->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irelfn->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
if (isym.st_shndx
!= (unsigned int) _bfd_elf_section_from_bfd_section (abfd, sec))
@@ -2448,8 +2448,8 @@ sh_elf_relax_delete_bytes (abfd, sec, ad
{
esym = extsyms + ELF32_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irel->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &sym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym,
+ (const PTR) shndx, &sym);
if (sym.st_shndx == sec_shndx
&& (sym.st_value <= addr
@@ -2712,8 +2712,8 @@ sh_elf_relax_delete_bytes (abfd, sec, ad
esym = extsyms + ELF32_R_SYM (irelscan->r_info);
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irelscan->r_info) : 0);
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &sym);
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &sym);
if (sym.st_shndx == sec_shndx
&& (sym.st_value <= addr
@@ -2760,7 +2760,7 @@ sh_elf_relax_delete_bytes (abfd, sec, ad
Elf_Internal_Sym isym;
Elf_External_Sym_Shndx dummy;
- bfd_elf32_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx,
+ bfd_elf32_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
&isym);
if (isym.st_shndx == sec_shndx
@@ -4928,8 +4928,8 @@ sh_elf_get_relocated_section_contents (o
{
asection *isec;
- bfd_elf32_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isymp);
+ bfd_elf32_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isymp);
if (isymp->st_shndx == SHN_UNDEF)
isec = bfd_und_section_ptr;
Index: bfd/elf32-xstormy16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xstormy16.c,v
retrieving revision 1.7
diff -u -p -r1.7 elf32-xstormy16.c
--- bfd/elf32-xstormy16.c 5 Jun 2002 13:32:00 -0000 1.7
+++ bfd/elf32-xstormy16.c 6 Jun 2002 00:18:09 -0000
@@ -654,8 +654,8 @@ xstormy16_elf_relax_section (dynobj, spl
shndx = shndx_buf;
if (shndx != NULL)
shndx += idx;
- bfd_elf32_swap_symbol_in (ibfd, (const PTR *) (extsyms + idx),
- (const PTR *) shndx, &isym);
+ bfd_elf32_swap_symbol_in (ibfd, (const PTR) (extsyms + idx),
+ (const PTR) shndx, &isym);
if (isym.st_shndx == SHN_UNDEF)
continue;
else if (isym.st_shndx == SHN_ABS)
Index: bfd/elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.73
diff -u -p -r1.73 elf64-alpha.c
--- bfd/elf64-alpha.c 5 Jun 2002 13:32:00 -0000 1.73
+++ bfd/elf64-alpha.c 6 Jun 2002 00:18:13 -0000
@@ -2172,8 +2172,8 @@ elf64_alpha_relax_section (abfd, sec, li
esym = extsyms + ELF64_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELF64_R_SYM (irel->r_info) : 0);
- bfd_elf64_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf64_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
if (isym.st_shndx == SHN_UNDEF)
continue;
else if (isym.st_shndx == SHN_ABS)
Index: bfd/elf64-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-hppa.c,v
retrieving revision 1.20
diff -u -p -r1.20 elf64-hppa.c
--- bfd/elf64-hppa.c 5 Jun 2002 13:32:01 -0000 1.20
+++ bfd/elf64-hppa.c 6 Jun 2002 00:18:15 -0000
@@ -682,8 +682,8 @@ elf64_hppa_check_relocs (abfd, info, sec
i < symtab_hdr->sh_info;
i++, esym++, isym++, shndx = (shndx != NULL ? shndx + 1 : NULL))
{
- bfd_elf64_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, isym);
+ bfd_elf64_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ isym);
if (isym->st_shndx > highest_shndx)
highest_shndx = isym->st_shndx;
}
Index: bfd/elf64-mmix.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-mmix.c,v
retrieving revision 1.13
diff -u -p -r1.13 elf64-mmix.c
--- bfd/elf64-mmix.c 5 Jun 2002 13:32:01 -0000 1.13
+++ bfd/elf64-mmix.c 6 Jun 2002 00:18:17 -0000
@@ -2419,8 +2419,8 @@ mmix_elf_relax_section (abfd, sec, link_
esym = extsyms + ELF64_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf
? ELF64_R_SYM (irel->r_info) : 0);
- bfd_elf64_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elf64_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
if (isym.st_shndx == SHN_UNDEF)
sym_sec = bfd_und_section_ptr;
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.50
diff -u -p -r1.50 elf64-ppc.c
--- bfd/elf64-ppc.c 5 Jun 2002 13:32:01 -0000 1.50
+++ bfd/elf64-ppc.c 6 Jun 2002 00:18:21 -0000
@@ -4594,8 +4594,8 @@ get_local_syms (input_bfd, htab)
isym = local_syms, shndx = shndx_buf;
esym < end_sy;
esym++, isym++, shndx = (shndx ? shndx + 1 : NULL))
- bfd_elf64_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isym);
+ bfd_elf64_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isym);
/* Now we can free the external symbols. */
free (shndx_buf);
Index: bfd/elf64-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sh64.c,v
retrieving revision 1.10
diff -u -p -r1.10 elf64-sh64.c
--- bfd/elf64-sh64.c 5 Jun 2002 13:32:01 -0000 1.10
+++ bfd/elf64-sh64.c 6 Jun 2002 00:18:23 -0000
@@ -2234,8 +2234,8 @@ sh_elf64_get_relocated_section_contents
{
asection *isec;
- bfd_elf64_swap_symbol_in (input_bfd, (const PTR *) esym,
- (const PTR *) shndx, isymp);
+ bfd_elf64_swap_symbol_in (input_bfd, (const PTR) esym,
+ (const PTR) shndx, isymp);
if (isymp->st_shndx == SHN_UNDEF)
isec = bfd_und_section_ptr;
Index: bfd/elfcode.h
===================================================================
RCS file: /cvs/src/src/bfd/elfcode.h,v
retrieving revision 1.29
diff -u -p -r1.29 elfcode.h
--- bfd/elfcode.h 5 Jun 2002 13:31:57 -0000 1.29
+++ bfd/elfcode.h 6 Jun 2002 00:18:25 -0000
@@ -205,8 +205,8 @@ static char *elf_symbol_flags PARAMS ((f
void
elf_swap_symbol_in (abfd, psrc, pshn, dst)
bfd *abfd;
- const PTR *psrc;
- const PTR *pshn;
+ const PTR psrc;
+ const PTR pshn;
Elf_Internal_Sym *dst;
{
const Elf_External_Sym *src = (const Elf_External_Sym *) psrc;
@@ -1244,8 +1244,8 @@ elf_slurp_symbol_table (abfd, symptrs, d
/* Skip first symbol, which is a null dummy. */
for (i = 1; i < symcount; i++)
{
- elf_swap_symbol_in (abfd, (const PTR *) (x_symp + i),
- (const PTR *) (x_shndx + (x_shndx ? i : 0)),
+ elf_swap_symbol_in (abfd, (const PTR) (x_symp + i),
+ (const PTR) (x_shndx + (x_shndx ? i : 0)),
&i_sym);
memcpy (&sym->internal_elf_sym, &i_sym, sizeof (Elf_Internal_Sym));
#ifdef ELF_KEEP_EXTSYM
Index: bfd/elflink.h
===================================================================
RCS file: /cvs/src/src/bfd/elflink.h,v
retrieving revision 1.163
diff -u -p -r1.163 elflink.h
--- bfd/elflink.h 5 Jun 2002 13:31:57 -0000 1.163
+++ bfd/elflink.h 6 Jun 2002 00:18:32 -0000
@@ -237,7 +237,7 @@ elf_link_is_defined_archive_symbol (abfd
Elf_Internal_Sym sym;
const char * name;
- elf_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx, &sym);
+ elf_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx, &sym);
name = bfd_elf_string_from_elf_section (abfd, hdr->sh_link, sym.st_name);
if (name == (const char *) NULL)
@@ -1666,7 +1666,7 @@ elf_link_add_object_symbols (abfd, info)
override = false;
- elf_swap_symbol_in (abfd, (const PTR *) esym, (const PTR *) shndx, &sym);
+ elf_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx, &sym);
flags = BSF_NO_FLAGS;
sec = NULL;
@@ -2556,7 +2556,7 @@ elf_link_record_local_dynamic_symbol (in
|| bfd_bread ((PTR) shndx, amt, input_bfd) != amt)
return false;
}
- elf_swap_symbol_in (input_bfd, (const PTR *) &esym, (const PTR *) shndx,
+ elf_swap_symbol_in (input_bfd, (const PTR) &esym, (const PTR) shndx,
&entry->isym);
name = (bfd_elf_string_from_elf_section
@@ -6522,7 +6522,7 @@ elf_link_input_bfd (finfo, input_bfd)
const char *name;
Elf_Internal_Sym osym;
- elf_swap_symbol_in (input_bfd, (const PTR *) esym, (const PTR *) shndx,
+ elf_swap_symbol_in (input_bfd, (const PTR) esym, (const PTR) shndx,
isym);
*pindex = -1;
@@ -7672,8 +7672,8 @@ elf_gc_mark (info, sec, gc_mark_hook)
{
locshndx = locsym_shndx + (locsym_shndx ? r_symndx : 0);
elf_swap_symbol_in (input_bfd,
- (const PTR *) (locsyms + r_symndx),
- (const PTR *) locshndx,
+ (const PTR) (locsyms + r_symndx),
+ (const PTR) locshndx,
&s);
if (ELF_ST_BIND (s.st_info) == STB_LOCAL)
rsec = (*gc_mark_hook) (sec->owner, info, rel, NULL, &s);
@@ -7692,8 +7692,8 @@ elf_gc_mark (info, sec, gc_mark_hook)
{
locshndx = locsym_shndx + (locsym_shndx ? r_symndx : 0);
elf_swap_symbol_in (input_bfd,
- (const PTR *) (locsyms + r_symndx),
- (const PTR *) locshndx,
+ (const PTR) (locsyms + r_symndx),
+ (const PTR) locshndx,
&s);
rsec = (*gc_mark_hook) (sec->owner, info, rel, NULL, &s);
}
@@ -8287,8 +8287,8 @@ elf_reloc_symbol_deleted_p (offset, cook
lshndx = (Elf_External_Sym_Shndx *) rcookie->locsym_shndx;
if (lshndx != NULL)
lshndx += r_symndx;
- elf_swap_symbol_in (rcookie->abfd, (const PTR *) lsym,
- (const PTR *) lshndx, &isym);
+ elf_swap_symbol_in (rcookie->abfd, (const PTR) lsym,
+ (const PTR) lshndx, &isym);
}
if (r_symndx >= rcookie->locsymcount
Index: bfd/elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.50
diff -u -p -r1.50 elfxx-ia64.c
--- bfd/elfxx-ia64.c 5 Jun 2002 13:32:02 -0000 1.50
+++ bfd/elfxx-ia64.c 6 Jun 2002 00:18:36 -0000
@@ -812,8 +812,8 @@ elfNN_ia64_relax_section (abfd, sec, lin
/* A local symbol. */
esym = extsyms + ELFNN_R_SYM (irel->r_info);
shndx = shndx_buf + (shndx_buf ? ELFNN_R_SYM (irel->r_info) : 0);
- bfd_elfNN_swap_symbol_in (abfd, (const PTR *) esym,
- (const PTR *) shndx, &isym);
+ bfd_elfNN_swap_symbol_in (abfd, (const PTR) esym, (const PTR) shndx,
+ &isym);
if (isym.st_shndx == SHN_UNDEF)
continue; /* We can't do anthing with undefined symbols. */
else if (isym.st_shndx == SHN_ABS)
Index: bfd/po/SRC-POTFILES.in
===================================================================
RCS file: /cvs/src/src/bfd/po/SRC-POTFILES.in,v
retrieving revision 1.12
diff -u -p -r1.12 SRC-POTFILES.in
--- bfd/po/SRC-POTFILES.in 31 May 2002 04:23:27 -0000 1.12
+++ bfd/po/SRC-POTFILES.in 6 Jun 2002 00:18:36 -0000
@@ -151,6 +151,8 @@ elf32-s390.c
elf32-sh-lin.c
elf32-sh-nbsd.c
elf32-sh.c
+elf32-sh64-com.c
+elf32-sh64-nbsd.c
elf32-sh64.c
elf32-sparc.c
elf32-v850.c
@@ -165,6 +167,7 @@ elf64-mips.c
elf64-mmix.c
elf64-ppc.c
elf64-s390.c
+elf64-sh64-nbsd.c
elf64-sh64.c
elf64-sparc.c
elf64-x86-64.c
--
Alan Modra
IBM OzLabs - Linux Technology Centre