How to stop --gc-sections nukeing all sections?
Ian Lance Taylor
ian@zembu.com
Fri Apr 7 09:21:00 GMT 2000
Date: Fri, 7 Apr 2000 12:07:53 +1000 (EST)
From: greyham@research.canon.com.au (Graham Stoney)
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, because a binary search is done on the
__ex_table and this search requires that the entries are in ascending order.
Geeze, can't we do this in a way which doesn't rely on undocumented
linker features? C++ exception handling manages to solve a similar
problem without a similar drawback.
Ian
More information about the Binutils
mailing list