You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Fixed crash in elf object file parser when there are symbols that has section index 65535 * Fixed so platforms using .elf files but don't have a .linker_cmd section use visibility as a way to control exports This is very much VIP right now [CL 35819865 by henrik karlsson in ue5-main branch]
27 lines
785 B
C++
27 lines
785 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "UbaObjectFile.h"
|
|
|
|
namespace uba
|
|
{
|
|
class ObjectFileElf : public ObjectFile
|
|
{
|
|
public:
|
|
ObjectFileElf();
|
|
virtual bool Parse(Logger& logger, const tchar* hint) override;
|
|
|
|
static bool CreateExtraFile(Logger& logger, const StringView& platform, MemoryBlock& memoryBlock, const UnorderedSymbols& allExternalImports, const UnorderedSymbols& allInternalImports, const UnorderedExports& allExports, bool includeExportsInFile);
|
|
|
|
private:
|
|
virtual bool StripExports(Logger& logger, u8* newData, const UnorderedSymbols& allExternalImports) override;
|
|
|
|
u64 m_symTableNamesOffset = 0;
|
|
u64 m_dynTableNamesOffset = 0;
|
|
bool m_useVisibilityForExports = true;
|
|
};
|
|
|
|
bool IsElfFile(const u8* data, u64 dataSize);
|
|
}
|