NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/43438: x86 module map size is limited
The following reply was made to PR port-amd64/43438; it has been noted by GNATS.
From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-amd64/43438: x86 module map size is limited
Date: Thu, 10 Jun 2010 19:37:48 +0100
On Wed, Jun 09, 2010 at 08:35:02PM +0000, Nicolas Joly wrote:
> >
> > Do they also have the .ehframe section?
>
> Yes.
>
> 2 .eh_frame 000115a8 0000000000000000 0000000000000000 000b5988
> 2**3
> CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
>
> > We ought to be removing that (gcc option) for all amd64 kernel bits.
>
> Ok. The new patch save a few more byte by discarding this section in
> modules.
...
> +.if ${MKDEBUG} != "no"
> +KMODDEBUG= mv ${PROG} ${PROG}.gdb && \
> + ${STRIP} --strip-debug --remove-section=.eh_frame \
> + -o ${PROG} ${PROG}.gdb
I'm sure I remember there being symbols in the .eh_frame section that
get referenced from elsewhere.
This means (at least for userspace) you can't use objcopy to remove the
section, but must tell gcc to not generate it.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index