[PATCH] [MSP430] Fix incorrect assembly code in _msp430_run_array

Jozef Lawrynowicz jozef.l@mittosystems.com
Mon Apr 15 17:13:00 GMT 2019


The attached patch fixes incorrect assembly code in _msp430_run_array from
crt0.S.

When {.preinit,.init,.fini}_array sections contain pointers to functions that
need to be executed, _msp430_run_array is supposed to run through the table
and call these functions. However, currently the assembly code is wrong and
the CPU exhibits undefined behaviour when trying to execute the required
functions from these arrays.

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

Thanks,
Jozef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MSP430-Fix-incorrect-assembly-code-in-_msp430_run_ar.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190415/19a22c5f/attachment.bin>


More information about the Newlib mailing list