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

 Author: Dustin Sr (dbrazeau) Posted on: 2007-10-19 00:01

Rate this post
 0 ▲ 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.

 Author: Clifford Slocombe (clifford) Posted on: 2007-10-20 00:33

Rate this post
 0 ▲ 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

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

• $formula (LaTeX syntax)$