[U-Boot] buildman: arm: undefined reference to `__aeabi_ldivmod'

Stephen Warren
2016-03-16T15:34:35Z

On 03/16/2016 08:27 AM, Jagan Teki wrote:
> On 14 March 2016 at 23:44, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 03/14/2016 11:32 AM, Jagan Teki wrote:
>>>
>>> Hi Simon,
>>>
>>> On 12 March 2016 at 06:02, Simon Glass <sjg@chromium.org> wrote:
>>>>
>>>> +Stephen
>>>>
>>>> Hi Jagan,
>>>>
>>>> On 11 March 2016 at 01:00, Jagan Teki <jagannadh.teki@gmail.com> wrote:
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> Did anyone encounter this issue? please let me know for any inputs.
>>>>>
>>>>> arm: + venice2
>>>>> +drivers/mtd/spi-nor/built-in.o: In function `spi_nor_write':
>>>>> +build/../drivers/mtd/spi-nor/spi-nor.c:585: undefined reference to
>>>>> `__aeabi_ldivmod'
>>>>> +arm-unknown-linux-gnueabi-ld.bfd: BFD (GNU Binutils) 2.24 assertion
>>>>> fail /home/tony/buildall/src/binutils/bfd/elf32-arm.c:7696
>>>>> +arm-unknown-linux-gnueabi-ld.bfd: error: required section '.rel.plt'
>>>>> not found in the linker script
>>>>> +arm-unknown-linux-gnueabi-ld.bfd: final link failed: Invalid operation
>>>>> +make[1]: *** [u-boot] Error 1
>>>>> +make: *** [sub-make] Error 2
>>>>
>>>>
>>>> Are you using 64-bit division? Tegra uses the private libgcc. This
>>>> patch might help:
>>>
>>> Yes, I'm using 64-bit.
>>>
>>>> http://patchwork.ozlabs.org/patch/592628/
>>>
>>> Still the same issue.
...
>> However, if I apply the patch Simon mentioned above, the problem is fixed.
>> Are you sure you applied that patch correctly?
>
> Yeah, I tried this on latest as well, same issue.

Perhaps you could share the local patches that are triggering the problem?