]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Handle 64-bit Solaris/x86 ld.so.1
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 19 Sep 2018 09:29:19 +0000 (11:29 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 19 Sep 2018 09:29:19 +0000 (11:29 +0200)
The next patch from the solaris-userland github repo

https://github.com/oracle/solaris-userland/tree/master/components/gdb/patches

(007-solib-svr4.patch) is equally trivial, creating partity between
Solaris/SPARC and x86.

Tested on amd64-pc-solaris2.11.

2018-09-19  George Vasick <george.vasick@oracle.com>

* solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.

gdb/ChangeLog
gdb/solib-svr4.c

index 0fe15efe69bc8b3ffe4e852a3faa0db9cb6469ab..0c75340fe4ba9df542fa302e04618211e2371584 100644 (file)
@@ -1,3 +1,7 @@
+2018-09-19  George Vasick <george.vasick@oracle.com>
+
+       * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
+
 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
            April Chin <april.chin@oracle.com>
            Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
index bfef217f3fc35e00007408c80fe6aed36f3df34d..29df63f5665f69d466bcbe56f5d10bea690501a7 100644 (file)
@@ -153,8 +153,12 @@ svr4_same_1 (const char *gdb_so_name, const char *inferior_so_name)
       && strcmp (inferior_so_name, "/lib/ld.so.1") == 0)
     return 1;
 
-  /* Similarly, we observed the same issue with sparc64, but with
+  /* Similarly, we observed the same issue with amd64 and sparcv9, but with
      different locations.  */
+  if (strcmp (gdb_so_name, "/usr/lib/amd64/ld.so.1") == 0
+      && strcmp (inferior_so_name, "/lib/amd64/ld.so.1") == 0)
+    return 1;
+
   if (strcmp (gdb_so_name, "/usr/lib/sparcv9/ld.so.1") == 0
       && strcmp (inferior_so_name, "/lib/sparcv9/ld.so.1") == 0)
     return 1;