In article <2645024.652.1323884735027.JavaMail.geo-discussion-forums@yqkb10>,
Dan Miller <
gnu.gc...@googlegroups.com> wrote:
>
>Now, I'm trying to move data up there as well, but this is more problematic.
>I tried:
>
>static const cmd user_cmd_set[] __attribute__((section (".hirodata"))) = {...} ;
>
>and it was relocated fine. However, when I try to move another data
>block up there:
>
>static cmd special_cmd_set[] __attribute__((section (".hirodata")))
>I get an error:
>cmd_svc.c:1157: error: special_cmd_set causes a section type conflict
You have a const on one of them and not on the other. It seems like gcc is
deciding that the section should be readonly (and whoever picked the name
"hirodata" was thinking that too) then it gets surprised by your attempt to
put modifiable data there.
--
Alan Curry