[PATCH][MSP430] Remove .init/.fini sections from CRT library code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH][MSP430] Remove .init/.fini sections from CRT library code

Jozef Lawrynowicz-2
The attached patch remove the .init/.fini sections from crt0/crtn. Detailed
explanation on the changes is in the commit message.

Successfully regtested the GCC/G++ testsuites for msp430-elf using the latest
GCC and binutils.

The attached "gcc.patch" patch to GCC is required before building. It enables
"initfini_array" (--enable-initfini-array) by default for msp430, and also makes
the crtn.o file an optional part of ENDFILE_SPEC (since this patch removes that
file).
If the attached newlib patch is accepted I will apply "gcc.patch" to GCC.

If the newlib patch is acceptable, I would appreciate if someone would commit it
for me, as I do not have write access.

Thanks,
Jozef

0001-MSP430-Remove-.init-.fini-sections.patch (13K) Download Attachment
gcc.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH][MSP430] Remove .init/.fini sections from CRT library code

Jeff Johnston
Patch applied to newlib.

-- Jeff J.

On Wed, Jul 24, 2019 at 12:53 PM Jozef Lawrynowicz <[hidden email]>
wrote:

> The attached patch remove the .init/.fini sections from crt0/crtn. Detailed
> explanation on the changes is in the commit message.
>
> Successfully regtested the GCC/G++ testsuites for msp430-elf using the
> latest
> GCC and binutils.
>
> The attached "gcc.patch" patch to GCC is required before building. It
> enables
> "initfini_array" (--enable-initfini-array) by default for msp430, and also
> makes
> the crtn.o file an optional part of ENDFILE_SPEC (since this patch removes
> that
> file).
> If the attached newlib patch is accepted I will apply "gcc.patch" to GCC.
>
> If the newlib patch is acceptable, I would appreciate if someone would
> commit it
> for me, as I do not have write access.
>
> Thanks,
> Jozef
>