Browse Source

* coffgen.c (coff_bfd_make_debug_symbol): Improve comment.

* coffcode.h (coff_new_section_hook): Ditto.
gdb-4_18-branch
David Edelsohn 31 years ago
parent
commit
1d8eda7ab4
  1. 3
      bfd/coffcode.h
  2. 3
      bfd/coffgen.c

3
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);

3
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);

Loading…
Cancel
Save