Parent

Voodoo::MIPSELFGenerator

Generator that produces ELF objects for mips and mipsel

Public Class Methods

new(params = {}) click to toggle source
# File voodoo/generators/mips_elf_generator.rb, line 9
def initialize params = {}
  @asmgenerator = MIPSGasGenerator.new params
  super(@asmgenerator)
  case params[:architecture]
  when :mips
    byte_order = ' -EB'
  when :mipsel
    byte_order = ' -EL'
  else
    byte_order = ''
  end
  opts = '-KPIC' + byte_order
  @elfgenerator = GasELFGenerator.new @asmgenerator, opts
end

Public Instance Methods

output_file_name(input_name) click to toggle source
# File voodoo/generators/mips_elf_generator.rb, line 24
def output_file_name input_name
  @elfgenerator.output_file_name input_name
end
output_file_suffix() click to toggle source
# File voodoo/generators/mips_elf_generator.rb, line 28
def output_file_suffix
  @elfgenerator.output_file_suffix
end
write(io) click to toggle source
# File voodoo/generators/mips_elf_generator.rb, line 32
def write io
  @elfgenerator.write io
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.