aboutsummaryrefslogtreecommitdiff
path: root/libexec/talkd/talkd.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-07-17 19:32:04 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-07-17 19:32:04 +0000
commit69ca61ba5e482dda9410c227ca300218bf56c95a (patch)
treea5e6d591ace4afa6b859024f9a7a394b30aa2d15 /libexec/talkd/talkd.c
parent8b9fde4324367474b8f3811fbe2811307d279565 (diff)
downloadsrc-69ca61ba5e482dda9410c227ca300218bf56c95a.tar.gz
src-69ca61ba5e482dda9410c227ca300218bf56c95a.zip
Only perform .bss mapping and cleaning operations when segment file size
is not equal to its memory size. This eliminates unneeded clearing of the text segment that often happens due to text end not being page-aligned. For instance, $ readelf -l /lib/libedit.so.6 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00000000 0x00000000 0x139e1 0x139e1 R E 0x1000 LOAD 0x014000 0x00014000 0x00014000 0x00f04 0x00f14 RW 0x1000 DYNAMIC 0x014cc4 0x00014cc4 0x00014cc4 0x000d0 0x000d0 RW 0x4 $ procstat -v $$ (for /bin/sh) 68585 0x28097000 0x280aa000 r-x 6 0 21 14 CN vn /lib/libedit.so.6 68585 0x280aa000 0x280ab000 r-x 1 0 1 0 CN vn /lib/libedit.so.6 <== 68585 0x280ab000 0x280ac000 rwx 1 0 1 0 CN vn /lib/libedit.so.6 Note the splitted map entry marked by '<=='. Reviewed by: kan Approved by: re (kensmith) MFC after: 1 month
Notes
Notes: svn path=/head/; revision=195743
Diffstat (limited to 'libexec/talkd/talkd.c')
0 files changed, 0 insertions, 0 deletions