diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2018-10-11 23:28:04 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2018-10-11 23:28:04 +0000 |
commit | 3f102f5881c85d6db20daedb8645fa980c66ba19 (patch) | |
tree | ec4d15e5c86206589ebf8a2278b2fcadbb646ac9 /sys/kern/link_elf.c | |
parent | f38828cbc76d921ab9817df4687f94c89665f47a (diff) | |
download | src-3f102f5881c85d6db20daedb8645fa980c66ba19.tar.gz src-3f102f5881c85d6db20daedb8645fa980c66ba19.zip |
Notes
Diffstat (limited to 'sys/kern/link_elf.c')
-rw-r--r-- | sys/kern/link_elf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 9338b06bb268..9c82b7178a69 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -1682,14 +1682,10 @@ link_elf_ireloc(caddr_t kmdp) { struct elf_file eff; elf_file_t ef; - volatile char *c; - size_t i; ef = &eff; - /* Do not use bzero/memset before ireloc is done. */ - for (c = (char *)ef, i = 0; i < sizeof(*ef); i++) - c[i] = 0; + bzero_early(ef, sizeof(*ef)); ef->modptr = kmdp; ef->dynamic = (Elf_Dyn *)&_DYNAMIC; |