diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2017-01-29 21:23:32 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2017-01-29 21:23:32 +0100 |
commit | cd5e7e2d8271d8d4b976eaa42c69770d94c67a74 (patch) | |
tree | 9981dde5eee25408d0f41807e2e37f4ca0c32083 /newlib/libc/string/strlcat.c | |
parent | 52a6da816f72e50aa79f0b941a003b94510fb1ad (diff) | |
download | cygnal-cd5e7e2d8271d8d4b976eaa42c69770d94c67a74.tar.gz cygnal-cd5e7e2d8271d8d4b976eaa42c69770d94c67a74.tar.bz2 cygnal-cd5e7e2d8271d8d4b976eaa42c69770d94c67a74.zip |
Committed, libgloss: hook up cris-elf to the initfini-array support.
After a binutils change "a while ago" (2015-12) to default to
--enable-initfini-array, i.e. to merge .ctors and .dtors into
.init_array and .fini_array, this is needed for cdtors to run at all.
Based on what goes on in arm/ and aarch64/. Tested for cris-elf by
running the gcc testsuite.
By the way, the configure test doesn't detect this change, so the
HAVE_INITFINI_ARRAY ifdeffery is somewhat redundant. Still, the
change is tested to be safe with older binutils too.
libgloss/
* cris/crt0.S, cris/lcrt0.c: Include newlib.h.
[HAVE_INITFINI_ARRAY] (_init): Define to __libc_init_array.
[HAVE_INITFINI_ARRAY] (_fini): Ditto __libc_fini_array.
Diffstat (limited to 'newlib/libc/string/strlcat.c')
0 files changed, 0 insertions, 0 deletions