From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: hans_boehm@hp.com, parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Program counter from sigcontext, constructors
Date: Sat, 26 Apr 2003 17:24:42 -0400 [thread overview]
Message-ID: <20030426212442.GB14330@systemhalted> (raw)
In-Reply-To: <200304261733.h3QHXo9P001332@hiauly1.hia.nrc.ca>
> This is a bug in 3.0.4. If you look at the assembler output for the
> testcase, you will see the following:
>
> .section .ctors,"aw"
> .long my_start
>
> This is incorrect. The code should be:
>
> .section .ctors,"aw",@progbits
> .align 4
> .word P%my_start
>
> Using a plabel constructor causes $$dyncall to correctly load the
> pic register for the call to my_start. This is necessary because
> the startup file crtbegin.o is not compiled as pic code and the
> code in __do_global_ctors_aux clobbers the pic register.
Good catch. I hadn't bothered looking at the .S!
Again the recommendation is going to be "Use a newer gcc" :)
c.
next prev parent reply other threads:[~2003-04-26 21:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-25 20:21 [parisc-linux] Program counter from sigcontext, constructors Boehm, Hans
2003-04-25 21:37 ` John David Anglin
2003-04-26 16:08 ` Carlos O'Donell
2003-04-26 17:33 ` John David Anglin
2003-04-26 21:24 ` Carlos O'Donell [this message]
2003-04-27 0:28 ` John David Anglin
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=20030426212442.GB14330@systemhalted \
--to=carlos@baldric.uwo.ca \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=hans_boehm@hp.com \
--cc=parisc-linux@lists.parisc-linux.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.