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

von Dustin S. (dbrazeau)

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


BuffSeg RM::buff_Seg_a[BuffSect_A_Segs] _attribute_ ((aligned

any suggestions on a fix or work around?


von Clifford S. (clifford)

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



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.