[uclibc-ng-devel] [PATCH] or1k: Fix compiling with PIC and latest binutils use PLT for __syscall_error
shorne at gmail.com
Wed Aug 28 22:56:36 CEST 2019
On Tue, Aug 27, 2019 at 09:37:32PM +0200, Romain Naour wrote:
> Hi Stafford,
> Le 26/08/2019 à 22:58, Stafford Horne a écrit :
> > This symbol was causing a build failure with the new toolchain. It
> > looks like it has always been wrong.
> > The main issue was checking for PIC rather than __PIC__.
> Indeed, I also noticed this.
> I've made a similar/simpler patch but the system doesn't boot (init program is
> stuck after "Run /init as init process")
> Sadly, the system doesn't boot even with your patch.
> Have you successfully runtime tested uClibc-ng build with your patch?
No, I haven't got it booting.
I have only been able to successfully compile using this. I don't have an
environment setup right now to boot a uclibc-ng target. What are you using
qemu, or1ksim, fpga?
In terms of possible issues, I did just fix 2 bugs that caused glibc to not
- gcc bug - could not read GOT due to clobbering r9
- binutils bug - issue with PLT entries and lazy symbol resolution
More information about the devel