Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
exports.h
Go to the documentation of this file.
1#ifndef SYMBIAN_E32_EXPORTS_H_
2#define SYMBIAN_E32_EXPORTS_H_
3
4#include <cstddef>
5#include <cstdint>
6#include <set>
7#include <string>
8#include <string_view>
9#include <vector>
10
11#include <absl/base/nullability.h>
12#include <absl/status/statusor.h>
13
14#include "symbian/e32/e32.h"
15#include "symbian/e32/imports.h"
16
17namespace symbian::e32::internal {
18
19absl::StatusOr<std::vector<ExportSlot>> ResolveExports(
20 std::string_view elf, const std::vector<Section>& sections,
21 const Segment& code, uint32_t entry, std::string_view definition);
22
23// Returns a full absence bitmap, retaining one bits beyond the last ordinal.
24std::string ExportBitmap(const std::vector<ExportSlot>& exports);
25
26absl::StatusOr<std::string> EncodeCodeRelocations(
27 const std::vector<uint32_t>& offsets,
28 const std::set<uint32_t>& data_targets = {});
29absl::StatusOr<std::vector<uint32_t>> DecodeCodeRelocations(
30 std::string_view bytes, uint32_t code_size,
31 std::set<uint32_t>* absl_nullable data_targets = nullptr);
32
33} // namespace symbian::e32::internal
34
35#endif // SYMBIAN_E32_EXPORTS_H_
std::vector< uint32_t > code
Definition e32.cc:74
Definition exports.cc:16
std::string ExportBitmap(const std::vector< ExportSlot > &exports)
Definition exports.cc:100
absl::StatusOr< std::string > EncodeCodeRelocations(const std::vector< uint32_t > &offsets, const std::set< uint32_t > &data_targets)
Definition exports.cc:111
absl::StatusOr< std::vector< uint32_t > > DecodeCodeRelocations(std::string_view bytes, uint32_t code_size, std::set< uint32_t > *absl_nullable data_targets)
Definition exports.cc:155
absl::StatusOr< std::vector< ExportSlot > > ResolveExports(std::string_view elf, const std::vector< Section > &sections, const Segment &code, uint32_t entry, std::string_view definition)
Definition exports.cc:25
std::string_view bytes
Definition exports.cc:76