[PATCH] [RFC] nios2: Fix initial PLT entry population

Sandra Loosemore sandra@codesourcery.com
Sun Nov 29 21:36:00 GMT 2015


[resending to correct mailing list address]

On 11/28/2015 08:04 AM, Marek Vasut wrote:
> When compiling the "orc" package using OE, the following assertion triggers:
> .../sysroots/x86_64-linux/usr/libexec/nios2-poky-linux/gcc/nios2-poky-linux/5.2.0/ld:
> BFD (GNU Binutils) 2.25.1 assertion fail
> .../work/x86_64-linux/binutils-cross-nios2/2.25.1-r0/git/bfd/elf32-nios2.c:1038

This is not enough information for me to reproduce the error using 
mainline sources (what is the "orc" package?  what is "OE"?).  Can you 
try to provide some sort of standalone reproducible testcase?  E.g. can 
you bundle up all the objects you're trying to link into a tarball and 
attach it to a bugzilla issue, along with the exact linker command line 
and any custom linker script you might be using?

Your patch doesn't look correct to me.  I have some suspicions about 
what might be wrong, but I need to be able to play with the code on the 
test case that is failing a bit to propose a solution.

BTW, you are correct to be concerned about ABI conformance....  the code 
that is being emitted now is specified in the ABI documentation.

http://www.altera.com/literature/hb/nios2/n2cpu_nii51016.pdf

-Sandra



More information about the Binutils mailing list