>> [Patch 5/5] >> I am getting segfaults while still in __uClibc_main when using >> buildroot's qemu_xtensa_lx60_defconfig and qemu-xtensa. I'm not sure >> the exact cause, but I would guess that some functions aren't being >> relocated correctly or the TLS wasn't updated correctly. It could also >> possibly be a problem with the quick gcc patch I wrote to compile with >> -static-pie. If you have a gcc patch that you think will fix this as >> well, I would be glad to test it.
> You're right, the following recent binutils and gcc changes are > required for generation of correct relocations and recognition of > the -static-pie option: > https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=658ba81aef5e85a08d67eb211a43c6db775a36b3 <https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=658ba81aef5e85a08d67eb211a43c6db775a36b3> > https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9e0c2696724d4d004ea189a69f15781c7baa68e1 <https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9e0c2696724d4d004ea189a69f15781c7baa68e1> The binutils patch fixed the problems! I was able to make a xtensa toolchain which worked with my test programs for C and C++. On Wed, Sep 14, 2022 at 4:15 PM Lance Fredrickson <[email protected]> wrote: > > > On 9/14/2022 1:23 PM, linted wrote: > > [Patch 5/5] > > I am getting segfaults while still in __uClibc_main when using > > buildroot's qemu_xtensa_lx60_defconfig and qemu-xtensa. I'm not sure > > the exact cause, but I would guess that some functions aren't being > > relocated correctly or the TLS wasn't updated correctly. It could also > > possibly be a problem with the quick gcc patch I wrote to compile with > > -static-pie. If you have a gcc patch that you think will fix this as > > well, I would be glad to test it. > I've had -static-pie binaries segfault with qemu while they ran fine on > actual hardware. I was using Debian 10 so maybe that's because it's an > old version of qemu, and maybe newer versions can handle this better? > > Lance > _______________________________________________ > devel mailing list -- [email protected] > To unsubscribe send an email to [email protected] >
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
