* [Buildroot] How to bypass fix-rpath for a particular package?
@ 2018-07-17 3:53 Tudor Holton
2018-07-17 13:55 ` Bryce Ferguson
0 siblings, 1 reply; 5+ messages in thread
From: Tudor Holton @ 2018-07-17 3:53 UTC (permalink / raw)
To: buildroot
Hi all,
I have a br_external package that always lands corrupt on the image and
segfaults. I tried a number of things and eventually discovered that it
works fine if I graft the output from build directly into the final
image.? From this I narrowed it down to something that happens during
fix-rpath, which looks simple, but all my checks show that I'm not
linking with anything other than -rpath=$ORIGIN so I'm at a loss as to
the root cause.
This may not be the best solution, but is there a standard way to tell
fix-rpath not to patchelf my package and just copy it verbatim to the image?
Cheers,
Tudor.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] How to bypass fix-rpath for a particular package?
2018-07-17 3:53 [Buildroot] How to bypass fix-rpath for a particular package? Tudor Holton
@ 2018-07-17 13:55 ` Bryce Ferguson
2018-07-18 0:05 ` Tudor Holton
0 siblings, 1 reply; 5+ messages in thread
From: Bryce Ferguson @ 2018-07-17 13:55 UTC (permalink / raw)
To: buildroot
Hello Tudor,
When you say that the file is corrupted on the image, what does that mean
exactly? Have you performed a readelf on the binary to determine what
fields may have been messed up? What is your target architecture?
Thanks,
-Bryce
On Mon, Jul 16, 2018 at 10:53 PM, Tudor Holton <tudor@smartguide.com.au>
wrote:
> Hi all,
>
> I have a br_external package that always lands corrupt on the image and
> segfaults. I tried a number of things and eventually discovered that it
> works fine if I graft the output from build directly into the final image.
> From this I narrowed it down to something that happens during fix-rpath,
> which looks simple, but all my checks show that I'm not linking with
> anything other than -rpath=$ORIGIN so I'm at a loss as to the root cause.
>
> This may not be the best solution, but is there a standard way to tell
> fix-rpath not to patchelf my package and just copy it verbatim to the image?
>
> Cheers,
> Tudor.
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
*Bryce Ferguson*
Software Engineer
Airborne Information Solutions \ RC Linux Platform
400 Collins Rd NE Cedar Rapids, Iowa 52498
Bryce.Ferguson at rockwellcollins.com <bryce.ferguson@rockwellcollins.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180717/42bc25bd/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] How to bypass fix-rpath for a particular package?
2018-07-17 13:55 ` Bryce Ferguson
@ 2018-07-18 0:05 ` Tudor Holton
2018-07-18 14:20 ` Bryce Ferguson
0 siblings, 1 reply; 5+ messages in thread
From: Tudor Holton @ 2018-07-18 0:05 UTC (permalink / raw)
To: buildroot
Hi Bryce,
It appears that the symbols referencing the library names have been
bitshifted.? At best, objdump -x gives correct references, ldd
segfaults.? At worst, the objdump -x contains structured gibberish.? It
doesn't happen on all files, though, but at this point I'm unable to
discern a pattern.
I'm guessing that patchelf has a false positive, but I'm no expert in
this area.? I'm not used to ldd segfaulting so I have only been learning
this stuff since I discovered the behaviour.? It came as a complete
surprise to me when I noticed the md5sum difference and grafted directly
and it worked.
Cheers,
Tudor.
On 17/07/18 23:55, Bryce Ferguson wrote:
> Hello Tudor,
>
> When you say that the file is corrupted on the image, what does that
> mean exactly?? Have you performed a readelf on the binary to determine
> what fields may have been messed up? What is your target architecture?
>
> Thanks,
>
> -Bryce
>
> On Mon, Jul 16, 2018 at 10:53 PM, Tudor Holton
> <tudor at smartguide.com.au <mailto:tudor@smartguide.com.au>> wrote:
>
> Hi all,
>
> I have a br_external package that always lands corrupt on the
> image and segfaults. I tried a number of things and eventually
> discovered that it works fine if I graft the output from build
> directly into the final image.? From this I narrowed it down to
> something that happens during fix-rpath, which looks simple, but
> all my checks show that I'm not linking with anything other than
> -rpath=$ORIGIN so I'm at a loss as to the root cause.
>
> This may not be the best solution, but is there a standard way to
> tell fix-rpath not to patchelf my package and just copy it
> verbatim to the image?
>
> Cheers,
> Tudor.
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net <mailto:buildroot@busybox.net>
> http://lists.busybox.net/mailman/listinfo/buildroot
> <http://lists.busybox.net/mailman/listinfo/buildroot>
>
>
>
>
> --
> *
> *
> *
> *
> *Bryce Ferguson*
> Software Engineer
> Airborne Information Solutions \ RC Linux Platform
>
> 400 Collins Rd NE Cedar Rapids, Iowa 52498
>
> Bryce.Ferguson at rockwellcollins.com
> <mailto:bryce.ferguson@rockwellcollins.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180718/e31e7a5c/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] How to bypass fix-rpath for a particular package?
2018-07-18 0:05 ` Tudor Holton
@ 2018-07-18 14:20 ` Bryce Ferguson
2018-07-19 1:03 ` Tudor Holton
0 siblings, 1 reply; 5+ messages in thread
From: Bryce Ferguson @ 2018-07-18 14:20 UTC (permalink / raw)
To: buildroot
Tudor,
Please provide your target architecture and the version of buildroot you
are using.
Thanks!
On Tue, Jul 17, 2018 at 7:05 PM, Tudor Holton <tudor@smartguide.com.au>
wrote:
> Hi Bryce,
>
> It appears that the symbols referencing the library names have been
> bitshifted. At best, objdump -x gives correct references, ldd segfaults.
> At worst, the objdump -x contains structured gibberish. It doesn't happen
> on all files, though, but at this point I'm unable to discern a pattern.
>
> I'm guessing that patchelf has a false positive, but I'm no expert in this
> area. I'm not used to ldd segfaulting so I have only been learning this
> stuff since I discovered the behaviour. It came as a complete surprise to
> me when I noticed the md5sum difference and grafted directly and it worked.
>
> Cheers,
> Tudor.
>
>
> On 17/07/18 23:55, Bryce Ferguson wrote:
>
> Hello Tudor,
>
> When you say that the file is corrupted on the image, what does that mean
> exactly? Have you performed a readelf on the binary to determine what
> fields may have been messed up? What is your target architecture?
>
> Thanks,
>
> -Bryce
>
> On Mon, Jul 16, 2018 at 10:53 PM, Tudor Holton <tudor@smartguide.com.au>
> wrote:
>
>> Hi all,
>>
>> I have a br_external package that always lands corrupt on the image and
>> segfaults. I tried a number of things and eventually discovered that it
>> works fine if I graft the output from build directly into the final image.
>> From this I narrowed it down to something that happens during fix-rpath,
>> which looks simple, but all my checks show that I'm not linking with
>> anything other than -rpath=$ORIGIN so I'm at a loss as to the root cause.
>>
>> This may not be the best solution, but is there a standard way to tell
>> fix-rpath not to patchelf my package and just copy it verbatim to the image?
>>
>> Cheers,
>> Tudor.
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
>
>
> --
>
>
> *Bryce Ferguson*
> Software Engineer
> Airborne Information Solutions \ RC Linux Platform
>
> 400 Collins Rd NE Cedar Rapids, Iowa 52498
> <https://maps.google.com/?q=400+Collins+Rd+NE+Cedar+Rapids,+Iowa+52498&entry=gmail&source=g>
>
> Bryce.Ferguson at rockwellcollins.com <bryce.ferguson@rockwellcollins.com>
>
>
>
--
*Bryce Ferguson*
Software Engineer
Airborne Information Solutions \ RC Linux Platform
400 Collins Rd NE Cedar Rapids, Iowa 52498
Bryce.Ferguson at rockwellcollins.com <bryce.ferguson@rockwellcollins.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180718/4396cfa2/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] How to bypass fix-rpath for a particular package?
2018-07-18 14:20 ` Bryce Ferguson
@ 2018-07-19 1:03 ` Tudor Holton
0 siblings, 0 replies; 5+ messages in thread
From: Tudor Holton @ 2018-07-19 1:03 UTC (permalink / raw)
To: buildroot
Hi Bryce,
My apologies.? I realised I hadn't provided that detail only as I was
walking home last night.
I'm currently building a Intel x86_64 uclibc (with getc/putc macros
disabled) buildroot Image on an Intel x86_64 glibc (Ubuntu) docker
container on an Intel x86_64 glibc (Ubuntu) host.
Cheers,
Tudor.
On 19/07/18 00:20, Bryce Ferguson wrote:
> Tudor,
>
> Please provide your target architecture and the version of buildroot
> you are using.
>
> Thanks!
>
> On Tue, Jul 17, 2018 at 7:05 PM, Tudor Holton <tudor@smartguide.com.au
> <mailto:tudor@smartguide.com.au>> wrote:
>
> Hi Bryce,
>
> It appears that the symbols referencing the library names have
> been bitshifted.? At best, objdump -x gives correct references,
> ldd segfaults.? At worst, the objdump -x contains structured
> gibberish.? It doesn't happen on all files, though, but at this
> point I'm unable to discern a pattern.
>
> I'm guessing that patchelf has a false positive, but I'm no expert
> in this area.? I'm not used to ldd segfaulting so I have only been
> learning this stuff since I discovered the behaviour.? It came as
> a complete surprise to me when I noticed the md5sum difference and
> grafted directly and it worked.
>
> Cheers,
> Tudor.
>
>
> On 17/07/18 23:55, Bryce Ferguson wrote:
>> Hello Tudor,
>>
>> When you say that the file is corrupted on the image, what does
>> that mean exactly?? Have you performed a readelf on the binary to
>> determine what fields may have been messed up?? What is your
>> target architecture?
>>
>> Thanks,
>>
>> -Bryce
>>
>> On Mon, Jul 16, 2018 at 10:53 PM, Tudor Holton
>> <tudor at smartguide.com.au <mailto:tudor@smartguide.com.au>> wrote:
>>
>> Hi all,
>>
>> I have a br_external package that always lands corrupt on the
>> image and segfaults. I tried a number of things and
>> eventually discovered that it works fine if I graft the
>> output from build directly into the final image.? From this I
>> narrowed it down to something that happens during fix-rpath,
>> which looks simple, but all my checks show that I'm not
>> linking with anything other than -rpath=$ORIGIN so I'm at a
>> loss as to the root cause.
>>
>> This may not be the best solution, but is there a standard
>> way to tell fix-rpath not to patchelf my package and just
>> copy it verbatim to the image?
>>
>> Cheers,
>> Tudor.
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net <mailto:buildroot@busybox.net>
>> http://lists.busybox.net/mailman/listinfo/buildroot
>> <http://lists.busybox.net/mailman/listinfo/buildroot>
>>
>>
>>
>>
>> --
>> *
>> *
>> *
>> *
>> *Bryce Ferguson*
>> Software Engineer
>> Airborne Information Solutions \ RC Linux Platform
>>
>> 400 Collins Rd NE Cedar Rapids, Iowa 52498
>> <https://maps.google.com/?q=400+Collins+Rd+NE+Cedar+Rapids,+Iowa+52498&entry=gmail&source=g>
>>
>> Bryce.Ferguson at rockwellcollins.com
>> <mailto:bryce.ferguson@rockwellcollins.com>
>>
>
>
>
>
> --
> *
> *
> *
> *
> *Bryce Ferguson*
> Software Engineer
> Airborne Information Solutions \ RC Linux Platform
>
> 400 Collins Rd NE Cedar Rapids, Iowa 52498
>
> Bryce.Ferguson at rockwellcollins.com
> <mailto:bryce.ferguson@rockwellcollins.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180719/893a2da0/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-07-19 1:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17 3:53 [Buildroot] How to bypass fix-rpath for a particular package? Tudor Holton
2018-07-17 13:55 ` Bryce Ferguson
2018-07-18 0:05 ` Tudor Holton
2018-07-18 14:20 ` Bryce Ferguson
2018-07-19 1:03 ` Tudor Holton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.