Hiroyuki Bessho | 7 Mar 2012 05:26
Picon

Adjusting SYMTAB_SPACE automatically

Hi folks,

  Building evb* kernels often fails because SYMTAB_SPACE options in
config files are too small.
  Symtab gets larger as the kernel grows, and we had to adjust
SYMTAB_SPACE for various kernels by hand.

  Following patch is to do that job automatically.  I have tested it
for evbarm, evbsh3, and amd64.

  Opinions?

Index: external/gpl3/binutils/usr.sbin/dbsym/dbsym.c
===================================================================
RCS file: /u0/tnfcvs/src/external/gpl3/binutils/usr.sbin/dbsym/dbsym.c,v
retrieving revision 1.1
diff -u -u -r1.1 dbsym.c
--- external/gpl3/binutils/usr.sbin/dbsym/dbsym.c	18 Aug 2009 20:22:20 -0000	1.1
+++ external/gpl3/binutils/usr.sbin/dbsym/dbsym.c	6 Mar 2012 09:16:47 -0000
 <at>  <at>  -75,6 +75,7  <at>  <at> 
 int	load_symtab(bfd *, int fd, char **, u_int32_t *);

 int	verbose;
+int	printsize;

 int
 main(int argc, char **argv)
 <at>  <at>  -90,7 +91,7  <at>  <at> 
 	setprogname(argv[0]);

(Continue reading)

David Brownlee | 8 Mar 2012 19:18
Picon

Re: Adjusting SYMTAB_SPACE automatically

On 7 March 2012 04:26, Hiroyuki Bessho <bsh <at> netbsd.org> wrote:
> Hi folks,
>
>  Building evb* kernels often fails because SYMTAB_SPACE options in
> config files are too small.
>  Symtab gets larger as the kernel grows, and we had to adjust
> SYMTAB_SPACE for various kernels by hand.
>
>  Following patch is to do that job automatically.  I have tested it
> for evbarm, evbsh3, and amd64.
>
>  Opinions?

I think this would be most excellent to have...
The amount of time it will save for random developers and builders is
difficult to quantify, but significant :)


Gmane