Re: gcc - How to link the RTL statically ?
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Wed, 26 Nov 2008 19:39:47 +0000 (UTC)
[A complimentary Cc of this posting was NOT [per weedlist] sent to
Lars Erdmann
<lars.erdmann@xxxxxxxx>], who wrote in article <492d9ac7$0$31332$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
??? Why? I was talking about EMX. EMX works as expected; newer
gcc's fail to work as expected. Since there is more than one
difference, I proposed to eliminate differences one-by-one, to find
which one is relevant.
The simplest thing to eliminate is which under-the-cover-linker is used.
And I don't care about EMX,
Who cares what you care about? What I told you is a simple way to
start investigating the problem YOU have with static linking. (See
below...)
it's history (at least if you want to stick to newer versions of gcc).
??? Is not 4.3.2 new enough for you? I'm using EMX with 4.3.2 now
(my setup currently has only -Zmtd supported, though, so I can't check
static linking).
Setting these correspondingly, I have tried both, ilink.exe from VAC365
as well as link386.exe. ilink.exe leads to slightly smaller exe,
link386.exe to slightly larger exe. However, both of them are huge if
you link the C RTL statically.
So we established that it is the structure of the library which
matters; with large probability the linker's problems are not
relevant...
I wonder if the architecture of EMX's __syscall() matters here: in
EMX, unless one uses -Zsys, (almost) all calls to OS's "services" are
routed through a __syscall() interface, which decides which API to
call basing on "syscall number". If klibc has anything analoguous, it
may lead to "everything" being pulled in through the code of
__syscall()...
Yours,
Ilya
.
- References:
- Re: gcc - How to link the RTL statically ?
- From: Lars Erdmann
- Re: gcc - How to link the RTL statically ?
- From: Ilya Zakharevich
- Re: gcc - How to link the RTL statically ?
- From: Lars Erdmann
- Re: gcc - How to link the RTL statically ?
- Prev by Date: Re: gcc - How to link the RTL statically ?
- Next by Date: Re: gcc - How to link the RTL statically ?
- Previous by thread: Re: gcc - How to link the RTL statically ?
- Next by thread: Re: gcc - How to link the RTL statically ?
- Index(es):
Relevant Pages
|