From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marc-F. Lucca-Daniau" Subject: Re: On-line linking? Date: Tue, 11 Feb 2020 20:31:50 +0100 Message-ID: <2a3493d7-5626-bb69-0ba1-01b1f40e4f4e@gmail.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=rmGbbmjo2g2oHhL34h6oqnCs0Ow+ALzzAyN+Su1vRxc=; b=jb1tBCen1vHBc/O6rx4b6/Qza+GhptnfwVVjx02sUhR8URpi4S0LZhYOYN5wEkQCtE p5f1TOvSPZuzbdlpvIlSDE0aTGYv/x8/vRKjLx5h8i724cUVokHm7yOipsEoWELTkani F8MhNbjOvHgDmpyUga8QQ/dz5snBwGDW0S3DwPKCxTE/JkSYZHVc4kPhgtxL6FMJPxMy CR0I2Un9wnenKiCthtvp0dYcvU+2Ct0cPJ9rsxqsOiQgL7Rdr+YjaEBXIu4C8Uj2hkXV 53lLDTjGKREeAkFQl91zH+HmuqshFLNEyCUQBKmSpqtKZCQF2LoGd8/yeFqWFE5ePJyJ 3u1w== In-Reply-To: Content-Language: fr-FR Sender: linux-8086-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8"; format="flowed" To: Marcin Laszewski , ELKS Hello Marcin, It looks like you are hitting the 64K limit that Jody experienced in his previous attempt to make 'busyelks', so the splitting in 3 executables... ELKS does not support dynamic linking. Even with that linking, the IA16 architecture could not break the 64K limit without 'magic' tricks like 'far' pointers, segmentation in 286 protected mode, external MMU, etc, that are definitively not in today scope of ELKS. On-line linking could appear as a good idea on the paper or in modern 4 GHz emulators, but on real & antic HW with slow disk I/O, it merely does not work (or maybe with a very big coffee mug ?). I am not even talking of embedded systems... LD86 was part of the DEV86 set that we dropped some months ago, for some very very good reasons. Welcome to the "small is beautiful" world, where ELKS contributors have to write compact & efficient C code :-) ! Thanks, MFLD Le 11/02/2020 à 14:37, Marcin Laszewski a écrit : > Hello Marc, > > The current size of 'busyelks' is approaching to 64kB. > > As I know ELKS does not support 'dynamic libraries', but what about > on-line static linking? > We can keep 'main.o' file, link it on-line with the appropriate > 'plugins' (eg. dirname.o, basename.o, du.o, ...) statically and run. > Look at the attached piece of code - there is an exmple of this idea > for Debian/Linux. > > The only problem: there is no linker working in ELKS system. > ia16-elf-ld is too large. Can we adopt ld86? > > ml.