Exception: MachO::HeaderPadError

Inherits:
MachOError
  • Object
show all
Defined in:
lib/macho/exceptions.rb

Overview

Raised when load commands are too large to fit in the current file.

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ HeaderPadError

Returns a new instance of HeaderPadError.

Parameters:

  • filename (String)

    the filename



63
64
65
66
67
# File 'lib/macho/exceptions.rb', line 63

def initialize(filename)
  super "Updated load commands do not fit in the header of " +
  "#{filename}. #{filename} needs to be relinked, possibly with " +
  "-headerpad or -headerpad_max_install_names"
end