[Libre-soc-bugs] [Bug 1169] Add ELF and mmap support to ISACaller -- no dynamic linking

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Sep 20 08:38:50 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1169

--- Comment #7 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #3)

> > https://github.com/eliben/pyelftools
> 
> it seems to work well.

nce.

> Because just using -static doesn't remove all relocations,

goal is -fPIC -static.

>  I used this test
> program:
> #include <sys/syscall.h>
> 
> long syscall(long number, ...);
> 
> // too bad powerpc64le doesn't support __attribute__((naked))
> asm(
>     ".globl syscall\n"
>     ".p2align 4\n"
>     ".type syscall, at function\n"
>     "syscall:\n"
>     "mr 0,3\n"
>     "mr 3,4\n"
>     "mr 4,5\n"
>     "mr 5,6\n"
>     "mr 6,7\n"
>     "mr 7,8\n"
>     "mr 8,9\n"
>     "sc\n"
>     "blr"
> );

use this in intermediary step 2, "no libc6".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list