pdp11: set correct header type for binaries
authorAlan Cox <alan@linux.intel.com>
Sun, 18 Feb 2018 00:32:17 +0000 (00:32 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 18 Feb 2018 00:32:17 +0000 (00:32 +0000)
We'll probably just go a.out but for now

Kernel/cpu-pdp11/cpu.h

index 1d41704..961f92c 100644 (file)
@@ -23,8 +23,8 @@ typedef uint16_t uptr_t;              /* User pointer equivalent */
 
 /* FIXME: we actually want to use an a.out loader */
 
-#define EMAGIC    0x7E    /* Header of executable  (JMP) */
-#define EMAGIC_2  0x20    /* BRA */
+#define EMAGIC    0x01    /* Header of executable  (BR) */
+#define EMAGIC_2  0x01   /* Only BR is recognized */
 
 /* Allow a minimum of 512 bytes gap between stack and top of allocations */
 #define brk_limit() (udata.u_syscall_sp - 512)