microblaze-elf - missing priority for the constructors

Ian Lance Taylor iant@google.com
Fri Mar 30 19:24:00 GMT 2012


nick clifton <nickc@redhat.com> writes:

>> I cross-compiled GCC 4.6.3 and binutil 2.22 for microblaze
>> and I came into a problem when trying an eCos RTOS based application.
>> The constructors table is not sorted by priority, actually the priority
>> seem to be gone. I have added this template in the linker script:
>
> Strange - that should not be needed.  The built-in microblaze linker
> script already includes support for sorting constructors:

It's a compiler problem, not a binutils problem at all.  The compiler is
not putting the priority in the .ctors section names.

Ian



More information about the Binutils mailing list