diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index f2fb52cb..aeac365b 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -150,11 +150,6 @@ PackLinuxElf::~PackLinuxElf() delete[] file_image; } -Linker *PackLinuxElf::newLinker() const -{ - return new ElfLinker; -} - void PackLinuxElf::pack3(OutputFile *fo, Filter &ft) { unsigned disp; diff --git a/src/p_lx_elf.h b/src/p_lx_elf.h index d1550071..7a9fbd23 100644 --- a/src/p_lx_elf.h +++ b/src/p_lx_elf.h @@ -54,7 +54,6 @@ protected: virtual void pack3(OutputFile *, Filter &) = 0; // append loader //virtual void pack4(OutputFile *, Filter &) = 0; // append pack header - virtual Linker* newLinker() const; virtual void generateElfHdr( OutputFile *, void const *proto, diff --git a/src/p_mach.cpp b/src/p_mach.cpp index bdeac679..75ce8613 100644 --- a/src/p_mach.cpp +++ b/src/p_mach.cpp @@ -66,7 +66,7 @@ const int *PackMachPPC32::getFilters() const Linker *PackMachPPC32::newLinker() const { - return new ElfLinker; + return new ElfLinkerPpc32; } int