Re: [yocto] prelink-cross with -fno-plt

2019-06-02 Thread Shane Peelar
Will do, thanks! On Sat, Jun 1, 2019, 3:50 PM Mark Hatle, wrote: > Thanks, this shows that the prelinking is still working in this case. > I'll get > you patch queued up. If you don't see any progress on it this coming week, > please feel free to remind me. > > --Mark > > On 5/29/19 1:42 PM, Sh

Re: [yocto] prelink-cross with -fno-plt

2019-06-01 Thread Mark Hatle
Thanks, this shows that the prelinking is still working in this case. I'll get you patch queued up. If you don't see any progress on it this coming week, please feel free to remind me. --Mark On 5/29/19 1:42 PM, Shane Peelar wrote: > Hi Mark, > > Thank you for your reply and no problem -- I ch

Re: [yocto] prelink-cross with -fno-plt

2019-05-29 Thread Shane Peelar
Hi Mark, Thank you for your reply and no problem -- I chose to benchmark ssh-add with it. It contains no `.plt`. The results are as follows: Without prelink (ran prelink -auv): 26019: 26019: runtime linker statistics: 26019: total startup time in dynamic loader: 132167

Re: [yocto] prelink-cross with -fno-plt

2019-05-28 Thread Mark Hatle
Sorry for my delayed reply. I was out on a business trip. Did you try this with the ld.so statistics to see if the relocations were indeed reduced at runtime? One of my worries with these changes (since I am not an ELF expert either) is that we make a change that doesn't actually do anything --

Re: [yocto] prelink-cross with -fno-plt

2019-05-25 Thread Shane Peelar
Patch is attached. Thank you! On Sat, May 25, 2019 at 2:30 AM Khem Raj wrote: > On Fri, May 24, 2019 at 6:58 PM Shane Peelar > wrote: > > > > Great! Would you be willing to accept a patch that makes arch-x86_64.c > handle that condition like the other arches? > > > > yes certainly. > > > -Sha

Re: [yocto] prelink-cross with -fno-plt

2019-05-24 Thread Khem Raj
On Fri, May 24, 2019 at 6:58 PM Shane Peelar wrote: > > Great! Would you be willing to accept a patch that makes arch-x86_64.c > handle that condition like the other arches? > yes certainly. > -Shane > > On Fri, May 24, 2019 at 12:27 PM Khem Raj wrote: >> >> >> >> On 5/24/19 8:10 AM, Shane Pe

Re: [yocto] prelink-cross with -fno-plt

2019-05-24 Thread Shane Peelar
Great! Would you be willing to accept a patch that makes arch-x86_64.c handle that condition like the other arches? -Shane On Fri, May 24, 2019 at 12:27 PM Khem Raj wrote: > > > On 5/24/19 8:10 AM, Shane Peelar wrote: > > I did some reading into the sources in other architectures. The closest

Re: [yocto] prelink-cross with -fno-plt

2019-05-24 Thread Khem Raj
On 5/24/19 8:10 AM, Shane Peelar wrote: I did some reading into the sources in other architectures.  The closest match, arch_i386.c, makes the write conditional as you say. So do other arches, including |arch_arm.c, |arch_sh.c, |arch-mips.c, |arch-s390.c, |arch-s390x.c, and |arch-ia64.c.||

Re: [yocto] prelink-cross with -fno-plt

2019-05-24 Thread Shane Peelar
I did some reading into the sources in other architectures. The closest match, arch_i386.c, makes the write conditional as you say. So do other arches, including arch_arm.c, arch_sh.c, arch-mips.c, arch-s390.c, arch-s390x.c, and arch-ia64.c. Notably, arch-cris.c has the same assert as arch-x86_64

Re: [yocto] prelink-cross with -fno-plt

2019-05-23 Thread Khem Raj
On 5/23/19 7:53 PM, Shane Peelar wrote: Any of them on the system pretty much, and yes they are also built with -fno-plt. OK, I think its better to them conditionally check for .plt section, can you describe more of whats going on when sections are checked. On Thu, May 23, 2019 at 9:59 PM

Re: [yocto] prelink-cross with -fno-plt

2019-05-23 Thread Shane Peelar
Any of them on the system pretty much, and yes they are also built with -fno-plt. On Thu, May 23, 2019 at 9:59 PM Khem Raj wrote: > > > On 5/23/19 8:05 AM, Shane Peelar wrote: > > Hi Everyone @ the Yocto project, > > > > I'm Shane Peelar, a PhD Candidate at the University of Windsor. > > I'm wri

Re: [yocto] prelink-cross with -fno-plt

2019-05-23 Thread Khem Raj
On 5/23/19 8:05 AM, Shane Peelar wrote: Hi Everyone @ the Yocto project, I'm Shane Peelar, a PhD Candidate at the University of Windsor. I'm writing to you about prelink-cross, as part of the Yocto project. Specifically, I'm looking at using it with executables built using `-fno-plt` under GC