(bfd_get_unique_section_name): Put a dot before the numeric suffix.

This commit is contained in:
Alan Modra
2000-09-08 02:11:34 +00:00
parent 6221ac1b93
commit 77cb06e9d4
2 changed files with 156 additions and 151 deletions

View File

@@ -1,3 +1,8 @@
2000-09-08 Alan Modra <alan@linuxcare.com.au>
* section.c (bfd_get_unique_section_name): Put a dot before the
numeric suffix.
2000-09-07 Kazu Hirata <kazu@hxi.com> 2000-09-07 Kazu Hirata <kazu@hxi.com>
* doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID. * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
@@ -16,17 +21,17 @@
2000-09-06 Geoffrey Keating <geoffk@cygnus.com> 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
* xcofflink.c (xcoff_link_input_bfd): Include the .tocbss * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
pseduo-section when determining where the TOC ends. pseduo-section when determining where the TOC ends.
* coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
output x_tvndx as it is only two bytes wide. output x_tvndx as it is only two bytes wide.
* coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
reloc is 26 or 32 bits wide. reloc is 26 or 32 bits wide.
* coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
for relocs that don't change anything. Also look at the full for relocs that don't change anything. Also look at the full
6 bits of bitsize. 6 bits of bitsize.
2000-09-06 Philip Blundell <philb@gnu.org> 2000-09-06 Philip Blundell <philb@gnu.org>
@@ -380,14 +385,14 @@ Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2000-08-10 Jason Eckhardt <jle@cygnus.com> 2000-08-10 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_relocate_section): New function. * elf32-i860.c (elf32_i860_relocate_section): New function.
(i860_final_link_relocate): New function. (i860_final_link_relocate): New function.
(elf32_i860_relocate_splitn): New function. (elf32_i860_relocate_splitn): New function.
(elf32_i860_relocate_pc16): New function. (elf32_i860_relocate_pc16): New function.
(elf32_i860_relocate_highadj): New function. (elf32_i860_relocate_highadj): New function.
(elf32_i860_howto): Minor adjustments to some relocations. (elf32_i860_howto): Minor adjustments to some relocations.
(elf_info_to_howto_rel): Define. (elf_info_to_howto_rel): Define.
(elf_backend_relocate_section): Define. (elf_backend_relocate_section): Define.
2000-08-10 Nick Clifton <nickc@cygnus.com> 2000-08-10 Nick Clifton <nickc@cygnus.com>
@@ -454,8 +459,8 @@ Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2000-07-31 Jason Eckhardt <jle@cygnus.com> 2000-07-31 Jason Eckhardt <jle@cygnus.com>
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860. * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
* bfd-in2.h, libbfd.h: Regenerate. * bfd-in2.h, libbfd.h: Regenerate.
2000-07-31 Nick Clifton <nickc@cygnus.com> 2000-07-31 Nick Clifton <nickc@cygnus.com>
@@ -534,9 +539,9 @@ Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
* bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration. * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
* bfd-in2.h: Regenerate. * bfd-in2.h: Regenerate.
2000-07-21 Nick Clifton <nickc@cygnus.com> 2000-07-21 Nick Clifton <nickc@cygnus.com>
@@ -645,7 +650,7 @@ Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com> Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
* elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
renamed functions from here... renamed functions from here...
(assign_section_numbers): Use renamed functions. (assign_section_numbers): Use renamed functions.
(prep_headers): Use renamed functions. (prep_headers): Use renamed functions.
@@ -713,24 +718,24 @@ Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com> Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
* elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
addresses to be "naturally" sign extended. Return -1 if unknown. addresses to be "naturally" sign extended. Return -1 if unknown.
* bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration. * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
* bfd-in2.h: Regenerate. * bfd-in2.h: Regenerate.
Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com> Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
* ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
and ECOF_SIGNED_64 to list ways to extract an offset. and ECOF_SIGNED_64 to list ways to extract an offset.
(ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in, (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out): ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
Update. Update.
* elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64. * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
* elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32. * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com> Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
* elfcode.h (elf_object_p): Use bfd_set_start_address and not * elfcode.h (elf_object_p): Use bfd_set_start_address and not
bfd_get_start_address. bfd_get_start_address.
(elf_swap_ehdr_in): Sign extend e_entry when applicable. (elf_swap_ehdr_in): Sign extend e_entry when applicable.
(elf_swap_ehdr_out): Ditto. (elf_swap_ehdr_out): Ditto.
@@ -752,8 +757,8 @@ Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
2000-07-09 Koundinya K <kk@ddeorg.soft.net> 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
* elf32-mips.c (sort_dynamic_relocs): New Function. * elf32-mips.c (sort_dynamic_relocs): New Function.
(_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
via qsort to sort the dynamic relocations in increasing r_symndx via qsort to sort the dynamic relocations in increasing r_symndx
value. value.
@@ -1007,17 +1012,17 @@ Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
2000-07-01 Koundinya K <kk@ddeorg.soft.net> 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
* config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4* * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
to add a new target for traditional mips i.e to add a new target for traditional mips i.e
bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec. bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
* configure.in: Likewise. * configure.in: Likewise.
* configure: Rebuild. * configure: Rebuild.
* targets.c (bfd_elf32_tradbigmips_vec): Declare and put in * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
bfd_target_vector. bfd_target_vector.
(bfd_elf32_tradlittlemips_vec): Likewise. (bfd_elf32_tradlittlemips_vec): Likewise.
* elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
to see that elfNN_bed does not get redefined even if the target file to see that elfNN_bed does not get redefined even if the target file
is included twice for a chip. See elf32-mips.c. is included twice for a chip. See elf32-mips.c.
2000-07-01 Alan Modra <alan@linuxcare.com.au> 2000-07-01 Alan Modra <alan@linuxcare.com.au>
@@ -1028,7 +1033,7 @@ Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
2000-06-30 DJ Delorie <dj@cygnus.com> 2000-06-30 DJ Delorie <dj@cygnus.com>
* peicode.h (coff_swap_filehdr_in): can't use e_magic because we * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
can't assume the PE header is at 0x80. can't assume the PE header is at 0x80.
2000-06-29 Mark Elbrecht <snowball3@bigfoot.com> 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
@@ -1293,7 +1298,7 @@ Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com> Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
* trad-core.c: From hpux-core.c, include <dirent.h> or * trad-core.c: From hpux-core.c, include <dirent.h> or
<sys/ndir.h> when possible. <sys/ndir.h> when possible.
2000-05-31 Nick Clifton <nickc@cygnus.com> 2000-05-31 Nick Clifton <nickc@cygnus.com>
@@ -1309,8 +1314,8 @@ Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
2000-05-31 Alan Modra <alan@linuxcare.com.au> 2000-05-31 Alan Modra <alan@linuxcare.com.au>
* elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
R_PARISC_DIR17F are for absolute branches; Handle them as such. R_PARISC_DIR17F are for absolute branches; Handle them as such.
2000-05-30 Nick Clifton <nickc@cygnus.com> 2000-05-30 Nick Clifton <nickc@cygnus.com>

View File

@@ -654,10 +654,10 @@ SYNOPSIS
DESCRIPTION DESCRIPTION
Invent a section name that is unique in @var{abfd} by tacking Invent a section name that is unique in @var{abfd} by tacking
a digit suffix onto the original @var{templat}. If @var{count} a dot and a digit suffix onto the original @var{templat}. If
is non-NULL, then it specifies the first number tried as a @var{count} is non-NULL, then it specifies the first number
suffix to generate a unique name. The value pointed to by tried as a suffix to generate a unique name. The value
@var{count} will be incremented in this case. pointed to by @var{count} will be incremented in this case.
*/ */
char * char *
@@ -671,7 +671,7 @@ bfd_get_unique_section_name (abfd, templat, count)
char *sname; char *sname;
len = strlen (templat); len = strlen (templat);
sname = bfd_malloc (len + 7); sname = bfd_malloc (len + 8);
strcpy (sname, templat); strcpy (sname, templat);
num = 1; num = 1;
if (count != NULL) if (count != NULL)
@@ -682,7 +682,7 @@ bfd_get_unique_section_name (abfd, templat, count)
/* If we have a million sections, something is badly wrong. */ /* If we have a million sections, something is badly wrong. */
if (num > 999999) if (num > 999999)
abort (); abort ();
sprintf (sname + len, "%d", num++); sprintf (sname + len, ".%d", num++);
} }
while (bfd_get_section_by_name (abfd, sname) != NULL); while (bfd_get_section_by_name (abfd, sname) != NULL);