From: David Huggins-Daines <dhd@linuxcare.com>
To: Bdale Garbee <bdale@gag.com>
Cc: parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] building a glibc-based tool chain
Date: 09 Apr 2000 12:17:13 -0400 [thread overview]
Message-ID: <87em8fjlkm.fsf@tarwebok.thepuffingroup.com> (raw)
In-Reply-To: 20000409072731.14C0C1E9D6@rover.gag.com
Bdale Garbee <bdale@gag.com> writes:
> In article <20000409060602.269491E9D6@rover.gag.com> you wrote:
>
> > We have the crt[1in].o in /opt/palinux/lib, but not crtbegin*. I'm off to
> > see if I can figure that out now.
>
> So, crtbegin/crtend are related to constructors and destructors for C++. I
> see where they get defined as part of extra_parts in the gcc build for various
> architectures, but I confess to not understanding how they are being included
> in my builds...
They aren't always needed. I suspect they may be related to whether
you compile code as position-independent or not, as the spec file on
i386 seems to indicate that they get linked in if you link with
-shared:
16 *endfile:
17 %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
28 *startfile:
29 %{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %
29 {!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}}
29 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
On Alpha (actually 64-bit RISC architectures in general, I think - for
rather intuitive reasons related to the size of instructions vs. the
size of pointers :) all code is position-independent, which is
probably why they're part of the standard runtime environment there.
So, this is probably another side effect of gcc and binutils assuming
that PA-RISC ELF targets are always 64-bit targets. However I'm not
up on the details of Sammy's ELF32 ABI ...
Needless to say we won't be compiling any C++ programs for a little
while at least (can we remove dselect from the dpkg sources? please?
pretty please? :) So, you could probably just edit them out of your
spec file manually for the time being.
--
David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
next prev parent reply other threads:[~2000-04-09 16:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-06 18:05 [parisc-linux] building a glibc-based tool chain Paul Bame
2000-04-09 6:06 ` Bdale Garbee
2000-04-09 7:27 ` Bdale Garbee
2000-04-09 16:17 ` David Huggins-Daines [this message]
2000-04-09 16:56 ` Bdale Garbee
2000-04-11 15:50 ` Paul Bame
2000-04-13 23:38 ` Paul Bame
2000-04-14 21:48 ` David Huggins-Daines
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=87em8fjlkm.fsf@tarwebok.thepuffingroup.com \
--to=dhd@linuxcare.com \
--cc=bdale@gag.com \
--cc=parisc-linux@thepuffingroup.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