Stripping eh_frame using linker script, without adding unusal gcc options, looks much simpler as a whole picture to me.
On Fri, May 2, 2014 at 3:37 AM, David Laight <d...@netbsd.org> wrote: > Module Name: src > Committed By: dsl > Date: Thu May 1 18:37:26 UTC 2014 > > Modified Files: > src/sys/arch/i386/stand: Makefile.inc > > Log Message: > Add -fno-asynchronous-unwind-tables -fno-exceptions to gcc builds. > One of these (probably the first) is needed to stop the eh-frame > section being created. > The eh_frame section is loadable and bloats the boot images. > This might be enough to make pxeboot work. > > > To generate a diff of this commit: > cvs rdiff -u -r1.11 -r1.12 src/sys/arch/i386/stand/Makefile.inc > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files. >