[RFC] remove dead code from link_elf.c

Oliver Pinter oliver.pntr at gmail.com
Thu May 15 13:36:52 UTC 2014


Hi all!

I found that the SPARSE_MAPPING used only in sys/kern/link_elf.c file,
and no other place in kernel, nor in generated codes in /usr/obj/...

op at pandora-d opBSD.git> git grep -i SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING
sys/kern/link_elf.c:#ifdef SPARSE_MAPPING

I proposed to remove the old/dead codes. Patch attached. Tested on amd64.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-link_elf-remove-SPARSE_MAPPING-and-related-code.patch
Type: application/octet-stream
Size: 3276 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140515/4a5ff349/attachment.obj>


More information about the freebsd-current mailing list