[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:35:05 BST 2023


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

Luke Kenneth Casson Leighton <lkcl at lkcl.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lkcl at lkcl.net

--- Comment #5 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(int argc, char *argv[])
{
    write(1, "hello\n", 6);
}

  508  powerpc64le-linux-gnu-gcc-8 -static -fPIC test.c 
  510  powerpc64le-linux-gnu-strip -static -fPIC test.c 
  511  powerpc64le-linux-gnu-strip ./a.out 
  512  powerpc64le-linux-gnu-objdump -x ./a.out > /tmp/x

intermediary step 1, the non-relocatable version
intermediary step 2, the above but modified to call a syscall-variant of write
                     (no libc6)
final step 3,        libc6 support.

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


More information about the libre-soc-bugs mailing list