aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-02-07 23:49:56 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-02-07 23:49:56 +0000
commit47633640aac786547853c20f7d767c0f6c66f5fb (patch)
tree3b908bcd33eed87e1d3a75e46d746942529197f7 /sys/alpha
parent9fdfe602fc5fe4a9fbbff8589022a8bc068aeeab (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/elf.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/alpha/include/elf.h b/sys/alpha/include/elf.h
index 3972adb4825ac..26e912edd7b51 100644
--- a/sys/alpha/include/elf.h
+++ b/sys/alpha/include/elf.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: elf.h,v 1.4 1998/08/17 08:05:55 dfr Exp $
+ * $Id: elf.h,v 1.5 1998/09/14 20:30:08 jdp Exp $
*/
#ifndef _MACHINE_ELF_H_
@@ -135,4 +135,16 @@ __ElfType(Auxinfo);
#define ELF_TARG_MACH EM_ALPHA
#define ELF_TARG_VER 1
+#ifdef KERNEL
+
+/*
+ * On the Alpha we load the dynamic linker where a userland call
+ * to mmap(0, ...) would put it. The rationale behind this
+ * calculation is that it leaves room for the heap can grow to
+ * its maximum allowed size.
+ */
+#define ELF_RTLD_ADDR(vmspace) \
+ (round_page((vm_offset_t)(vmspace)->vm_daddr + MAXDSIZ))
+
+#endif /* KERNEL */
#endif /* !_MACHINE_ELF_H_ */