Remove auxarg_size as it was only used once right after a confusing
assignment in each of the variants of exec_copyout_strings().
Details
Details
- booted a patched FreeBSD/amd64 kernel and was able to run FreeBSD/amd64, FreeBSD/i386, and Linux/x86-64 binaries.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/amd64/linux/linux_sysvec.c | ||
---|---|---|
347–348 ↗ | (On Diff #41603) | I started down that path and then tried an alternate approach of decrementing vectp directly using howmany(). This doesn't require the casts and is shorter and looks more like the math to handle the argv and env vectors. Will update after some more testing. This also needs to use Elf64_Auxinfo. |
sys/amd64/linux32/linux32_sysvec.c | ||
830 ↗ | (On Diff #41603) | Just noticed these roundup/rounddown's are probably wrong (just need to be aligned to uint32_t) but it doesn't hurt beyond a few bytes of wasted space. |