HomeFreeBSD

Binutils commit 0c845abb5a0083c6deebc75975608237015badba increased
rS214799Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Binutils commit 0c845abb5a0083c6deebc75975608237015badba increased
ELF_MAXPAGESIZE for amd64 from 0x00100000 to 0x00200000. This caused
the kernel to be incorrectly linked, using the existing linker script,
resulting in a virtual address of 0xffffffff80000000 for the LOAD
program header.

The boot loader will load such a kernel at a real address of 0x00000000,
which either causes protection faults in btx, crashes the machine, or
(in case of a VMware guest) even makes it power down. :)

Fix this by partially synchronizing the amd64 linker script with
binutils own updated version, in particular replacing a hardcoded
value of 0x00100000 by CONSTANT(MAXPAGESIZE).

Details

Provenance
dimAuthored on
Parents
rS214798: Remove 4.x, 5.x and 6.x compatibility bits.
Branches
Unknown
Tags
Unknown