mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Install the user trap handlers that libc provides from a constructor, so
that they will be installed before application constructors are invoked. Its possible to link applications such that this fails, application code is invoked before they are installed, but, well, Don't Do That. Approved by: re (jhb)
This commit is contained in:
parent
7e1985fcd8
commit
eaf21f315e
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ static const struct sparc_utrap_install_args uia[] = {
|
|||
sizeof (ua) / sizeof (*ua), ua
|
||||
};
|
||||
|
||||
void __sparc_utrap_setup(void) __attribute__((constructor));
|
||||
|
||||
void
|
||||
__sparc_utrap_setup(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue