From: Peter Schauer Date: Tue, 12 Jul 1994 19:14:09 +0000 (+0000) Subject: * aix386-core.c, aoutf1.h, cisco-core.c, elfcode.h, hppabsd-core.c, X-Git-Tag: gdb-4_18~14052 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57a814a93e1b7752ca37408eb5a070801cb6c415;p=external%2Fbinutils.git * aix386-core.c, aoutf1.h, cisco-core.c, elfcode.h, hppabsd-core.c, hpux-core.c, irix-core.c, lynx-core.c, osf-core.c, ptrace-core.c, rs6000-core.c, trad-core.c: Remove SEC_ALLOC flag from .reg sections, .reg sections are not allocated and contain debug information only. * osf-core.c (make_bfd_asection, osf_core_core_file_p): Use bfd_make_section_anyway instead of building unique section names. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 81eef4e..19cfbb7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +Tue Jul 12 12:08:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * aix386-core.c, aoutf1.h, cisco-core.c, elfcode.h, hppabsd-core.c, + hpux-core.c, irix-core.c, lynx-core.c, osf-core.c, ptrace-core.c, + rs6000-core.c, trad-core.c: Remove SEC_ALLOC flag from .reg + sections, .reg sections are not allocated and contain debug + information only. + * osf-core.c (make_bfd_asection, osf_core_core_file_p): Use + bfd_make_section_anyway instead of building unique section names. + Tue Jul 12 11:41:22 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * libelf.h (bfd_elf32_swap_symbol_in): Declare. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 72e1584..756d08d 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -3417,7 +3417,7 @@ bfd_prstatus (abfd, descdata, descsz, filepos) return false; newsect->_raw_size = sizeof (status->pr_reg); newsect->filepos = filepos + (long) &status->pr_reg; - newsect->flags = SEC_ALLOC | SEC_HAS_CONTENTS; + newsect->flags = SEC_HAS_CONTENTS; newsect->alignment_power = 2; if ((core_prstatus (abfd) = bfd_alloc (abfd, descsz)) != NULL) { @@ -3462,7 +3462,7 @@ bfd_fpregset (abfd, descdata, descsz, filepos) return false; newsect->_raw_size = descsz; newsect->filepos = filepos; - newsect->flags = SEC_ALLOC | SEC_HAS_CONTENTS; + newsect->flags = SEC_HAS_CONTENTS; newsect->alignment_power = 2; return true; } @@ -5632,9 +5632,12 @@ elf_link_output_sym (finfo, name, elfsym, input_sec) output_symbol_hook = get_elf_backend_data (finfo->output_bfd)-> elf_backend_link_output_symbol_hook; - if (! ((*output_symbol_hook) - (finfo->output_bfd, finfo->info, name, elfsym, input_sec))) - return false; + if (output_symbol_hook != NULL) + { + if (! ((*output_symbol_hook) + (finfo->output_bfd, finfo->info, name, elfsym, input_sec))) + return false; + } if (name == (const char *) NULL || *name == '\0') elfsym->st_name = 0;