EmbDev.net

Forum: ARM programming with GCC/GNU tools maximum object file alignment of 32768?


von Dustin S. (dbrazeau)


Rate this post
useful
not useful
I'm getting the warning:

warning: alignment of 'RM::buff_Seg_a' is greater than maximum object
file alignment.  Using 32768

CODE:

BuffSeg RM::buff_Seg_a[BuffSect_A_Segs] _attribute_ ((aligned
(65536)));

any suggestions on a fix or work around?

Thanks.

von Clifford S. (clifford)


Rate this post
useful
not useful
In general, if you hit against some system defined limit (which are
invariably set way above any reasonably expected value), you have to
assume that you are doing something very unusual and probably
ill-advised.

I'd have to ask why you need such course alignment? Knowing that might
help in coming up with a viable solution for what you are really trying
to do.

Saying "this is my solution, it does not work, how can I make it work?"
is rather the wrong approach. What you really want to say is "this is my
problem, I tried to solve it this way, but it does not work, how can I
solve the problem?" would be much more reasonable. So tell us what the
problem is, not the broken solution.

From the little information given I would suggest that perhaps a section
attribute would be more appropriate that an alignment attribute. You can
then determine the location and even the alignment using the linker
script.

Clifford

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.