Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add static PIE ELF LibUV, JSON-C hello world build #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metamacro
Copy link

@metamacro metamacro commented Oct 23, 2022

  • Add LibUV, JSON-C static pie hello world build (binary included) via autogen.sh
  • Script checked with shellcheck - no issues detected
  • Fails if ran with the kernel from Munchen 2022 - bincompat with the following output:
SeaBIOS (version Arch Linux 1.16.0-3-3)
Booting from ROM..Powered by
o.   .o       _ _               __ _
Oo   Oo  ___ (_) | __ __  __ _ ' _) :_
oO   oO ' _ `| | |/ /  _)' _` | |_|  _)
oOo oOO| | | | |   (| | | (_) |  _) :_
 OoOoO ._, ._:_:_,\_._,  .__,_:_, \___)
            Mimas 0.7.0~1e17a9c8-custom
[    0.108647] CRIT: [appelfloader] <brk.c @   27> Cannot handle multiple user space heaps: Not implemented!
[    0.111111] CRIT: [appelfloader] <brk.c @   44> Failed to increase heap: Not implemented!
json_type_string val: Hello World
[    0.114025] CRIT: [libkvmplat] <traps.c @  121> Page fault at linear address 228, rip 3fc17b8c, regs 0x1fff50, sp 3ffaf9e0, our_sp 0x1fff28, code 0
[    0.117424] CRIT: [libkvmplat] <trace.c @   41> RIP: 000000003fc17b8c CS: 0008
[    0.119298] CRIT: [libkvmplat] <trace.c @   42> RSP: 000000003ffaf9e0 SS: 0010 EFLAGS: 00010202
[    0.121603] CRIT: [libkvmplat] <trace.c @   44> RAX: 0000000000000000 RBX: 000000003ffafe58 RCX: 000000003ffafa90
[    0.124325] CRIT: [libkvmplat] <trace.c @   46> RDX: 000000003ffafa90 RSI: 000000003ffafa90 RDI: 0000000000000000
[    0.127062] CRIT: [libkvmplat] <trace.c @   48> RBP: 000000003ffafa00 R08: 000000003fa01050 R09: 0000000000000000
[    0.129796] CRIT: [libkvmplat] <trace.c @   50> R10: 000000003fd43cf8 R11: 0000000000000202 R12: 0000000000000001
[    0.132542] CRIT: [libkvmplat] <trace.c @   52> R13: 000000003ffafe48 R14: 0000000000000001 R15: 0000000000000001
[    0.135295] CRIT: [libkvmplat] <trace.c @   86> base is 0x3ffafa00 caller is 0x3fc17d5b
[    0.137436] CRIT: [libkvmplat] <trace.c @   86> base is 0x3ffafa30 caller is 0x3fc0ab35
[    0.139577] CRIT: [libkvmplat] <trace.c @   86> base is 0x3ffafa60 caller is 0x3fc0abb1
[    0.141734] CRIT: [libkvmplat] <trace.c @   86> base is 0x3ffafc70 caller is 0x3fc3b85a
[    0.143904] CRIT: [libkvmplat] <trace.c @   86> base is 0x3fd3f568 caller is 0x3fc0a970
[    0.146071] CRIT: [libkvmplat] <trace.c @   86> base is 0x3fc0a9c0 caller is 0xec8348e5894855ff
[    0.148417] CRIT: [libkvmplat] <trace.c @   86> base is 0xffff67e9fa1e0ff3 Page fault in pagetable walk (access to invalid memory?).

@metamacro metamacro changed the title Add static pie LibUV, JSON-C hello world app Add static PIE ELF LibUV, JSON-C hello world build Oct 23, 2022
Copy link
Collaborator

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreiosg , please squash all commits.

Please provide a README file, similar to the one from nginx.

@metamacro
Copy link
Author

@andreiosg , please squash all commits.

Please provide a README file, similar to the one from nginx.

Squashed all the commits and added a dependency section to the README

@razvand
Copy link
Collaborator

razvand commented Oct 23, 2022

@andreiosg , 30 hackathon points added.

@razvand razvand added enhancement New feature or request kind/hackathon Hackathon challenge labels Oct 23, 2022
@razvand razvand self-assigned this Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/hackathon Hackathon challenge
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

2 participants