minix/lib/csu/i386-elf
Ben Gras 8b69d04fff csu: add code to call constructors to be used by clang
. clang-linked binaries were not calling global constructors, as the
	  code to do so wasn't in csu/ and linked
	. it does work for gcc as it uses its self-supplied crt{begin,end} code
	. this commit copies netbsd's crt{begin,end}.S, which contains
	  constructor/destructor calling code, called from .init and .fini
	  sections already accumulated by the linker. the _init function was already
	  called by the C startup code before calling main.
	. based on work by Antoine Leca
2011-11-20 20:20:51 +01:00
..
crt1_c.c libc and csu updates for ELF 2010-12-10 23:04:04 +00:00
crt1_s.S csu/build support for ELF 2010-12-10 22:20:12 +00:00
crtbegin.S csu: add code to call constructors to be used by clang 2011-11-20 20:20:51 +01:00
crtend.S csu: add code to call constructors to be used by clang 2011-11-20 20:20:51 +01:00
crti.S csu/build support for ELF 2010-12-10 22:20:12 +00:00
crtn.S csu/build support for ELF 2010-12-10 22:20:12 +00:00
Makefile csu: add code to call constructors to be used by clang 2011-11-20 20:20:51 +01:00