]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/commit
MFC r296419 (by kib):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 19:59:08 +0000 (19:59 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 19:59:08 +0000 (19:59 +0000)
commit075d50402800b9eefac8ccda57edf2665397a567
treeaf6223c199080a497dac7aa02e8493c242b48e09
parent3e6f8640dbf917c7bf8c7a67cfe86546984e706b
MFC r296419 (by kib):

In the link_elf_obj.c, handle sections of type SHT_AMD64_UNWIND same
as SHT_PROGBITS.  This is needed after the clang 3.8 import, which
generates that type for .eh_frame section, which had SHT_PROGBITS type
before.

Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
PR: 207729
Tested by: dim (previous version)
Sponsored by: The FreeBSD Foundation

MFC r296428:

Since kernel modules can now contain sections of type SHT_AMD64_UNWIND,
the boot loader should not skip over these anymore while loading images.
Otherwise the kernel can still panic when it doesn't find the .eh_frame
section belonging to the .rela.eh_frame section.

Unfortunately this will require installing boot loaders from sys/boot
before attempting to boot with a new kernel.

Reviewed by: kib

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/releng/10.3@296469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/common/load_elf_obj.c
sys/kern/link_elf_obj.c