summary refs log tree commit diff stats
path: root/gitlab/issues_text/target_i386/host_missing/accel_missing/1041
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
commit3e4c5a6261770bced301b5e74233e7866166ea5b (patch)
tree9379fddaba693ef8a045da06efee8529baa5f6f4 /gitlab/issues_text/target_i386/host_missing/accel_missing/1041
parente5634e2806195bee44407853c4bf8776f7abfa4f (diff)
downloadqemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.tar.gz
qemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.zip
clean up repository
Diffstat (limited to 'gitlab/issues_text/target_i386/host_missing/accel_missing/1041')
-rw-r--r--gitlab/issues_text/target_i386/host_missing/accel_missing/104131
1 files changed, 0 insertions, 31 deletions
diff --git a/gitlab/issues_text/target_i386/host_missing/accel_missing/1041 b/gitlab/issues_text/target_i386/host_missing/accel_missing/1041
deleted file mode 100644
index 5bfaba61b..000000000
--- a/gitlab/issues_text/target_i386/host_missing/accel_missing/1041
+++ /dev/null
@@ -1,31 +0,0 @@
-x86_64 Auxillary vector reports platform as i686 which doesn't match the linux kernel
-Description of problem:
-Based on the kernel source in the auxiliary vector AT_PLATFORM should be `x86_64` (confirmed by running outside qemu). However qemu sets it to `i686`.
-
-This was originally reported with docker-for-mac, but was reduced on `x86_64` which is why it is pointless
-Steps to reproduce:
-1. Compile the following for x86_64 (statically if you don't want have an x86_64 dynamic linker) (code originally from https://stackoverflow.com/questions/26520163/accessing-auxiliary-vectors-c)
-
-```
-#include <stdio.h>
-#include <elf.h>
-
-int main(int argc, char** argv, char* envp[]) {
-  Elf64_auxv_t *auxv;
-  while(*envp++ != NULL);
-
-  /*from stack diagram above: *envp = NULL marks end of envp*/
-  int i = 0 ;
-  for (auxv = (Elf64_auxv_t *)envp; auxv->a_type != AT_NULL; auxv++)
-    /* auxv->a_type = AT_NULL marks the end of auxv */
-  {
-    if( auxv->a_type == AT_PLATFORM)
-      printf("AT_PLATFORM is: %s\n", ((char*)auxv->a_un.a_val));
-  }
-}
-```
-2. Run with `qemu-x86_64-static`
-3. See `AT_PLATFORM is: i686`
-4. Compare to "real" x86_64 bit system which gives `AT_PLATFORM is: x86_64`
-Additional information:
-I think that adding `#define ELF_PLATFORM "x86_64"` [here](https://gitlab.com/qemu-project/qemu/-/blob/master/linux-user/elfload.c#L134) should work (but I don't fully understand the code). Otherwise we just end up getting the 32-bit case.