def handle_whole_archive(building_block, res, linker, flag)
      if is_whole_archive(building_block)
        res.push(flag) if flag and !flag.empty?
      end
    end
def handle_whole_archive(building_block, res, linker, flag)
      if is_whole_archive(building_block)
        res.push(flag) if flag and !flag.empty?
      end
    end
res the array with command line arguments that is used as result
 linker the linker hash
 sym the symbol that is used to fish out a value from the linker