svn commit: r364435 - head/usr.sbin/kldxref

Brandon Bergren bdragon at FreeBSD.org
Thu Aug 20 19:24:50 UTC 2020


>   Note that we may still do some tweaking of our kernel linker scripts, to
>   lower the number of segments, although the exact benefit is not entirely
>   clear.
> 

No real benefit, except for when using loading via sources other than loader(8). If any platforms other than powerpc64 need this, they can get full control over the image generation with the PHDRS directive like we do there.

IIRC there are benefits to *having* more segments on i386/amd64 as it makes link_elf_protect() more effective in some cases.

-- 
  Brandon Bergren
  bdragon at FreeBSD.org


More information about the svn-src-head mailing list