[Pdbg] [PATCH] build: add hint for interpreter location fix
Nicholas Piggin
npiggin at gmail.com
Wed Jan 13 16:06:23 AEDT 2021
Excerpts from Joel Stanley's message of January 11, 2021 2:58 pm:
> On Mon, 21 Dec 2020 at 10:18, Nicholas Piggin <npiggin at gmail.com> wrote:
>>
>> For some reason my environment requires this.
>>
>> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
>
>
>
>> ---
>> README.md | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/README.md b/README.md
>> index abc2088..7892a8d 100644
>> --- a/README.md
>> +++ b/README.md
>> @@ -25,6 +25,12 @@ make
>> rsync pdbg root at bmc:/usr/local/bin
>> ```
>>
>> +Depending on your cross compile environment, you may get a message like
>> +`pdbg: No such file or directory` when execting the binary on the BMC,
>> +which may be fixable by correcting loader location:
>> +
>> +`patchelf --set-interpreter /lib/ld-linux-armhf.so.3 pdbg`
>
> Interesting. What toolchain do you use?
Debian binutils gcc-arm-linux-gnueabi (not gnueabihf, because that's
what's in README).
> What does patchelf --print-interpreter tell you before you patch it?
/lib/ld-linux.so.3
Hmm, it's building soft float
Flags: 0x5000200, Version5 EABI, soft-float ABI
Loader might not have anything hf specific so it might work okay, but I
guess it's not really the right thing to do. I'll submit another patch
for the build instructions then.
>
> Regardless:
>
> Reviewed-by: Joel Stanley <joel at jms.id.au>
>
>> +
>> ## Usage
>>
>> Several backends are supported depending on which system you are using and are
>> --
>> 2.23.0
>>
>> --
>> Pdbg mailing list
>> Pdbg at lists.ozlabs.org
>> https://lists.ozlabs.org/listinfo/pdbg
>
More information about the Pdbg
mailing list