aboutsummaryrefslogtreecommitdiff
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
commit021d7868d08ec4a042946f0982861399989fa486 (patch)
tree49cee47c0ff834073ee678f995abee8625173637 /bfd
parenta9c3619ef1c8688c359b4b4c0785b4a3df6448a6 (diff)
downloadgdb-021d7868d08ec4a042946f0982861399989fa486.zip
gdb-021d7868d08ec4a042946f0982861399989fa486.tar.gz
gdb-021d7868d08ec4a042946f0982861399989fa486.tar.bz2
* 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 ea5189c..1016a1b 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 876e079..250c6f4 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. */