-
Start writing out some relocation sections (text). · ec270731Jan Voung authored
Pass the full assembler pointer to the elf writer, so that it has access to both the text buffer and the fixups. Remove some child classes of AssemblerFixups. They didn't really do much, and were pretty much identical to the original AssemblerFixup class. Dart had a virtual method for fixups to do necessary patching, but we currently don't do the patching and just emit the relocations. TODO see if patching is more efficient than writing out relocations and letting the linker do the work. This CL also makes AssemblerFixups POD. Change the fixup kind to be a plain unsigned int, which the target can fill w/ target/container-specific values. Move the fwd declaration of Assembler to IceDefs and remove the others. Do similar for fwd declaration refactoring for ELFWriter. Make the createAssembler method return a std::unique_ptr. BUG=none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/828873002
ec270731
×