Home
last modified time | relevance | path

Searched refs:elf (Results 1 – 24 of 24) sorted by relevance

/build/soong/symbol_inject/
Delf_symboldata_test.go31 t: elf.ET_EXEC,
32 sections: []elf.SectionHeader{
33elf.SectionHeader{Name: "", Type: elf.SHT_NULL, Flags: 0x0, Addr: 0x0, Offset: 0x0, Size: 0x0, Lin…
34elf.SectionHeader{Name: ".interp", Type: elf.SHT_PROGBITS, Flags: elf.SHF_ALLOC, Addr: 0x400238, O…
35elf.SectionHeader{Name: ".note.ABI-tag", Type: elf.SHT_NOTE, Flags: elf.SHF_ALLOC, Addr: 0x400254,…
36elf.SectionHeader{Name: ".hash", Type: elf.SHT_HASH, Flags: elf.SHF_ALLOC, Addr: 0x400278, Offset:…
37elf.SectionHeader{Name: ".dynsym", Type: elf.SHT_DYNSYM, Flags: elf.SHF_ALLOC, Addr: 0x4002a0, Off…
38elf.SectionHeader{Name: ".dynstr", Type: elf.SHT_STRTAB, Flags: elf.SHF_ALLOC, Addr: 0x400300, Off…
39elf.SectionHeader{Name: ".gnu.version", Type: elf.SHT_GNU_VERSYM, Flags: elf.SHF_ALLOC, Addr: 0x40…
40elf.SectionHeader{Name: ".gnu.version_r", Type: elf.SHT_GNU_VERNEED, Flags: elf.SHF_ALLOC, Addr: 0…
[all …]
Delf.go24 Symbols() ([]elf.Symbol, error)
25 Sections() []elf.SectionHeader
26 Type() elf.Type
32 *elf.File
35 func (f elfFileWrapper) Sections() []elf.SectionHeader {
36 ret := make([]elf.SectionHeader, len(f.File.Sections))
44 func (f elfFileWrapper) Type() elf.Type {
49 symbols []elf.Symbol
50 sections []elf.SectionHeader
51 t elf.Type
[all …]
DAndroid.bp24 "elf.go",
/build/soong/cmd/host_bionic_verify/
Dhost_bionic_verify_test.go24 func prog(flags elf.ProgFlag, offset, addr, filesz, memsz uint64) *elf.Prog {
25 return &elf.Prog{
26 ProgHeader: elf.ProgHeader{
27 Type: elf.PT_LOAD,
40 func linkerGold() *elf.File {
41 return &elf.File{
42 Progs: []*elf.Prog{
43 prog(elf.PF_R|elf.PF_X, 0, 0, 0xd0fac, 0xd0fac),
44 prog(elf.PF_R|elf.PF_W, 0xd1050, 0xd2050, 0x6890, 0xd88c),
51 func fileGold() *elf.File {
[all …]
Dhost_bionic_verify.go45 linker, err := elf.Open(linkerFile)
59 func checkElf(r io.ReaderAt, linker *elf.File) error {
60 file, err := elf.NewFile(r)
71 if prog.Type == elf.PT_INTERP {
93 func findSymbol(symbols []elf.Symbol, name string) (elf.Symbol, error) {
99 return elf.Symbol{}, fmt.Errorf("Failed to find symbol %q", name)
103 func checkLinker(file, linker *elf.File, fileSyms []elf.Symbol) error {
110 if lprog.Type != elf.PT_LOAD {
118 if prog.Type != elf.PT_LOAD {
/build/soong/elf/
Delf_test.go15 package elf package
88 ident := [elf.EI_NIDENT]byte{}
89 identBuf := bytes.NewBuffer(ident[0:0:elf.EI_NIDENT])
91 binary.Write(identBuf, binary.LittleEndian, elf.ELFCLASS64)
92 binary.Write(identBuf, binary.LittleEndian, elf.ELFDATA2LSB)
93 binary.Write(identBuf, binary.LittleEndian, elf.EV_CURRENT)
94 binary.Write(identBuf, binary.LittleEndian, elf.ELFOSABI_LINUX)
97 header := elf.Header64{
99 Type: uint16(elf.ET_EXEC),
100 Machine: uint16(elf.EM_X86_64),
[all …]
DAndroid.bp20 name: "soong-elf",
21 pkgPath: "android/soong/elf",
23 "elf.go",
Delf.go15 package elf package
44 f, err := elf.NewFile(r)
50 if _, ok := err.(*elf.FormatError); ok {
/build/bazel/scripts/
Delf_input_files.sh33 declare -r elf="$1"; shift
40 zgrep -e "bin/clang\+\+.* -o [^ ]*$elf " $outdir/verbose.log.gz
52 [[ -s $cmdfile ]] || die "no ELF file ending with $elf was built in $outdir"
54 { printf >&2 "Multiple elf files ending with $elf were built in $outdir:\n";
/build/soong/cmd/extract_linker/
Dmain.go46 ef, err := elf.NewFile(f)
65 if prog.Type != elf.PT_LOAD {
74 if prog.Flags&elf.PF_W != 0 {
77 if prog.Flags&elf.PF_X != 0 {
152 func progNameFromFlags(flags elf.ProgFlag, progsWithFlagsCount map[string]int) string {
154 if flags&elf.PF_R != 0 {
157 if flags&elf.PF_W != 0 {
160 if flags&elf.PF_X != 0 {
/build/make/core/
Dcheck_elf_file.mk52 --skip-bad-elf-magic \
53 --skip-unknown-elf-machine \
68 check-elf-files: $(check_elf_files_stamp)
Ddynamic_binary.mk58 $(eval $(call copy-unstripped-elf-file-with-mapping,$(symbolic_input),$(symbolic_output)))
Dmain.mk717 define add-elf-file-check-shared-lib
722 define resolve-shared-libs-for-elf-file-check
741 $(eval $(call add-elf-file-check-shared-lib,$(stamp),$(deps))))\
745 $(call resolve-shared-libs-for-elf-file-check,TARGET_)
747 $(call resolve-shared-libs-for-elf-file-check,TARGET_,true)
1255 checkbuild: $(modules_to_check) droid_targets check-elf-files
1721 .PHONY: check-elf-files
1722 check-elf-files:
Dsoong_cc_rust_prebuilt.mk197 …$(eval $(call copy-unstripped-elf-file-with-mapping,$(LOCAL_SOONG_UNSTRIPPED_BINARY),$(symbolic_ou…
Ddefinitions.mk3180 define copy-non-elf-file-checked
3182 $(call intermediates-dir-for,FAKE,check-non-elf-file-timestamps)/$(2).timestamp)
3199 check-elf-prebuilt-product-copy-files: $(check_non_elf_file_timestamp)
3339 define copy-unstripped-elf-file-with-mapping
3341elf,$(patsubst $(TARGET_OUT_UNSTRIPPED)/%,$(call intermediates-dir-for,PACKAGING,elf_symbol_mappin…
DMakefile144 .PHONY: check-elf-prebuilt-product-copy-files
145 check-elf-prebuilt-product-copy-files:
176 …$(eval $(call copy-non-elf-file-checked,$(_src),$(_fulldest),$(check_elf_prebuilt_product_copy_fil…
/build/bazel/mkcompare/elfdiff/
Delfdiff.go19 *elf.File
21 sectionsByName map[string]*elf.Section
117 res.File, err = elf.NewFile(reader)
121 res.sectionsByName = make(map[string]*elf.Section)
127 if s.Flags&elf.SHF_ALLOC != 0 && s.Type != elf.SHT_NOBITS {
/build/soong/cmd/symbols_map/symbols_map_proto/
Dsymbols_map.proto22 // elf file it is the elf build ID, for an R8 dictionary it is the hash from the comments in the
32 // ELF denotes a mapping from an elf build ID to an unstripped elf file.
/build/soong/scripts/
Dtoc.sh76 elf) elf=1 ;;
/build/soong/cmd/symbols_map/
DAndroid.bp17 "soong-elf",
Dsymbols_map.go120 identifier, err = elf.Identifier(*elfFile, true)
/build/bazel/rules/cc/
Dgenerate_toc.bzl41 "--elf",
/build/bazel/rules/abi/
Dabi_dump.bzl270 args.add_all(["-allow-unreferenced-changes", "-allow-unreferenced-elf-symbol-changes"])
Dabi_dump_test.bzl530 _test_arg_exists(env, argv, "-allow-unreferenced-elf-symbol-changes")