CVSROOT: /cvs Module name: src Changes by: j...@cvs.openbsd.org 2020/07/23 08:53:48
Modified files: gnu/usr.bin/binutils/bfd: elf64-x86-64.c gnu/usr.bin/binutils-2.17/bfd: elf64-x86-64.c Log message: change bfd amd64 ELF_MAXPAGESIZE from 1M to 4K An amd64 clang 10 binary built with lld 10 would abort after calling execve(2) if it had been stripped. PT_LOAD segment aligment being changed by strip was the cause. Changing to 4K matches lld and results in a working binary after strip. Introducing ELF_MINPAGESIZE of 4K (which is ELF_MAXPAGESIZE if not defined by the arch) would have also worked but we don't support large pages in userland. ok kettenis@