1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/i386
John Polstra 47633640aa Change the load address of the ELF dynamic linker from "2L*MAXDSIZ"
to an architecture-specific value defined in <machine/elf.h>.  This
solves problems on large-memory systems that have a high value for
MAXDSIZ.

The load address is controlled by a new macro ELF_RTLD_ADDR(vmspace).
On the i386 it is hard-wired to 0x08000000, which is the standard
SVR4 location for the dynamic linker.

On the Alpha, the dynamic linker is loaded MAXDSIZ bytes beyond
the start of the program's data segment.  This is the same place
a userland mmap(0, ...) call would put it, so it ends up just below
all the shared libraries.  The rationale behind the calculation is
that it allows room for the data segment to grow to its maximum
possible size.

These changes have been tested on the i386 for several months
without problems.  They have been tested on the Alpha as well,
though not for nearly as long.  I would like to merge the changes
into 3.1 within a week if no problems have surfaced as a result of
them.
1999-02-07 23:49:56 +00:00
..
apm Perform APM power-off on power-off request, not halt request. 1998-12-10 23:36:14 +00:00
bios Perform APM power-off on power-off request, not halt request. 1998-12-10 23:36:14 +00:00
boot Don't refer to i386/isa/kbdio.h anymore. Use dev/kbd/atkbdcreg.h instead. 1999-01-11 03:50:01 +00:00
conf Reorder the pcvt(4) options to the appropriate section, so i can close 1999-02-07 20:33:05 +00:00
eisa Correct test in poll loop for determining that the mailbox is free to 1999-01-28 03:30:02 +00:00
i386 Recognize Pentium II Xeon, Celeron and Pentium III cpus. Because CPU 1999-02-04 16:48:26 +00:00
ibcs2 1) Fix our view of how ibcs2_semid_ds looks. There is no padding int there 1999-02-07 19:35:40 +00:00
include Change the load address of the ELF dynamic linker from "2L*MAXDSIZ" 1999-02-07 23:49:56 +00:00
isa Oops, the last commit contained a wrong patch. This is the correct one. 1999-02-05 12:58:40 +00:00
linux Added call to elf_brand_inuse() to prevent you from cutting your own 1999-02-04 21:20:13 +00:00
pci
svr4 Added underscores to some names in svr4_locore.s so that it compiles 1999-02-06 08:41:06 +00:00
Makefile Make this ${.OBJDIR} and ${.CURDIR} aware. 1998-05-31 22:40:49 +00:00