[PATCH] Place ENTRY_POINT in .text.startup section [BZ #28153]
H.J. Lu
hjl.tools@gmail.com
Sat Jul 31 12:42:21 GMT 2021
On Fri, Jul 30, 2021 at 10:40 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Jul 30 2021, H.J. Lu via Libc-alpha wrote:
>
> > Since GCC 4.6, the main function is placed in .text.startup section.
>
> Not generally.
>
> > Place ENTRY_POINT in .text.startup section fixes [BZ #28153].
>
> The linker places .text.unlikely and .text.exit before .text.startup.
We can put it in .text.unlikely section.
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
--
H.J.
More information about the Libc-alpha
mailing list