diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-05-28 15:48:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-05-28 15:48:13 +0000 |
commit | 7dd3d45a457a7ec101cfc10d9cd8380a2e4b2278 (patch) | |
tree | c2baf32b15711bac035778ee558794910437871b /bfd | |
parent | 553c179c28eea1b15281bdfd0be86084e434568f (diff) | |
download | gdb-7dd3d45a457a7ec101cfc10d9cd8380a2e4b2278.zip gdb-7dd3d45a457a7ec101cfc10d9cd8380a2e4b2278.tar.gz gdb-7dd3d45a457a7ec101cfc10d9cd8380a2e4b2278.tar.bz2 |
* aoutx.h (NAME(aout,find_nearest_line)): Make room for the
potential leading underscore in the allocated buffer.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/aoutx.h | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 298a524..733fcd2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com> + + * aoutx.h (NAME(aout,find_nearest_line)): Make room for the + potential leading underscore in the allocated buffer. + Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com> * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common diff --git a/bfd/aoutx.h b/bfd/aoutx.h index fd550e0..8bba2a2 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -1496,6 +1496,22 @@ translate_from_native_sym_flags (abfd, cache_ptr) #endif /* 0 */ + switch (cache_ptr->type & N_TYPE) + { + case N_SETA: + cache_ptr->symbol.section = bfd_abs_section_ptr; + break; + case N_SETT: + cache_ptr->symbol.section = obj_textsec (abfd); + break; + case N_SETD: + cache_ptr->symbol.section = obj_datasec (abfd); + break; + case N_SETB: + cache_ptr->symbol.section = obj_bsssec (abfd); + break; + } + cache_ptr->symbol.flags |= BSF_CONSTRUCTOR; } break; @@ -2732,7 +2748,7 @@ NAME(aout,find_nearest_line) adata (abfd).line_buf = buf = NULL; else { - buf = (char *) bfd_malloc (filelen + funclen + 2); + buf = (char *) bfd_malloc (filelen + funclen + 3); adata (abfd).line_buf = buf; if (buf == NULL) return false; |