This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: How to stop --gc-sections nukeing all sections?
On Fri, Apr 07, 2000 at 09:06:03AM -0700, Ian Lance Taylor wrote:
> The kernel uses a nasty ha^H^H^H^H^H^H^H^Hneat trick to trap bad user
> space accesses. This relies on incrementally building up two tables
> containing references to instructions which attempt user space accesses,
> in sections named .fixup and __ex_table sections. These tables must be
> ordered in the same order as the code they refer to ...
>
> Geeze, can't we do this in a way which doesn't rely on undocumented
> linker features?
Preserving link order of sections is hardly undocumented.
Lots of things rely on that, and have since the beginning of time.
r~