mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Add __dso_handle to the BSD crtbegin. This is used to identify shared
objects. MFC with: r339738 Sponsored by: DARPA, AFRL
This commit is contained in:
parent
4b48b463ed
commit
fd8767bb69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339773
@ -30,6 +30,14 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
typedef void (*crt_func)(void);
|
||||
|
||||
extern void *__dso_handle __hidden;
|
||||
|
||||
#ifdef SHARED
|
||||
void *__dso_handle = &__dso_handle;
|
||||
#else
|
||||
void *__dso_handle = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* On some architectures and toolchains we may need to call the .dtors.
|
||||
* These are called in the order they are in the ELF file.
|
||||
|
Loading…
Reference in New Issue
Block a user