maximum object file alignment of 32768?

#1173001
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

Reply

A question of your own? This thread is over 19 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.