#!/usr/bin/env ruby # This file is part of Metasm, the Ruby assembly manipulation suite # Copyright (C) 2006-2009 Yoann GUILLOT # # Licence is LGPL, see LICENCE in the top-level directory # # in this sample we compile 2 PE files, one executable and one dll # with the same base address, to check if the base relocation table # of the dll is correctly encoded # require 'metasm' cpu = Metasm::Ia32.new pe = Metasm::PE.assemble cpu, <