as questions
as questions
- Subject: as questions
- From: Jonas Maebe <email@hidden>
- Date: Sat, 14 Aug 2004 14:32:41 +0200
Hello,
Is there any kind of define I can test for inside assembler files to
check whether AS supports the ".subsections_via_symbols" directive?
I.e., something like
.if as_supports_subsections_via_symbols
.subsections_via_symbols
.endif
Another question I have regarding AS, is that even though it already
supports dwarf2 debugging information according to
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01051.html (although gcc
for Mac OS X doesn't yet without some patches afaik), I can't get it to
recognize the .debug_frame, .uleb128 and .sleb128 directives. For
example:
[snip]
.debug_frame
L30:
.long L32-L31
L31:
.long -1
.byte 1
.byte 0
.uleb128 1
.sleb128 -1
.byte 0
.byte 12
.uleb128 1
.uleb128 4
.byte 5
.uleb128 0
.uleb128 4
.align 2
L32:
[snip]
$ as -o inline.o inline.s
inline.s:216:Unknown pseudo-op: .debug_frame
inline.s:223:Unknown pseudo-op: .uleb128
inline.s:223:Rest of line ignored. 1st junk character valued 49 (1).
inline.s:224:Unknown pseudo-op: .sleb128
inline.s:224:Rest of line ignored. 1st junk character valued 45 (-).
inline.s:227:Unknown pseudo-op: .uleb128
inline.s:227:Rest of line ignored. 1st junk character valued 49 (1).
inline.s:228:Unknown pseudo-op: .uleb128
inline.s:228:Rest of line ignored. 1st junk character valued 52 (4).
inline.s:230:Unknown pseudo-op: .uleb128
inline.s:230:Rest of line ignored. 1st junk character valued 48 (0).
inline.s:231:Unknown pseudo-op: .uleb128
inline.s:231:Rest of line ignored. 1st junk character valued 52 (4).
$ as -v
Apple Computer, Inc. version cctools-499.obj~2, GNU assembler version
1.38
(I'm still on XCode 1.2, maybe this is changed in the cctools of XCode
1.5?)
FWIW, I work on the Mac OS X version of the Free Pascal Compiler, which
uses its own code generator etc and which is completely independent of
gcc. The dwarf2 support was originally added to the compiler to enable
debugging on x86-64 under Linux (gdb's 64bit stabs support does not
work very well), so I'm starting to wonder whether it's maybe different
under Darwin? Are there any docs on this somewhere?
Thanks,
Jonas
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.