mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-12 18:36:10 +08:00
* stabs.c (_bfd_link_section_stabs): Use bfd_make_section*_with_flags
instead of bfd_make_section*. * aix386-core.c: Likewise. * aix5ppc-core.c: Likewise. * aout-adobe.c: Likewise. * aoutf1.h: Likewise. * binary.c: Likewise. * cisco-core.c: Likewise. * coff-arm.c: Likewise. * coff-h8300.c: Likewise. * elf.c: Likewise. * elf32-bfin.c: Likewise. * elf32-m32c.c: Likewise. * hppabsd-core.c: Likewise. * hpux-core.c: Likewise. * i386linux.c: Likewise. * ieee.c: Likewise. * ihex.c: Likewise. * irix-core.c: Likewise. * lynx-core.c: Likewise. * m68klinux.c: Likewise. * mach-o.c: Likewise. * netbsd-core.c: Likewise. * nlmcode.h: Likewise. * opncls.c: Likewise. * osf-core.c: Likewise. * peXXigen.c: Likewise. * ppcboot.c: Likewise. * ptrace-core.c: Likewise. * rs6000-core.c: Likewise. * sco5-core.c: Likewise. * sparclinux.c: Likewise. * srec.c: Likewise. * sunos.c: Likewise. * trad-core.c: Likewise. * xcofflink.c: Likewise. * xsym.c: Likewise.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* BFD back end for NetBSD style core files
|
||||
Copyright 1988, 1989, 1991, 1992, 1993, 1996, 1998, 1999, 2000, 2001,
|
||||
2002, 2003, 2004, 2005
|
||||
2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
Written by Paul Kranenburg, EUR
|
||||
|
||||
@ -126,11 +126,10 @@ netbsd_core_file_p (bfd *abfd)
|
||||
flags = SEC_ALLOC + SEC_HAS_CONTENTS;
|
||||
break;
|
||||
}
|
||||
asect = bfd_make_section_anyway (abfd, sname);
|
||||
asect = bfd_make_section_anyway_with_flags (abfd, sname, flags);
|
||||
if (asect == NULL)
|
||||
goto punt;
|
||||
|
||||
asect->flags = flags;
|
||||
asect->size = coreseg.c_size;
|
||||
asect->vma = coreseg.c_addr;
|
||||
asect->filepos = offset;
|
||||
@ -159,11 +158,12 @@ netbsd_core_file_p (bfd *abfd)
|
||||
asect->size = wcookie_offset;
|
||||
|
||||
/* And create the .wcookie section. */
|
||||
asect = bfd_make_section_anyway (abfd, ".wcookie");
|
||||
flags = SEC_ALLOC + SEC_HAS_CONTENTS;
|
||||
asect = bfd_make_section_anyway_with_flags (abfd, ".wcookie",
|
||||
flags);
|
||||
if (asect == NULL)
|
||||
goto punt;
|
||||
|
||||
asect->flags = SEC_ALLOC + SEC_HAS_CONTENTS;
|
||||
asect->size = coreseg.c_size - wcookie_offset;
|
||||
asect->vma = 0;
|
||||
asect->filepos = offset + wcookie_offset;
|
||||
|
Reference in New Issue
Block a user