This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: reorganise SPU crt0 files
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: bje at au1 dot ibm dot com (Ben Elliston)
- Cc: gcc-patches at gcc dot gnu dot org, saliu at de dot ibm dot com (Sa Liu)
- Date: Fri, 1 Dec 2006 16:33:51 +0100 (CET)
- Subject: Re: PATCH: reorganise SPU crt0 files
Ben Elliston wrote:
> +#undef STARTFILE_SPEC
> +#define STARTFILE_SPEC "%{mstdmain: crt2.o%s} %{!mstdmain: crt1.o%s} \
> + crti.o%s crtbegin.o%s"
If I recall correctly, this exposed a back-end bug triggered by
crtstuff.c code that uses attribute ((aligned (4))) on global
variables -- the back-end would ignore the aligment and assume
16-byte alignment anyway.
We've got another patch in our queue to fix this, so that should
probably go in first ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com