. 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
|
||
|---|---|---|
| .. | ||
| ack | ||
| csu | ||
| libarchive | ||
| libaudiodriver | ||
| libbdev | ||
| libbz2 | ||
| libc | ||
| libcrypt | ||
| libcurses | ||
| libddekit | ||
| libdevman | ||
| libdriver | ||
| libedit | ||
| libelf | ||
| libend | ||
| libexec | ||
| libfetch | ||
| libhgfs | ||
| libl | ||
| liblwip | ||
| libm | ||
| libminc | ||
| libminixfs | ||
| libminixutil | ||
| libmthread | ||
| libnetdriver | ||
| libpuffs | ||
| librefuse | ||
| libsys | ||
| libterminfo | ||
| libtimers | ||
| libusb | ||
| libutil | ||
| libvassert | ||
| libvtreefs | ||
| libz | ||
| nbsd_libasyn | ||
| nbsd_libc | ||
| nbsd_libcompat_minix | ||
| nbsd_libm | ||
| nbsd_libminlib | ||
| ack_build.sh | ||
| elf_build.sh | ||
| Makefile | ||
| Makefile.inc | ||
| README | ||
ack_build.sh - for ACK library building gnu_build.sh - for GNU library building ack_build.sh obj - create objdirs for gnu libraries ack_build.sh depend - find dependencies of ack libraries ack_build.sh all - compile ack libraries ack_build.sh install - compile and install ack libraries ack_build.sh clean - clean for ack libraries gnu_build.sh obj - create objdirs for gnu libraries gnu_build.sh depend - find dependencies of gnu libraries gnu_build.sh all - compile gnu libraries gnu_build.sh install - compile and install gnu libraries gnu_build.sh clean - clean for gnu libraries