40f4d3cf0f
The basic point is as in 2.1 (appending the PCK into the executable), but this implementation also patches a dedicated section in the ELF/PE executable so that it matches the appended data perfectly. The usage of integer types is simplified in existing code; namely, using plain `int` for small quantities.
10 lines
266 B
Text
10 lines
266 B
Text
SECTIONS
|
|
{
|
|
/* Add a zero-sized section; the exporter will patch it to enclose the data appended to the executable (embedded PCK) */
|
|
pck 0 (NOLOAD) :
|
|
{
|
|
/* Just some content to avoid the linker discarding the section */
|
|
. = ALIGN(8);
|
|
}
|
|
}
|
|
INSERT AFTER .rodata;
|