Namespaces | Functions
elf.cc File Reference
#include <algorithm>
#include <string>
#include <iostream>
#include "absl/numeric/int128.h"
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "absl/strings/substitute.h"
#include "third_party/freebsd_elf/elf.h"
#include "bloaty.h"
#include "util.h"
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
Include dependency graph for elf.cc:

Go to the source code of this file.

Namespaces

 bloaty
 

Functions

std::unique_ptr< ObjectFile > bloaty::TryOpenELFFile (std::unique_ptr< InputFile > &file)
 

Variable Documentation

◆ contents

string_view contents

Definition at line 597 of file elf.cc.

◆ contents_

const string_view contents_
private

Definition at line 93 of file elf.cc.

◆ data_

string_view data_
private

Definition at line 202 of file elf.cc.

◆ descriptor_

string_view descriptor_

Definition at line 154 of file elf.cc.

◆ done_

bool done_ = false

Definition at line 157 of file elf.cc.

◆ elf_

const ElfFile& elf_
private

Definition at line 131 of file elf.cc.

◆ file_type

enum { ... } file_type

◆ filename

Definition at line 594 of file elf.cc.

◆ header

string_view header

Definition at line 596 of file elf.cc.

◆ header_

Elf64_Ehdr header_
private

Definition at line 92 of file elf.cc.

◆ header_region_

string_view header_region_
private

Definition at line 225 of file elf.cc.

◆ is_64bit_

bool is_64bit_
private

Definition at line 219 of file elf.cc.

◆ is_native_endian_

bool is_native_endian_
private

Definition at line 220 of file elf.cc.

◆ kMagic

constexpr const char* kMagic = "!<arch>\n"
staticconstexprprivate

Definition at line 625 of file elf.cc.

◆ kMagicSize

constexpr int kMagicSize = 8
staticconstexprprivate

Definition at line 626 of file elf.cc.

◆ long_filenames_

string_view long_filenames_
private

Definition at line 617 of file elf.cc.

◆ magic_

const string_view magic_
private

Definition at line 622 of file elf.cc.

◆ name_

string_view name_

Definition at line 153 of file elf.cc.

◆ ok_

bool ok_
private

Definition at line 218 of file elf.cc.

◆ range_

string_view range_
private

Definition at line 94 of file elf.cc.

◆ remaining_

string_view remaining_

Definition at line 155 of file elf.cc.

◆ section_count_

Elf64_Xword section_count_
private

Definition at line 223 of file elf.cc.

◆ section_headers_

string_view section_headers_
private

Definition at line 226 of file elf.cc.

◆ section_name_table_

Section section_name_table_
private

Definition at line 228 of file elf.cc.

◆ section_string_index_

Elf64_Xword section_string_index_
private

Definition at line 224 of file elf.cc.

◆ segment_headers_

string_view segment_headers_
private

Definition at line 227 of file elf.cc.

◆ size

size_t size

Definition at line 595 of file elf.cc.

◆ type_

uint32_t type_

Definition at line 156 of file elf.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:11