2019-09-23 16:46:57 +03:00
|
|
|
//#
|
|
|
|
//# Copyright (C) 2018-2019 QuasarApp.
|
|
|
|
//# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
//# of this license document, but changing it is not allowed.
|
|
|
|
//#
|
|
|
|
|
2019-03-23 23:13:52 +03:00
|
|
|
#ifndef ELF_H
|
|
|
|
#define ELF_H
|
2019-03-25 21:40:52 +03:00
|
|
|
#include "../qtTools/src/shared/winutils/elfreader.h"
|
2019-03-23 23:13:52 +03:00
|
|
|
|
|
|
|
#include "igetlibinfo.h"
|
|
|
|
|
|
|
|
class ELF : public IGetLibInfo
|
|
|
|
{
|
|
|
|
|
2019-09-22 16:46:07 +03:00
|
|
|
private:
|
|
|
|
QByteArrayList getDynamicString(ElfReader &reader) const;
|
|
|
|
|
|
|
|
int getVersionOfTag(const QByteArray &tag, QByteArray &source) const;
|
|
|
|
|
2019-03-23 23:13:52 +03:00
|
|
|
public:
|
|
|
|
ELF();
|
|
|
|
|
2019-08-31 22:22:26 +03:00
|
|
|
bool getLibInfo(const QString &lib, LibInfo &info) const override;
|
2019-03-23 23:13:52 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ELF_H
|