summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-02-09 02:28:49 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-09 23:56:22 +0100
commitcd86f005ee31fd6e9bfdb378cf3fba22964a6598 (patch)
tree598ddb3d121e7de5c5cd7e0c692c671a8f9e4115 /i386/i386at/model_dep.c
parent86064b6ea5613e919918e31a992dcb764bca24b5 (diff)
Remove a.out support for ddb
We haven't built gnumach using a.out for a very long time. Message-Id: <Y+SgsQ3y8pPqfxRV@jupiter.tail36e24.ts.net>
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 98408c06..3a4b41a1 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -94,18 +94,12 @@
#include <ddb/db_sym.h>
#include <i386/db_interface.h>
-/* a.out symbol table */
-static vm_offset_t kern_sym_start, kern_sym_end;
-
/* ELF section header */
static unsigned elf_shdr_num;
static vm_size_t elf_shdr_size;
static vm_offset_t elf_shdr_addr;
static unsigned elf_shdr_shndx;
-#else /* MACH_KDB */
-#define kern_sym_start 0
-#define kern_sym_end 0
#endif /* MACH_KDB */
#define RESERVED_BIOS 0x10000
@@ -522,22 +516,6 @@ void c_boot_entry(vm_offset_t bi)
* We need to do this before i386at_init()
* so that the symbol table's memory won't be stomped on.
*/
- if ((boot_info.flags & MULTIBOOT_AOUT_SYMS)
- && boot_info.shdr_addr)
- {
- vm_size_t symtab_size, strtab_size;
-
- /* For simplicity we just use a simple boot_info_raw structure for elf */
- kern_sym_start = (vm_offset_t)phystokv(boot_info.shdr_addr);
- symtab_size = (vm_offset_t)phystokv(boot_info.shdr_num);
- strtab_size = (vm_offset_t)phystokv(boot_info.shdr_size);
- kern_sym_end = kern_sym_start + 4 + symtab_size + strtab_size;
-
- printf("kernel symbol table at %08" PRIxPTR "-%08" PRIxPTR " (%ld,%ld)\n",
- kern_sym_start, kern_sym_end,
- (unsigned long) symtab_size, (unsigned long) strtab_size);
- }
-
if ((boot_info.flags & MULTIBOOT_ELF_SHDR)
&& boot_info.shdr_num)
{
@@ -562,11 +540,6 @@ void c_boot_entry(vm_offset_t bi)
/*
* Initialize the kernel debugger's kernel symbol table.
*/
- if (kern_sym_start)
- {
- aout_db_sym_init((char *)kern_sym_start, (char *)kern_sym_end, "mach", (char *)0);
- }
-
if (elf_shdr_num)
{
elf_db_sym_init(elf_shdr_num,elf_shdr_size,