musl/arch/sh
Bobby Bingham 611eabd489 superh: fix dynamic linking of __fpscr_values
Applications ended up with copy relocations for this array, which
resulted in libc's references to this array pointing to the
application's copy.  The dynamic linker, however, can require this array
before the application is relocated, and therefore before the
application's copy of this array is initialized.  This resulted in
garbage being loaded into FPSCR before executing main, which violated
the ABI.

We fix this by putting the array in crt1 and making the libc copy
private.  This prevents libc's reference to the array from pointing to
an uninitialized copy in the application.
2014-03-16 16:17:28 -05:00
..
bits move struct semid_ds to from shared sys/sem.h to bits 2014-03-11 15:27:13 -04:00
src superh: fix dynamic linking of __fpscr_values 2014-03-16 16:17:28 -05:00
atomic.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
crt_arch.h superh: fix dynamic linking of __fpscr_values 2014-03-16 16:17:28 -05:00
pthread_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
reloc.h fix endian subarchs for sh arch 2014-02-27 22:20:44 -05:00
syscall_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00