HomeFreeBSD

Binutils commit 0c845abb5a0083c6deebc75975608237015badba increased

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 Nov 4 2010, 6:57 PM
Parents
rG8aa660204b36: Backport a fix for binutils PR7093, which caused segfaults in ld
Branches
Unknown
Tags
Unknown

Event Timeline