summaryrefslogtreecommitdiff
path: root/lib/csu/arm/crt1.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the sed hack for ABI tag notes.John Baldwin2020-06-151-134/+0
| | | | | | | | | | | | | | | | | | The ELF notes compiled in C were placed in a section with the wrong type (SHT_PROGBITS instead of SHT_NOTE). Previously, sed was used on the generated assembly to rewrite the section type. Instead, write the notes in assembly which permits setting the correct section type directly. While here, move inline assembly entry points out of C and into assembly for aarch64, arm, and riscv. Reviewed by: kib Tested on: amd64 (cirrus-ci), riscv64 Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25211 Notes: svn path=/head/; revision=362203
* crt: switch to standard note type definitions from elf_common.hEd Maste2018-10-041-1/+3
| | | | | | | | | | | | | | This makes it easier to grep the source tree for these notes, and ensures that they will remain in sync. Reviewed by: kib Approved by: re (gjb) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17408 Notes: svn path=/head/; revision=339181
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Update several more URLsEitan Adler2017-10-291-1/+1
| | | | | | | | - Primarily http -> https - Primarily FreeBSD project URLs Notes: svn path=/head/; revision=325096
* Remove historical GNUC testEd Maste2015-12-081-6/+0
| | | | | | | | | | | | The requirement is for a GCC-compatible compiler and not necessarily GCC itself. However, we currently expect any compiler used for building the whole of FreeBSD to be GCC-compatible and many things will break if not; there's no longer a need to have an explicit test for this in csu. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=292000
* Use the size of the MACHINE_ARCH string instead of sizeof(uint32_t). It canOlivier Houchard2013-10-271-1/+1
| | | | | | | | happen sizeof(MACHINE_ARCH) is more than 4 bytes, and bad things would happen. This should make the ctors being called again on armeb. Notes: svn path=/head/; revision=257233
* Add an elf note on ARM to store the MACHINE_ARCH an executable was builtAndrew Turner2013-09-261-0/+14
| | | | | | | | | | | | | for. This is useful for software needing to know which architecture a binary is built for as arm and armv6 have slight differences meaning only some binaries build for one will work as expected on the other. It is expected pkgng will be able to make use of this to simplify the logic to determine which package ABI to use. Approved by: re (kib) Notes: svn path=/head/; revision=255874
* Only assign the environ in the startup code when environ is NULL.Konstantin Belousov2013-01-071-4/+1
| | | | | | | | | | | | | | | | | Preloaded library could have changed the environment, and unconditional assingment to the environ undoes the customization. The binaries needs to be recompiled to get the fix. Move the common code to set up environ and __progname into the helper. Note that ia64 possibly not fixed, due to it still using old csu. Reported and tested by: John Hein <jhein@symmetricom.com> Reviewed by: kan, scf Approved by: secteam (simon) MFC after: 2 weeks Notes: svn path=/head/; revision=245133
* Stop calling _init/_fini methods from crt1 for dynamic binaries. DoKonstantin Belousov2012-03-111-20/+5
| | | | | | | | | | | | | | | | call preinit, init and fini arrays methods from crt1 for static binaries. Mark new crt1 with FreeBSD-specific ELF note. Move some common crt1 code into new MI file ignore_init.c, to reduce duplication. Also, conservatively adjust nearby sources for style. Reviewed by: kan Tested by: andrew (arm), flo (sparc64) MFC after: 3 weeks Notes: svn path=/head/; revision=232832
* Let all .c and .S files under lib/csu consistently use the __FBSDID()Dimitry Andric2010-12-091-3/+3
| | | | | | | | macro for identification, instead of several different hand-rolled variants (plain .ident, .ascii, etc). Notes: svn path=/head/; revision=216338
* Properly declare non-extern functions in crt1Ulrich Spörlein2010-03-051-0/+3
| | | | | | | | | | | Also move the declarations after __progname consistently to make the distinction clearer. Reviewed by: jmallett Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204756
* Implement .init and .fini.Olivier Houchard2004-09-231-4/+2
| | | | Notes: svn path=/head/; revision=135679
* Add support for TLS in statically linked programs.Doug Rabson2004-08-151-0/+2
| | | | Notes: svn path=/head/; revision=133754
* C runtime support for FreeBSD/arm.Olivier Houchard2004-05-141-0/+137
Notes: svn path=/head/; revision=129205