Andrew Kaster
c87557e9c1
Kernel+Libraries: Don't include limits.h from LibELF/Validation.h
...
The fallout of this is that Kernel/Syscalls/execve.cpp doesn't have
access to ARG_MAX anymore, so move that definition to Kernel/API as well
2023-01-21 10:43:59 -07:00
Brian Gianforcaro
7d667b9f69
LibELF: Remove unused m_program_interpreter member from DynamicLoader
...
While profiling I realized that this member is unused, so the
StringBuilder and String allocation are completely un-necessary.
2022-03-31 10:18:07 +02:00
Idan Horowitz
c73ef87fc7
Kernel+LibELF+LibVT: Remove unused AK::String header includes
2022-02-16 22:21:37 +01:00
Idan Horowitz
cfb9f889ac
LibELF: Accept Span instead of Pointer+Size in validate_program_headers
2022-01-13 22:40:25 +01:00
Idan Horowitz
3e959618c3
LibELF: Use StringBuilders instead of Strings for the interpreter path
...
This is required for the Kernel's usage of LibELF, since Strings do not
expose allocation failure.
2022-01-13 22:40:25 +01:00
Gunnar Beutner
158355e0d7
Kernel+LibELF: Add support for validating and loading ELF64 executables
2021-06-28 22:29:28 +02:00
Andrew Kaster
7b4dc590e7
AK+Userland: Use akaster@serenityos.org for my copyright headers
2021-05-30 14:35:34 +01:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Gunnar Beutner
6cb28ecee8
LibC+LibELF: Implement support for the dl_iterate_phdr helper
...
This helper is used by libgcc_s to figure out where the .eh_frame sections
are located for all loaded shared objects.
2021-04-18 10:55:25 +02:00
Ben Wiederhake
67cda61b7f
Libraries: Add missing headers
...
A C++ source file containing just
#include <LibFoo/Bar.h>
should always compile cleanly.
This patch adds missing header inclusions that could have caused weird error
messages if they were used in a different context. Also, this confused QtCreator.
2021-01-22 21:49:54 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00