Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildAccelerator/Common/Private/UbaObjectFileElf.h
henrik karlsson 44ffdd5bb2 [UBA]
* 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]
2024-08-27 03:05:22 -04:00

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);
}