[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2020-02-11 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2020-02-11 Thread Thomas Huth
** Bug watch removed: github.com/DynamoRIO/dynamorio/issues #3385 https://github.com/DynamoRIO/dynamorio/issues/3385 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader fails

Re: [Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-12-02 Thread Richard Henderson
On 11/28/19 5:47 PM, Alex Bennée wrote: > Do binaries have to be page size aware? I thought it was a runtime thing. > However if the aarch64-linux-user is hardwired to 4k it might explain it's > confusion on a 64k machine. Binaries do have to be built for a minimum page size. Most aarch64 binarie

Re: [Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Alex Bennée
Do binaries have to be page size aware? I thought it was a runtime thing. However if the aarch64-linux-user is hardwired to 4k it might explain it's confusion on a 64k machine. On Thu, 28 Nov 2019, 16:33 Peter Maydell, wrote: > If you objdump the binary and the offending library what do they see

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Peter Maydell
If you objdump the binary and the offending library what do they seem to have been built for ? Certainly this: 0040-00401000 1000 --- looks like a 4K page when we're trying to load things, so either we got the loading wrong or the binary is 4K. -- You received t

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Alex Bennée
FWIW -p 65536 doesn't trigger anything although I wouldn't trust -p too much: env LD_LIBRARY_PATH=/opt/arm/armpl-19.3.0_ThunderX2CN99_Ubuntu-16.04_arm-hpc-compiler_19.3_aarch64-linux/lib/:/opt/arm/arm-hpc-compiler-19.3_Generic-AArch64_Ubuntu-16.04_aarch64-linux/lib/ ~/lsrc/qemu.git/aarch64-linux

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Alex Bennée
I do have a ARM HPC compiler license which I assume includes the armpl blobs that came with it. You can email me directly at my Linaro email (alex.ben...@linaro.org) if you don't want to upload the test case here. -- You received this bug notification because you are a member of qemu- devel-ml, w

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Caroline Concatto
Alex, Do you have the licence to run the compiler library? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader fails to load shared object on ThunderX2 running RHEL7 Status in

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Peter Maydell
IIRC RHEL uses 64k pages but Ubuntu does not -- maybe that is relevant ? Is the guest binary built for 4K or 64K pages? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader fails

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-28 Thread Alex Bennée
This was on Aarch64 Ubuntu 18.04 - I don't have any RHEL machines around but if you send the ld.so along with the other libraries that won't matter in replicating the fault on my x86 host. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEM

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-27 Thread Caroline Concatto
Hi Alex, So, it works in some machines and others not. Mainly in machines with RHEL OS that we found the problem. What is the OS you are using? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-27 Thread Alex Bennée
** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader fails to load shared object on ThunderX2 running RHEL7 Status in QEMU:

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-27 Thread Alex Bennée
I've attempted to replicate but it works for me: 16:55:37 [alex@idun:~/l/t/hello-armpl] $ ~/lsrc/qemu.git/builds/all/aarch64-linux-user/qemu-aarch64 ./hello-armpl Hello World... 16:55:52 [alex@idun:~/l/t/hello-armpl] $ ldd ./hello-armpl linux-vdso.so.1 (0xb9e78000) libamat

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-26 Thread Assad Hashmi
For info, a similar type of failure has been seen when loading libarmflang.so on DynamoRIO: https://github.com/DynamoRIO/dynamorio/issues/3385 It's to do with the .dynstr section being mapped incorrectly causing a SIGBUS. ** Bug watch added: github.com/DynamoRIO/dynamorio/issues #3385 https://

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Alex Bennée
As it's taking longer to get the compiler up and running on my system could you attach the failing binary along with the extra .so libs from /scratch/arm-linux-compiler/* -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.la

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Caroline Concatto
Taishan 2280 Cortex-A72 Running 1)with -armpl flag with and without the docker armclang -armpl hello.c ./qemu/build/aarch64-linux-user/qemu-aarch64 -d page a.out host mmap_min_addr=0x8000 Reserved 0x21000 bytes of guest address space Relocating guest address space from 0x00400

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Alex Bennée
Could you invoke one of the failing and passing cases with -d page and post the results please. ** Tags added: arm linux-user -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF load