aboutsummaryrefslogtreecommitdiff
path: root/lib/csu/tests/fini_test.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix dso_handle_check for PIE executables.John Baldwin2020-11-101-2/+2
| | | | | | | | | | | | | PIE executables use crtbeginS.o and have a non-NULL dso_handle as a result. Reviewed by: andrew, emaste MFC after: 2 weeks Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27126 Notes: svn path=/head/; revision=367575
* Run the csu tests on a DSO. This builds the tests into a shared library,Andrew Turner2018-10-301-4/+35
| | | | | | | | | | | then runs these from the base test programs. With this we can check crtbeginS.o and crtendS.o are working as expected. MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339908
* Check __dso_handle is NULL in non-DSO objects. It should only be non-NULLAndrew Turner2018-10-291-0/+11
| | | | | | | | | | when accessed from a shared object. MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339864
* Implement a BSD licensed crtbegin/crtendAndrew Turner2018-10-251-0/+129
These are needed for .ctors/.dtors and .jcr handling. The former needs all the function pointers to be called in the correct order from the .init/.fini section. The latter just needs to call a gcj specific function if it exists with a pointer to the start of the .jcr section. This is currently disabled until __dso_handle support is added. Reviewed by: emaste MFC after: 1 month Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17587 Notes: svn path=/head/; revision=339738