This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Aligning to an odd boundary


I'd like to align the location counter to an *odd* boundary, such that
	(. & 2) == 2
I tried...
	.if (. & 2) == 0
	nop
	.endif
... but gas complains...
	Error: non-constant expression in ".if" statement

I know of .balignw, which would help me align to an even boundary, but
of course I'm trying to do the opposite.

My target architecture is ARM/Thumb and nop is a two byte instruction.

Thanks!
Shaun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]