On Fri, May 02, 2014 at 10:22:48AM +0900, Masao Uebayashi wrote: > Stripping eh_frame using linker script, without adding unusal gcc > options, looks much simpler as a whole picture to me.
Except that these programs use the default linker script. So modifing it is difficult. I don't think the linker has a global option to make the eh_frame section(s) non-loadable - which ought to allow debuggers to use them without taking up program memory (for non paged binaries). > 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. > > David -- David Laight: da...@l8s.co.uk