tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] __builtin_return_address(): any tips?


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] __builtin_return_address(): any tips?
Date: Wed, 4 Mar 2015 18:47:56 +0300

> For which architectures can tcc compile the kernel? How is assembler
> source handled?

ARCH=i386, A kernel is 2.4.26 with a patch from tccboot.iso
https://googledrive.com/host/0B35PjbLHNzyqbklHTUd6ampvd0E (this is
tcc-kernel-2.4.26.tar.bz2 in my GoogleDrive) contain all to build this
kernel. A minimal kernel config is used. But this kernel boots using a
ramdisk and there is a bash prompt. Mostly this is tccboot.iso which
use a kernel compiled by the current tcc.

PS: a "build" executable is for i386. A gcc-2.9.95 can compile this
kernel. A new gcc compilers can not compile this version of the
kernel. I planning to compile a 2.4.37 kernel by tcc (with the same
config).

> The patch below seems to do the job on arm64, but it assumes that the
> return address is just above the frame address on the stack, which
> might not be true on other architectures.

Excelent, thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]