Bug #12770
closedstop including exception unwind info in the kernel
100%
Description
It's a minor thing, but we should stop including .eh_frame in kernel objects. Nothing should be throwing exceptions or unwinding in there.
Updated by Rich Lowe almost 2 years ago
I talked to some people I know have thought about using languages that
in theory support unwinding exceptions in the kernel, they unanimously
wanted such things to panic rather than be caught. We agreed should
they ever change their mind, this would be easy enough to restore (and
that they'd likely have to write runtime code to map/use it the info).
It was mentioned to me in private mail (for reasons unrelated to this
change) that SunCluster/OHAC contains C++ kernel code. I have not been
able to find a copy of the code to check whether it throws/catches
through other code, or indeed at all. The point of the mail that
brought this up was also that it does not work (anyway) at the moment,
so I haven't investigated further than making an attempt to find the old
open code.
I tested with build and boot
Updated by Electric Monk almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
git commit 9b9e3196fde9c0f47c8cc4ab00f3bc5b539ceaca
commit 9b9e3196fde9c0f47c8cc4ab00f3bc5b539ceaca Author: Richard Lowe <richlowe@richlowe.net> Date: 2020-06-26T16:56:45.000Z 12770 stop including exception unwind info in the kernel Reviewed by: Patrick Mooney <pmooney@pfmooney.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>