You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Splitting data landing in flash resulted in the linker getting upset
in a couple of ways.
First, the constructor/destructor arrays were no longer getting
aligned via the ALIGN statement above them, resulting in the symbols
being mis-aligned from the actual arrays.
Second, the constructors and destructors were somehow getting marked
'writable' which made the linker unhappy as that meant the contents of
flash were marked both executable and writable.
Fix this up by stuffing the constructor/destructor arrays into the
.text segment along with the ALIGN statement.
Signed-off-by: Keith Packard <[email protected]>
0 commit comments