create_elf_tables() doesn't set AT_PLATFORM for 32bit ARM platforms

Bug #1813034 reported by ShiftPlusOne on 2019-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Undecided
Richard Henderson

Bug Description

The dynamic linker uses AT_PLATFORM from getauxval to substitute $PLATFORM in certain places (man ld.so). It would be nice if it was set to 'v6l', 'v7l' and whatever other platforms there are according to the chosen CPU or via an environment variable. AT_PLATFORM is not guaranteed to be set, so this isn't a major bug, but this is one case where it makes things difficult.

Richard Henderson (rth) wrote :
Changed in qemu:
assignee: nobody → Richard Henderson (rth)
ShiftPlusOne (schneiderit) wrote :

I've tried the patch and it solves the problem for my use case.

Tested with this build:
https://launchpad.net/~schneiderit/+archive/ubuntu/rpi/+build/16488702

Richard Henderson (rth) wrote :

Merged for 4.0 in c4e0780ed1.

Changed in qemu:
status: New → Fix Committed
Thomas Huth (th-huth) on 2019-04-24
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers