diff options
author | emaste <emaste@FreeBSD.org> | 2014-12-15 18:18:57 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-12-15 18:18:57 +0000 |
commit | 50872743f93c1edaa918140eed44a7300d41beb8 (patch) | |
tree | 8f2868f6525916d5920d47b72dd956c7fdfc020e /lib/libc/string/strncpy.c | |
parent | 93ef12f5869abbc3948befe430bb97291c1b1379 (diff) | |
download | FreeBSD-src-50872743f93c1edaa918140eed44a7300d41beb8.zip FreeBSD-src-50872743f93c1edaa918140eed44a7300d41beb8.tar.gz |
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
Diffstat (limited to 'lib/libc/string/strncpy.c')
0 files changed, 0 insertions, 0 deletions