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

Jozef Lawrynowicz jozef.l@mittosystems.com
Wed Jul 24 16:53:00 GMT 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MSP430-Remove-.init-.fini-sections.patch
Type: text/x-patch
Size: 13507 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190724/34276f2e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.patch
Type: text/x-patch
Size: 1312 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190724/34276f2e/attachment-0001.bin>


More information about the Newlib mailing list