From: David Edelsohn <dje@watson.ibm.com>
To: Elena Zannoni <ezannoni@cygnus.com>
Cc: Kevin Buettner <kevinb@cygnus.com>,
"Zack Weinberg" <zackw@Stanford.EDU>,
Matthew Conway <matt_conway@i2.com>,
Mark Mitchell <mark@codesourcery.com>,
gcc-patches@gcc.gnu.org, gdb@sources.redhat.com
Subject: Re: Limited success with 3.0 branch on AIX
Date: Wed, 16 May 2001 10:46:00 -0000 [thread overview]
Message-ID: <200105161745.NAA29020@makai.watson.ibm.com> (raw)
In-Reply-To: <15105.47488.332324.391947@kwikemart.cygnus.com>
I can generate "gcc2_compiled." as a C_FILE entry using the
".file" assembler pseudo-op, but the value of interest is pointed to by
the entry, not the entry itself. The following is the output of dumping
the symbol table:
[0] m 0x00000002 -2 1 0x67 0x0000 .file
[1] a0 gcc2_compiled.
[2] m 0x00000007 -2 1 0x67 0x0000 .file
[3] a0 note.c
[4] m 0x00000000 1 1 0x6b 0x0000 .text
[5] a4 0x00000000 0 0 17 0 0 0
[6] m 0x00000000 -2 0 0x80 0x0000 gcc2_compiled.
Lines 0 and 1 are the extra C_FILE entry. Line 6 is the DBX C_GSYM that I
proposed. GDB can find the value of the File Auxilliary Entry associated
with the C_FILE symbol, but it takes some extra groveling.
I can force the value into the C_FILE entry itself, but it is not
portable and not correct.
I am worried about having two ".file" directives in a single
assembly file as ".file" is suppose to provide scope. Compare an object
file produced by IBM's XLC compiler:
[0] m 0x00000000 -2 3 0x67 0x0003 .file
[1] a0 bss.c
[2] a0 Wed May 16 13:32:41 2001
[3] a0 IBM C and C++ Compilers Version 3.6.6.0 ---
A single C_FILE entry containing the filename (XFT_FN), compiler timestamp
(XFT_CT), and compiler version number (XFT_CV).
I don't think that emitting a second ".file" directive is safe
because that is placing "gcc2_compiled." into the source file field. I
have not been able to find a way to generate multiple File Auxilliary
Entries associated with a single C_FILE symbol using assembly pseudo-ops.
All of the discussion about C_FILE and other storage classes is in
the context of XCOFF object files. IBM's compilers generate object files
directly, without an intermediate assembler step. There does not appear
to be a way to set the x_ftype field of the File Auxiliary Entry from the
assembler.
I will investigate further, but the primary functionality at our
disposal is the ".stabx" directive which is limited to the DBX storage
classes listed in dbxstclass.h.
David
next prev parent reply other threads:[~2001-05-16 10:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200104302116.RAA23290@makai.watson.ibm.com>
2001-05-02 23:25 ` Zack Weinberg
2001-05-03 1:42 ` Kevin Buettner
2001-05-15 15:27 ` Elena Zannoni
2001-05-15 15:31 ` David Edelsohn
2001-05-15 16:19 ` Elena Zannoni
2001-05-16 10:46 ` David Edelsohn [this message]
2001-05-16 11:15 ` David Edelsohn
2001-05-16 12:24 ` Elena Zannoni
[not found] <15106.54023.177141.275660@kwikemart.cygnus.com>
2001-05-16 12:37 ` David Edelsohn
2001-05-16 13:07 ` David Edelsohn
2001-05-16 13:51 ` Kevin Buettner
2001-05-16 14:06 ` Stan Shebs
2001-05-16 14:10 ` David Edelsohn
2001-05-16 14:32 ` Elena Zannoni
2001-05-16 21:29 ` Elena Zannoni
2001-05-17 15:27 ` David Edelsohn
[not found] <OF70310855.A41D4A39-ON86256A39.00616113@i2.com>
2001-05-01 10:13 ` David Edelsohn
2001-05-01 13:02 ` Daniel Berlin
2001-05-01 13:22 ` David Edelsohn
2001-05-01 15:40 ` Kevin Buettner
2001-05-01 15:44 ` David Edelsohn
2001-05-01 16:21 ` Kevin Buettner
2001-05-01 19:15 ` David Edelsohn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105161745.NAA29020@makai.watson.ibm.com \
--to=dje@watson.ibm.com \
--cc=ezannoni@cygnus.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb@sources.redhat.com \
--cc=kevinb@cygnus.com \
--cc=mark@codesourcery.com \
--cc=matt_conway@i2.com \
--cc=zackw@Stanford.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox