Index: gdb/solib-svr4.c |
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c |
index 93201197d232ce601843809c4bc46cc4d2db79b5..efb95cdec4da58f6e3c2bccd140f7ace3e2cf408 100644 |
--- a/gdb/solib-svr4.c |
+++ b/gdb/solib-svr4.c |
@@ -1294,7 +1294,7 @@ svr4_current_sos (void) |
/* Assume that everything is a library if the dynamic loader was loaded |
late by a static executable. */ |
- if (exec_bfd && bfd_get_section_by_name (exec_bfd, ".dynamic") == NULL) |
+ if (exec_bfd && find_program_interpreter() == NULL) |
ignore_first = 0; |
else |
ignore_first = 1; |