avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] [patch, avr-libc] Fix atexit.c


From: Joern Rennecke
Subject: Re: [avr-gcc-list] [patch, avr-libc] Fix atexit.c
Date: Tue, 14 Oct 2014 15:21:08 +0100

On 14 October 2014 12:36, Erik Christiansen <address@hidden> wrote:
> On 14.10.14 12:43, Georg-Johann Lay wrote:
>> Issuance of calls to functions as registered by atexit() is located in
>> section .fini6a.  As the current linker description does not handle that
>> section
>
> It's a bit late for this case, now that you have fixed it another way,

Looking at avr-libc/doc/api/sections.dox, fini7 was supposed to be
under definable.

> which as you describe, is an improvement to boot, but if something like
> this crops up again, and is not amenable to similar adroitness, then
> changing "*(.fini6)" to "*(.fini6*)" should avoid the orphaning.

It's not quite that simple, you'd have to sort the sections to get a predictable
execution order.  Unfortunately, ld allows only sorting section by ascending
(not descending) name / init priority



reply via email to

[Prev in Thread] Current Thread [Next in Thread]