mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user