From: David Edelsohn Date: Thu, 28 Mar 1996 03:34:05 +0000 (+0000) Subject: * coffgen.c (coff_bfd_make_debug_symbol): Improve comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d8eda7ab48030197747490cb54b8123cc4cbddd;p=binutils-gdb.git * coffgen.c (coff_bfd_make_debug_symbol): Improve comment. * coffcode.h (coff_new_section_hook): Ditto. --- diff --git a/bfd/coffcode.h b/bfd/coffcode.h index abdd1199950..e703167ce62 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -903,7 +903,8 @@ coff_new_section_hook (abfd, section) /* Allocate aux records for section symbols, to store size and related info. - @@ Shouldn't use constant multiplier here! */ + @@ The 10 is a guess at a plausible maximum number of aux entries + (but shouldn't be a constant). */ coffsymbol (section->symbol)->native = (combined_entry_type *) bfd_zalloc (abfd, sizeof (combined_entry_type) * 10); diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 5948189b053..bb9882b7e60 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -1762,7 +1762,8 @@ coff_bfd_make_debug_symbol (abfd, ptr, sz) coff_symbol_type *new = (coff_symbol_type *) bfd_alloc (abfd, sizeof (coff_symbol_type)); if (new == NULL) return (NULL); - /* @@ This shouldn't be using a constant multiplier. */ + /* @@ The 10 is a guess at a plausible maximum number of aux entries + (but shouldn't be a constant). */ new->native = (combined_entry_type *) bfd_zalloc (abfd, sizeof (combined_entry_type) * 10); if (!new->native) return (NULL);