public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Henrik Grindal Bakken <hgb@ifi.uio.no>
To: gcc-help@gcc.gnu.org
Cc: "Martin Guy" <martinwguy@yahoo.it>
Subject: Re: Problem with exceptions on arm
Date: Tue, 01 Apr 2008 10:21:00 -0000	[thread overview]
Message-ID: <x2e8wzxyjbq.fsf@shmi.ifi.uio.no> (raw)
In-Reply-To: <56d259a00804010255n7d7ec931o28ab5af9d39d798f@mail.gmail.com>

"Martin Guy" <martinwguy@yahoo.it> writes:

> On 4/1/08, Henrik Grindal Bakken <hgb@ifi.uio.no> wrote:
>> Henrik Grindal Bakken <hgb@ifi.uio.no> writes:
>>
>>  > Fails like this:
>>  > $ /tmp/fnord
>>  > terminate called after throwing an instance of 'char*'
>>  > terminate called recursively
>>  > Aborted
>
>>  dynamic linking fails.
>
> martin@n2100:~$ g++ fnord.cpp
> martin@n2100:~$ ./a.out
> I caught hello
> martin@n2100:~$ file a.out
> a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux
> 2.6.14, dynamically linked (uses shared libs), not stripped
>
> Do you mean when you import your cross-compiled .o's to it and link
> then there?

Ah, no.  I meant that if I do (on your box):
$ g++ -o fnord fnord.cpp
and run it on my box, it fails.  It works on your box.

If I do
$ g++ -static -o fnord.static fnord.cpp
and run it, it works.  And it doesn't seem to matter if I use your or
mine toolchain.

My libraries on target are stripped, but it doesn't appear to make a
difference if I use the non-stripped version.

It appears that either I make a mistake on transfer of .so files to
target, or my toolchain is built with inferior shared libraries (but
working static libraries).


-- 
Henrik Grindal Bakken <hgb@ifi.uio.no>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963  02AF 9236 D25A 8D43 6E52

      parent reply	other threads:[~2008-04-01 10:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27 10:10 Henrik Grindal Bakken
2008-03-29 18:54 ` Martin Guy
2008-03-31  6:41   ` Henrik Grindal Bakken
2008-03-31 12:09     ` Andrew Haley
2008-03-31 12:21       ` Henrik Grindal Bakken
2008-03-31 12:40         ` Martin Guy
2008-03-31 12:45           ` Henrik Grindal Bakken
2008-04-01  8:25 ` Henrik Grindal Bakken
2008-04-01 10:01   ` Martin Guy
2008-04-01 10:13     ` Andrew Haley
2008-04-01 10:32       ` Kai Ruottu
2008-04-01 11:04         ` Henrik Grindal Bakken
2008-04-01 16:30         ` Andrew Haley
2008-04-01 10:51       ` Henrik Grindal Bakken
2008-04-01 12:16       ` Henrik Grindal Bakken
2008-04-01 10:21     ` Henrik Grindal Bakken [this message]

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=x2e8wzxyjbq.fsf@shmi.ifi.uio.no \
    --to=hgb@ifi.uio.no \
    --cc=gcc-help@gcc.gnu.org \
    --cc=martinwguy@yahoo.it \
    /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).