summaryrefslogtreecommitdiffstats
path: root/lib/csu/powerpc/crt1.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove historical GNUC testemaste2015-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
* Only assign the environ in the startup code when environ is NULL.kib2013-01-071-3/+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
* Stop calling _init/_fini methods from crt1 for dynamic binaries. Dokib2012-03-111-21/+6
| | | | | | | | | | | | | 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
* Let all .c and .S files under lib/csu consistently use the __FBSDID()dim2010-12-091-2/+3
| | | | | macro for identification, instead of several different hand-rolled variants (plain .ident, .ascii, etc).
* Properly declare non-extern functions in crt1uqs2010-03-051-2/+3
| | | | | | | | Also move the declarations after __progname consistently to make the distinction clearer. Reviewed by: jmallett Approved by: ed (co-mentor)
* Add support for TLS in statically linked programs.dfr2004-08-151-0/+2
|
* make these more useful for lint(1). Minor diff-reductions while I'mmarkm2003-01-261-0/+1
| | | | about it.
* The main reason for this is to reduce diffs between all the crt1.c's.markm2002-07-161-13/+15
| | | | | | | | | | | | | | | | | | | Assembler macros are tidied up and made as similar as sanely possible. The macros are translated into C (__inline static) functions for lint. Declaration orders are made the same. Declarations are all ISOfied and tidied up. Comment contents have gratuitous diffs removed. The net result is a bunch of crt1.c's that are 90% the same. It may be possible to now encapsulate the differences in one MD header, and have only one MI crt1.c file (although the macros to do this may be ugly). Helpful comments by: obrien, bde Alpha tested by: des i386-elf tested by: markm
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-291-2/+3
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* Remove prototype, no other crt1.c has or needs it.obrien2002-03-231-9/+6
|
* Remove __P() usage.obrien2002-03-221-2/+2
|
* Remove __P() usage.obrien2002-03-211-2/+2
|
* Minor style(9) nit + utilize ELF features for the FreeBSD ID.obrien2002-02-271-8/+2
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-2/+0
|
* Fix compilation errors by adding forward declarations and fix typo.mp2001-07-311-3/+7
|
* PowerPC version of the C runtime support.obrien2001-01-041-0/+124
This is an amalgamation of the NetBSD macppc crt0.c (which the copyright reflects) and the FreeBSD/Alpha crt1.c.
OpenPOWER on IntegriCloud