Skip to content

Generate a .note.gnu.build-id section in the ELF file and DWARF file #42020

@chingjun

Description

@chingjun

(From the discussion in https://docs.google.com/document/d/1HjFIJJSo1pRKo6FH84yafKbeEoSjPOXtFwwZfIeQNM0/edit?disco=AAAAJXYigj8)

Existing tools use debug identifier in .note.gnu.build-id section to search for build symbols that corresponds to an existing binary. Dart gen_snapshot should generate this section as well.

The default behavior in breakpad, if this section is not found, is to "locate the .text section of an ELF binary and generate a simple hash by XORing the first page worth of bytes", but in the ELF file that Dart generates, "the first RX page might be often the same because it contains "vm-isolate" stub code which doesn't change very often."

Thanks.

cc @sstrickl @mkustermann

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions