Giter Site home page Giter Site logo

gabriel-rusu / e.l.f-executable-loader Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 5.0 392 KB

The E.L.F Executable Loader loads the executable file into memory page-by-page, using a request-paging mechanism - a page will only be loaded when it is needed. For simplicity, the loader runs only static executable files - which is not linked to shared / dynamic libraries.

License: MIT License

Makefile 5.72% C 74.25% Assembly 0.98% Shell 19.05%
excutables elf-parser elf-loader c

e.l.f-executable-loader's Introduction

Hi, I'm Gabi:

  • a Fullstack Software Engineer
  • an Open Source Enthusiast

I'm currently working on:

  • some cool web projects
  • building scalable systems

e.l.f-executable-loader's People

Contributors

gabriel-rusu avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

e.l.f-executable-loader's Issues

it didn't pass any test

I ran make run command at project root directory to do automatic tests, and all tests failed.

Here's the content of result.out:
make[1]: Entering directory '/home/windheart/projects/E.L.F-Executable-Loader/test'
gcc -m32 -Wall -fno-pic -o run_test.o -c run_test.c
gcc -m32 -no-pie -L.. -Wl,-Ttext-segment=0x20000000 -o run_test run_test.o -lso_loader
make -C inputs
gcc -m32 -o hello.o -c hello.S
gcc -m32 -static -no-pie -nostdlib -o hello hello.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o sum.o -c sum.c
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -O2 -o lib.o -c lib.c
gcc -m32 -static -no-pie -nostdlib -o sum sum.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o bss.o -c bss.c
gcc -m32 -static -no-pie -nostdlib -o bss bss.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o data_bss.o -c data_bss.c
gcc -m32 -static -no-pie -nostdlib -o data_bss data_bss.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o no_perm.o -c no_perm.c
gcc -m32 -static -no-pie -nostdlib -o no_perm no_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o inv_perm.o -c inv_perm.c
gcc -m32 -static -no-pie -nostdlib -o inv_perm inv_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o check_perm.o -c check_perm.c
gcc -m32 -static -no-pie -nostdlib -o check_perm check_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o check_exec.o -c check_exec.c
gcc -m32 -static -no-pie -nostdlib -o check_exec check_exec.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o qsort.o -c qsort.c
gcc -m32 -static -no-pie -o qsort qsort.o
'checkpatch.pl' tool not found on your system. Skipping source check...
Please download 'checkpatch.pl' from 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl' and install it in your $PATH.

  1. Sources check...........................................failed [ 0/95]
  2. Test simple execution...................................failed [ 0/95]
    Incorrect number of faults: got 2, expected 1
  3. Test hello..............................................failed [ 0/95]
    Incorrect number of faults: got 3, expected 2
  4. Test sum................................................failed [ 0/95]
    Incorrect number of faults: got 4, expected 3
  5. Test bss................................................failed [ 0/95]
    _test/outputs/test4.out vs _test/refs/test4.ref:
    --- _test/outputs/test4.out 2021-04-22 02:13:26.617432059 +0800
    +++ _test/refs/test4.ref 2021-04-18 16:05:59.833455109 +0800
    @@ -0,0 +1 @@
    +SUCCESS
    Incorrect number of faults: got 3, expected 2
  6. Test data and bss.......................................failed [ 0/95]
    _test/outputs/test5.out vs _test/refs/test5.ref:
    --- _test/outputs/test5.out 2021-04-22 02:13:26.637432605 +0800
    +++ _test/refs/test5.ref 2021-04-18 16:05:59.833455109 +0800
    @@ -0,0 +1 @@
    +SUCCESS
    Incorrect number of faults: got 4, expected 3
  7. Test no permissions.....................................failed [ 0/95]
    Incorrect number of faults: got 3, expected 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.