local-no-execfn
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 2 Oct 2022 17:46:25 +0000 (18:46 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 2 Oct 2022 17:46:25 +0000 (18:46 +0100)
AT_EXECFN is Linux specific

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

elf/rtld.c

index 86354fb0c27c11925ab5fa90c09ed6abf4062277..1b9789d4ad2383348c49bed1a611c201bed26827 100644 (file)
@@ -1652,9 +1652,11 @@ dl_main (const ElfW(Phdr) *phdr,
          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