summaryrefslogtreecommitdiff
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r--apps/plugins/plugin.lds13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index c8ac88fb62..0626623fbf 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -64,7 +64,13 @@ MEMORY
64 64
65SECTIONS 65SECTIONS
66{ 66{
67 .text : 67 .header : {
68 _plugin_start_addr = .;
69 plugin_start_addr = .;
70 KEEP(*(.header))
71 } > PLUGIN_RAM
72
73 .text :
68 { 74 {
69 KEEP(*(.entry)) 75 KEEP(*(.entry))
70 *(.text*) 76 *(.text*)
@@ -80,7 +86,7 @@ SECTIONS
80 . = ALIGN(0x4); 86 . = ALIGN(0x4);
81 } > PLUGIN_RAM 87 } > PLUGIN_RAM
82 88
83 .data : 89 .data :
84 { 90 {
85 *(.data*) 91 *(.data*)
86#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101) 92#if defined(ARCH_IRIVER) || defined(ARCH_IPOD) || (CONFIG_CPU==PNX0101)
@@ -118,6 +124,9 @@ SECTIONS
118 { 124 {
119 *(.bss*) 125 *(.bss*)
120 *(COMMON) 126 *(COMMON)
127 . = ALIGN(0x4);
128 _plugin_end_addr = .;
129 plugin_end_addr = .;
121 } > PLUGIN_RAM 130 } > PLUGIN_RAM
122 131
123 /* Special trick to avoid a linker error when no other sections are 132 /* Special trick to avoid a linker error when no other sections are