[Top][All Lists]

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

[Bug ld/16345] ld emits errors on .eh_frame from partial linking

From: hjl.tools at gmail dot com
Subject: [Bug ld/16345] ld emits errors on .eh_frame from partial linking
Date: Sun, 22 Dec 2013 00:19:53 +0000


--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Alexey Neyman from comment #7)
> (In reply to H.J. Lu from comment #6)
> > > Also, I think, a mention in the description of -r option in ld.info would 
> > > be
> > > appropriate.
> > 
> > .init section can only be used according to the gABI. It is irrelevant
> > to  ld -r. When in doubt, DON't USE special sections documented in the
> > gABI for your own purpose.
> The .text section is also listed as a "special section" in gABI/LSB, yet you
> suggested to use it:
> ----
> Special Sections
> ...
> .init
> This section holds executable instructions that contribute to the process
> initialization code. When a program starts to run, the system arranges to
> execute the code in this section before calling the main program entry point
> (called main for C programs).

Linker concatenates all input .init sections and turn it into a single
function.  You can't use it for yourself.

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

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