ppc64 asm/ld alignment question
ppc64 asm/ld alignment question
- Subject: ppc64 asm/ld alignment question
- From: Brad Parker <email@hidden>
- Date: Fri, 28 Oct 2005 18:11:54 -0400
- Organization: Heeltoe Consulting
[I may be in the wrong place - if so please take pitty on me :-)]
I have some 64 bit ppc asm I'm trying to get going on mac os 10.4.
Everything compiles and links fine but something odd happens with the
alignment of the eventual code.
In the assembler I have two types of labels, some which start with "L"
and some which start with "G".
The "Lxxx:" labels are left alone. The "Gxxx:" labels are aligned on 4k
boundaries with nop's inbetween. Note that the "Gxxx:" labels are not
.globl or referenced in any way by an assembler directive.
Also note that the alignment is happening in the linker. If I gdb or
otool64 the .o the code is all tight and nice. After linking it's all
spaced out.
(hey, I'm all for cache line alignment but I like to be in control of it
when *I'm* writing the assembly code :-)
This behavior appears to be different from the gnu/binutils as I was
using under linux. (duh - did I mention I'm new to darwin? :-)
I'm using the latest non-beta xcode release (2.1) which seems correct.
I'm tempted to look at the link spec file but I would guess that would
control entire sections, not labels inside a section...
any suggestions?
-brad
Brad Parker
Heeltoe Consulting
+1-781-483-3101
http://www.heeltoe.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden