aboutsummaryrefslogtreecommitdiff
path: root/lib/csu/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add C startup code tests for PIE binaries.John Baldwin2020-11-103-0/+13
| | | | | | | | | | | | | | | - Force dynamic to be a non-PIE binary. - Add a dynamicpie test which uses a PIE binary. Reviewed by: andrew Obtained from: CheriBSD MFC after: 2 weeks Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27127 Notes: svn path=/head/; revision=367576
* 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
* Revert r353140: Re-add ALLOW_MIPS_SHARED_TEXTREL, sprinkle it aroundKyle Evans2020-01-141-2/+0
| | | | | | | | | arichardson has an actual fix for the same issue that this was working around; given that we don't build with llvm today, go ahead and revert the workaround in advance. Notes: svn path=/head/; revision=356735
* Re-add ALLOW_MIPS_SHARED_TEXTREL, sprinkle it aroundKyle Evans2019-10-061-0/+2
| | | | | | | | | | | | Diff partially stolen from CheriBSD; these bits need -Wl,-z,notext in order to build in an LLVM world. They are needed for all flavors/sizes of MIPS. This will eventually get fixed in LLVM, but it's unclear when. Reported by: arichardson, emaste Differential Revision: https://reviews.freebsd.org/D21696 Notes: svn path=/head/; revision=353140
* Add explicit csu test dependencyEd Maste2019-01-041-0/+2
| | | | | | | | | | | | lib/csu/tests/dynamiclib requires libh_csu.so be built first. I'm not sure this is the most correct/best way to address this but it solves the issue in my testing. PR: 233734 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=342773
* Re-enable the dynamiclib tests. These should be fixed by r340910.Andrew Turner2018-11-241-1/+1
| | | | Notes: svn path=/head/; revision=340911
* Disable the dynamiclib test until a failure can be debuggedAndrew Turner2018-11-241-1/+1
| | | | Notes: svn path=/head/; revision=340881
* Build the csu tests on all architectures.Andrew Turner2018-10-301-1/+1
| | | | | | | | | | | The tests haven't been run them, but this is enough to build them so I can get feedback on if the various crt.h headers are correct. MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339916
* Disable the .preinit_array test in DSOs, ld.bfd fails to link objects withAndrew Turner2018-10-301-1/+1
| | | | | | | | | | the section. MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339913
* Fix the location of the static keyword.Andrew Turner2018-10-301-1/+1
| | | | | | | | MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339912
* Run the csu tests on a DSO. This builds the tests into a shared library,Andrew Turner2018-10-306-15/+138
| | | | | | | | | | | 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
* The jcr argument to _Jv_RegisterClasses is used, stop marking it otherwise.Andrew Turner2018-10-301-1/+1
| | | | | | | | MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339907
* 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
* Drop the csu tests WARNS to 5 to fix the powerpc64 build.Andrew Turner2018-10-263-2/+2
| | | | | | | | MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339770
* Implement a BSD licensed crtbegin/crtendAndrew Turner2018-10-258-0/+393
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