local-no-execfn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 29 Jun 2024 10:27:34 +0000 (13:27 +0300)
committerAdrian Bunk <bunk@debian.org>
Sat, 29 Jun 2024 10:27:34 +0000 (13:27 +0300)
AT_EXECFN is Linux specific

Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-no-execfn.diff

elf/rtld.c

index 1b0c74739f967093d26f5867b9b9d552d8b1ad00..dccb4ab2910cef680123663879518eb55861dbc8 100644 (file)
@@ -1094,9 +1094,11 @@ of this helper program; chances are you did not intend to run this program.\n\
          case AT_ENTRY:
            av->a_un.a_val = *user_entry;
            break;
+# ifdef AT_EXECFN          
          case AT_EXECFN:
            av->a_un.a_val = (uintptr_t) _dl_argv[0];
            break;
+# endif            
          }
 #endif
     }