How to stop --gc-sections nukeing all sections?
Richard Henderson
rth@cygnus.com
Mon Apr 17 16:43:00 GMT 2000
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~
More information about the Binutils
mailing list