source: trunk/toolchain/binutils/patches/2.20/300-012_check_ldrunpath_length.patch @ 18263

Last change on this file since 18263 was 18263, checked in by nbd, 7 years ago

add binutils 2.20

File size: 720 bytes
  • ld/emultempl/elf32.em

    a b fragment <<EOF 
    12331233              && command_line.rpath == NULL) 
    12341234            { 
    12351235              lib_path = (const char *) getenv ("LD_RUN_PATH"); 
     1236              if ((lib_path) && (strlen (lib_path) == 0)) 
     1237                  lib_path = NULL; 
    12361238              if (gld${EMULATION_NAME}_search_needed (lib_path, &n, 
    12371239                                                      force)) 
    12381240                break; 
    gld${EMULATION_NAME}_before_allocation ( 
    14181420  rpath = command_line.rpath; 
    14191421  if (rpath == NULL) 
    14201422    rpath = (const char *) getenv ("LD_RUN_PATH"); 
     1423  if ((rpath) && (strlen (rpath) == 0)) 
     1424      rpath = NULL; 
    14211425  if (! (bfd_elf_size_dynamic_sections 
    14221426         (link_info.output_bfd, command_line.soname, rpath, 
    14231427          command_line.filter_shlib, 
Note: See TracBrowser for help on using the repository browser.