HomeFreeBSD

Align the start of the text segment to an 8-byte boundary. This fixes

Description

Align the start of the text segment to an 8-byte boundary. This fixes
alignment aborts in ubldr.bin for RPi that started happening with clang 3.8
(earlier clang apparently didn't generate strd instructions that trigger
the alignment fault). The abort happened in ubldr.bin and not ubldr (elf
version) because the elf headers are 0xf4 bytes long, and stripping them
off left everything 4-byte aligned.

While here, also stop aligning the data segment to a page boundary, align
it to 8 bytes instead (aligning to a page just needlessly makes the file
bigger); pointed out by andrew@.

Details

Provenance
ianAuthored on
Parents
rS297757: libedit: replace 0 with NULL for pointers.
Branches
Unknown
Tags
Unknown