def sections_by_type(type, &block)
      type = Util.to_constant(Constants::SHT, type)
      Util.select_by_type(each_sections, type, &block)
    end
def sections_by_type(type, &block)
      type = Util.to_constant(Constants::SHT, type)
      Util.select_by_type(each_sections, type, &block)
    end
Fetch all sections with specific type.

 The available types are listed in {ELFTools::Constants::PT}.
 This method accept giving block.
 @param [Integer, Symbol, String] type
   The type needed, similar format as {#segment_by_type}.
 @yieldparam [ELFTools::Sections::Section] section A section in specific type.
 @yieldreturn [void]
 @return [Array<ELFTools::Sections::section>] The target sections.
 @example
   elf = ELFTools::ELFFile.new(File.open('spec/files/amd64.elf'))
   elf.sections_by_type(:rela)
   #=> [#<ELFTools::Sections::RelocationSection:0x00563cd3219970>,
   #    #<ELFTools::Sections::RelocationSection:0x00563cd3b89d70>]