Friday, April 10, 2026

Is there anyone with experience with GNU ld linker scripts and the C runtime startup/init/etc files?

Dear OpenBSD folks : This may be obscure in that I really do not know how many users there are of OpenBSD on the DEC Alpha architecture. For the past few months I have been working to build up a small tool chain what would allow me to bootstrap a more modern GCC compiler. The process has been going well up until I try to bootstrap[1] GCC 4.7.4 and the system linker ( /usr/bin/ld ) seems to need custom linker scripts. The actual problem can be seen on the GCC "help" maillist : https://gcc.gnu.org/pipermail/gcc-help/2026-April/144927.html Here the linker can not locate the C runtime object file crt1.o and merely for a test I can copy crt0.o to that filename and we move onwards to the next linker hurdle. The crti.o (C runtime initialization) object is also needed. I suspect all the asm files that I need are in the CVS sources somewhere. Specific to the DEC Alpha. However there may be a trivial way around this hurdle. I am open to suggestions. -- -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken [1] per instructions at : https://github.com/just-buildsystem/bootstrappable-toolchain/blob/master/doc/BOOTSTRAP.md

No comments:

Post a Comment