HomeFreeBSD

Correct elftoolchain strip(1) memory size calculation

Description

Correct elftoolchain strip(1) memory size calculation

Calculate the segment's memory size (p_memsz) using the virtual
addresses, not the file offsets. Otherwise padding preceeding SHT_NOBITS
sections may be excluded from the calculation, resulting in a segment
that is too small.

PR: 195653
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS275809: Revert r275778, gcc 4.2.1 doesn't handle -march=armv7.
Branches
Unknown
Tags
Unknown

Event Timeline