diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-25 02:14:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-25 02:14:56 +0100 |
commit | 1e4c01064351d2f8ce3d55a173c5022d2601ad40 (patch) | |
tree | 07397a8f13d69ea15a191a0a16e58cedd35d8a10 /Meta/Lagom/Fuzzers | |
parent | 7551a66f738ccd5f3f78e25493b46479ad50851d (diff) | |
download | serenity-1e4c01064351d2f8ce3d55a173c5022d2601ad40.zip |
LibELF: Remove ELF::Loader and move everyone to ELF::Image
This commit gets rid of ELF::Loader entirely since its very ambiguous
purpose was actually to load executables for the kernel, and that is
now handled by the kernel itself.
This patch includes some drive-by cleanup in LibDebug and CrashDaemon
enabled by the fact that we no longer need to keep the ref-counted
ELF::Loader around.
Diffstat (limited to 'Meta/Lagom/Fuzzers')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzELF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzELF.cpp b/Meta/Lagom/Fuzzers/FuzzELF.cpp index b87467dfb6..cda7018238 100644 --- a/Meta/Lagom/Fuzzers/FuzzELF.cpp +++ b/Meta/Lagom/Fuzzers/FuzzELF.cpp @@ -24,12 +24,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <LibELF/Loader.h> +#include <LibELF/Image.h> #include <stddef.h> #include <stdint.h> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - ELF::Loader::create(data, size, /*name=*/ {}, /*verbose_logging=*/false); + ELF::Image elf(data, size, /*verbose_logging=*/false); return 0; } |