CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2019/11/09 13:29:09

Modified files:
        gnu/llvm/lib/CodeGen: ReturnProtectorPass.cpp 

Log message:
Move the hashed __retguard_* symbols into individual sections and mark
them as COMDATs so that the linker can individually discard them, instead
of just ignoring duplicate symbols but keep the (duplicate) space.

On amd64, this reduces the size of the kernel OPENBSD_RANDOM segment by 82%
and the libc OPENBSD_RANDOM segment by 15%.  A port that tb@ is working
on experienced a 97.3% reduction...which let it actually run.

ok mortimer@ deraadt@

Reply via email to