Hi Abou, I'm sorry for having dropped the ball on this and missed replying.
On Sun, Feb 21, 2021 at 02:52:08PM +0100, Abou Al Montacir wrote: > Hi Helmut, > On Fri, 2021-01-22 at 10:06 +0100, Helmut Grohne wrote: > > > We already patch the compiler to call ld.bfd instead of ld, so we can > > > change > > > thename as you wish. > > > > Can you implement just this part and poke me once that has hit unstable?I > > can > > send a patch for the next step then. > I did not really patch this, but while looking for such a way to patch, I > discovered a nice command line option -XP. > This ca be used as follows: > fpc -XPx86_64-linux-gnu- myprogramfpc -Pi386 -XPi386-linux-gnu- myprogram > It should be possible to hack the default value of this CLO so that we can > make > it point to the right triplet. > Does this fit your need? Yes, this sounds right. Note that your value of -XP should always be non-empty on Debian - even when building natively. Doing so allows using e.g. binutils-i686-linux-gnu:amd64 and thus linking objects that would exceed the address space of 32bit. My offer to continue working on this and sending patches is still active despite the delay. Helmut