public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: jerry@cs.ucsb.edu (Jeremiah W. James)
To: egcs@cygnus.com
Subject: [egcs 1.0.1] i386-pc-solaris2.6 and -g
Date: Fri, 23 Jan 1998 14:48:00 -0000	[thread overview]
Message-ID: <tpr3eigdu1u.fsf@cs.ucsb.edu> (raw)

It appears that the -g option is not working quite correctly on my
i386-pc-solaris2.6 build of egcs 1.0.1.  I configured it with the
following options:

 --enable-shared --enable-threads --with-gnu-as

since binutils 2.8.1 was available.  I did not set BOOT_CFLAGS, or do
anything else out of the ordinary during the build, just a "make
bootstrap" followed by a "make install".

Programs compiled with -g cause the binutils 2.8.1 addr2line and objcopy
(and hence strip) to dump core.  The problem seems to be that a lookup
of the filename symbol doesn't succeed, returning a null pointer for the
filename.  Addr2line, in particular, then tries to print the filename,
causing it to seg fault in libc.  The strange thing is that nm shows the
filename symbols in there.  Has anybody else seen this?  If not, any
clues on what might be happening?  Is my egcs somehow corrupted?  Note
that programs compiled -g with Solaris cc and gcc 2.7.2 cause no
problems.

Thanks for any answers,
-- 
Jerry James
Email: jerry@cs.ucsb.edu
WWW:   http://www.cs.ucsb.edu/~jerry/

             reply	other threads:[~1998-01-23 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-23 14:48 Jeremiah W. James [this message]
1998-01-23 21:26 ` Jeffrey A Law
1998-01-24 17:58   ` Gavin Koch
1998-01-23 21:57 ` Joe Buck

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=tpr3eigdu1u.fsf@cs.ucsb.edu \
    --to=jerry@cs.ucsb.edu \
    --cc=egcs@cygnus.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).