X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp/libreadline bug? (cannot use backspace) Date: Tue, 30 Mar 2010 12:58:05 -0700 (PDT) Organization: http://groups.google.com Lines: 20 Message-ID: <9e95b163-ba8a-467d-870e-4f3437dd9a96@y17g2000yqd.googlegroups.com> References: <013d25d6-f34d-4686-9c68-0de775d5bf59 AT t20g2000yqe DOT googlegroups DOT com> <7705c9031003082118y4a617ce4p8e70fcc4e6949c8b AT mail DOT gmail DOT com> <7705c9031003122205u29f3d86dkb94e472d76b6d553 AT mail DOT gmail DOT com> <9dd368da-7195-43ac-ac5b-6560a6a93bed AT k17g2000yqb DOT googlegroups DOT com> <7705c9031003141648k4de53b9cs1bfdc8e709f2f19 AT mail DOT gmail DOT com> <33944e03-8325-4651-9f73-202b4f1202e2 AT z11g2000yqz DOT googlegroups DOT com> <87zl1riozn DOT fsf AT turtle DOT gmx DOT de> <7705c9031003290422w7015bbd6y5e8647aec1ba3f36 AT mail DOT gmail DOT com> <109418c8-c160-4b9f-8e6c-a842da1b7a98 AT k13g2000yqe DOT googlegroups DOT com> <83oci71dhr DOT fsf AT gnu DOT org> <11fa369b-5fab-42ac-805f-1e7e74051411 AT l36g2000yqb DOT googlegroups DOT com> <83fx3j1874 DOT fsf AT gnu DOT org> <81255c92-b71b-4d8b-871c-fe057d72ddb7 AT u22g2000yqf DOT googlegroups DOT com> <834ojz111c DOT fsf AT gnu DOT org> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1269979085 17879 127.0.0.1 (30 Mar 2010 19:58:05 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 30 Mar 2010 19:58:05 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: y17g2000yqd.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.22 Version/10.51,gzip(gfe) Bytes: 2913 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Mar 29, 11:38=A0am, Eli Zaretskii wrote: > > The one from ncurses, I think. =A0GNU ld is a one-pass linker, so it > will not load the functions from libc until it sees some other > function that calls them. Are you sure? I thought I read somewhere that it's two-pass for COFF and three-pass for ELF. But I dunno, it's way beyond my understanding! :-/ I submit to your vast experience here. ;-) P.S. GNU ld still links all *.o into the .EXE even if not used. I find that annoying. I was wondering why removing a #define and recompiling didn't shave any output size until I proved that. I also know that libs are better at being selective, so I ended up doing "ar rvs libdoy.a *.o" and thus "-L. -ldoy" saved me a tiny bit (only 4k in this example, but still ... !). Is this an inherent C problem or just GNU ld? (Some Pascal compilers have "smartlinking", but perhaps it's more complicated than I know.)