Skip to content

Commit

Permalink
Fixed CORE-5955: Unable to init binreloc with ld >= 2.31
Browse files Browse the repository at this point in the history
  • Loading branch information
romansimakov committed Oct 30, 2018
1 parent 643c6d3 commit 4d22374
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/yvalve/config/os/posix/binreloc.c
Expand Up @@ -216,9 +216,10 @@ _br_find_exe_for_symbol (const void *symbol, BrInitError *error)
break;

/* Sanity check. */
if (strstr (line, " r-xp ") == NULL || strchr (line, '/') == NULL)
if ( !(strstr(line, " r-xp ") || strstr(line, " r--p "))
|| strchr (line, '/') == NULL)
continue;

/* Parse line. */
start_addr = line;
end_addr = strchr (line, '-');
Expand Down

0 comments on commit 4d22374

Please sign in to comment.