human
Solve the following python programming problem given the following code:
def _link_binary(self, target, binary_path, objects) : 
    cmd = [self.cpp_toolchain.compiler] 
    library_dirs = [] 
    libraries = [] 
    def add_library(target) : 
        product_map = self.context.products.get ('lib').get (target) 
        if product_map : 
            for (dir, libs) in product_map.items () : 
                library_dirs.append (dir) 
                libraries.extend ((self._libname (l) for l in libs)) 
target.walk (add_library) 
    if target.libraries : 
        libraries.extend (target.libraries) 
cmd.extend (objects) 
    cmd.extend (('-L{0}'.format (L) for L in library_dirs)) 
    cmd.extend (('-l{0}'.format (l) for l in libraries)) 
    cmd.extend ([('-o' + binary_path)]) 
    if (self.get_options ().ld_options != None) : 
        cmd.extend (('-Wl,{0}'.format (objects) for o in self.get_options ().ld_options.split (' '))) 
with self.context.new_workunit (name = 'cpp-link', labels = [WorkUnitLabel.COMPILER]) as workunit : 
        self.run_command (cmd, workunit) 

    
    

    Fix the buggy line: cmd.extend (('-Wl,{0}'.format (objects) for o in self.get_options ().ld_options.split (' ')))
assistant
#Here is Python program to fix the buggy line: cmd.

cmd.extend (('-Wl,{0}'.format (o) for o in self.get_options ().ld_options.split (' ')))