diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-27 14:56:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-27 14:56:52 +0200 |
commit | 9a71c7759a0684a52d2e5619a2312bc8da7b11da (patch) | |
tree | de166ed9d8c0230e640e62985f0dbb90fbb02447 /LibC/stdio.cpp | |
parent | 99ee6acd69205844daf82a3b7c35aa0f766f8bbc (diff) | |
download | serenity-9a71c7759a0684a52d2e5619a2312bc8da7b11da.zip |
Implement loading of linked ELF executables.
This took me a couple hours. :^)
The ELF loading code now allocates a single region for the entire
file and creates virtual memory mappings for the sections as needed.
Very nice!
Diffstat (limited to 'LibC/stdio.cpp')
-rw-r--r-- | LibC/stdio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/stdio.cpp b/LibC/stdio.cpp index 5ddb06b757..3448659fab 100644 --- a/LibC/stdio.cpp +++ b/LibC/stdio.cpp @@ -7,7 +7,7 @@ #define ALWAYS_INLINE __attribute__ ((always_inline)) -static const char h[] = { '0','1','2','3','4','5','6','7', '8','9','a','b','c','d','e','f' }; +static constexpr const char* h = "0123456789abcdef"; template<typename PutChFunc> ALWAYS_INLINE int printHex(PutChFunc putch, char*& bufptr, dword number, byte fields) |