Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Maratyszcza/PeachPy into pre-gene…
Browse files Browse the repository at this point in the history
…rated
  • Loading branch information
Marat Dukhan committed Feb 19, 2018
2 parents b060f3e + 3bf40a5 commit 07d8fde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion peachpy/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ class ELFWriter(ImageWriter):
def __init__(self, output_path, abi, input_path=None):
super(ELFWriter, self).__init__(output_path)
from peachpy.formats.elf.image import Image
from peachpy.formats.elf.section import TextSection
from peachpy.formats.elf.section import TextSection, ProgramBitsSection

self.abi = abi
self.image = Image(abi, input_path)
self.text_section = TextSection()
self.image.add_section(self.text_section)
self.gnu_stack_section = ProgramBitsSection(".note.GNU-stack", allocate=False)
self.image.add_section(self.gnu_stack_section)
self.text_rela_section = None
self.rodata_section = None

Expand Down

0 comments on commit 07d8fde

Please sign in to comment.