summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-03-16 12:22:18 +0000
committerMark Kettenis <kettenis@gnu.org>2004-03-16 12:22:18 +0000
commit8c20608a2e992267d8b186b071fbad7238f0e339 (patch)
treedb6d8dd88304557468150109071ddab26d7102a9 /bfd
parent6bf922812e56cf24d217f2b5cb961bca9464f884 (diff)
downloadgdb-8c20608a2e992267d8b186b071fbad7238f0e339.tar.gz
* netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
code.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/netbsd-core.c22
2 files changed, 6 insertions, 21 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ea5189c9195..1016a1b2030 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-16 Mark Kettenis <kettenis@gnu.org>
+
+ * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
+ code.
+
2004-03-16 Alan Modra <amodra@bigpond.net.au>
* elflink.c (elf_link_read_relocs_from_section): Don't use
diff --git a/bfd/netbsd-core.c b/bfd/netbsd-core.c
index 876e079291d..250c6f4f1d5 100644
--- a/bfd/netbsd-core.c
+++ b/bfd/netbsd-core.c
@@ -34,8 +34,6 @@
NetBSD/sparc64 overlaps with M_MIPS1. */
#define M_SPARC64_OPENBSD M_MIPS1
-/* FIXME: On NetBSD/sparc CORE_FPU_OFFSET should be (sizeof (struct trapframe)). */
-
struct netbsd_core_struct
{
struct core core;
@@ -63,7 +61,7 @@ netbsd_core_file_p (abfd)
{
int i, val;
file_ptr offset;
- asection *asect, *asect2;
+ asection *asect;
struct core core;
struct coreseg coreseg;
bfd_size_type amt = sizeof core;
@@ -143,24 +141,6 @@ netbsd_core_file_p (abfd)
asect->alignment_power = 2;
offset += coreseg.c_size;
-
-#ifdef CORE_FPU_OFFSET
- switch (CORE_GETFLAG (coreseg))
- {
- case CORE_CPU:
- /* Hackish... */
- asect->_raw_size = CORE_FPU_OFFSET;
- asect2 = bfd_make_section_anyway (abfd, ".reg2");
- if (asect2 == NULL)
- goto punt;
- asect2->_raw_size = coreseg.c_size - CORE_FPU_OFFSET;
- asect2->vma = 0;
- asect2->filepos = asect->filepos + CORE_FPU_OFFSET;
- asect2->alignment_power = 2;
- asect2->flags = SEC_ALLOC + SEC_HAS_CONTENTS;
- break;
- }
-#endif
}
/* Set architecture from machine ID. */