mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
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.
11 lines
266 B
Plaintext
11 lines
266 B
Plaintext
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;
|