[Pdbg] [PATCH] build: add hint for interpreter location fix

Nicholas Piggin npiggin at gmail.com
Wed Jan 13 16:50:04 AEDT 2021


Excerpts from Nicholas Piggin's message of January 13, 2021 3:06 pm:
> 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.

Ohhh, it changed for the 2600 build. I'd thought something must have 
changed on my end. Patch sent.

Thanks,
Nick


More information about the Pdbg mailing list