local-no-execfn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
AT_EXECFN is Linux specific

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

elf/rtld.c

index c9490ff694009f851aa1511ac538cd2d649d36c5..8df9d538f6baf0a99bfcd62ccd07cc73eb95a963 100644 (file)
@@ -1313,9 +1313,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
     }