--- ./libbacktrace/fileline.c_orig	2025-12-01 08:02:34.697927363 -0600
+++ ./libbacktrace/fileline.c	2025-12-01 08:03:56.028578307 -0600
@@ -294,15 +294,15 @@
 	  filename = windows_executable_filename ();
 	  break;
 	case 3:
-	  filename = "/proc/self/exe";
+      snprintf (buf, sizeof (buf), "/proc/%ld/object/a.out",
+                 (long) getpid ());
+      filename = buf;
 	  break;
 	case 4:
 	  filename = "/proc/curproc/file";
 	  break;
 	case 5:
-	  snprintf (buf, sizeof (buf), "/proc/%ld/object/a.out",
-		    (long) getpid ());
-	  filename = buf;
+      filename = "/proc/self/exe";
 	  break;
 	case 6:
 	  filename = sysctl_exec_name1 (state, error_callback, data);
