1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:18:12 +00:00

LibELF+readelf: Remove duplicated dtag->string map

A copy of the same mapping was found both in LibELF and in the readelf
utility, which uses LibELF; keeping them both is redundant and removing
the duplicate saves (a bit of) space.
This commit is contained in:
Rodrigo Tobar 2021-09-25 22:40:51 +08:00 committed by Andreas Kling
parent 93f62384f5
commit 3efd7b458a
3 changed files with 3 additions and 96 deletions

View file

@ -16,8 +16,6 @@
namespace ELF {
static const char* name_for_dtag(ElfW(Sword) d_tag);
DynamicObject::DynamicObject(const String& filename, VirtualAddress base_address, VirtualAddress dynamic_section_address)
: m_filename(filename)
, m_base_address(base_address)
@ -337,7 +335,7 @@ DynamicObject::InitializationFunction DynamicObject::init_section_function() con
return (InitializationFunction)init_section().address().as_ptr();
}
static const char* name_for_dtag(ElfW(Sword) d_tag)
const char* DynamicObject::name_for_dtag(ElfW(Sword) d_tag)
{
switch (d_tag) {
case DT_NULL: