NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/57146 (COPY_SYMTAB is broken by MKCTF=yes)



The following reply was made to PR toolchain/57146; it has been noted by GNATS.

From: Luke Mewburn <luke%mewburn.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lukem%netbsd.org@localhost, toolchain-manager%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
	gnats-admin%netbsd.org@localhost, martin%netbsd.org@localhost
Subject: Re: toolchain/57146 (COPY_SYMTAB is broken by MKCTF=yes)
Date: Sat, 27 May 2023 01:33:35 +1000

 I've done some further analysis inspired by Martin's comment
 that the published releases are too large, and I think that
 they're built with MKDEBUG=yes.
 
 tl;dr: The combination of both MKCTF=yes and MKDEBUG=yes
 causes the size blowout. Just one or the other of these
 options enabled does not seem to be that much of an issue.
 
 Seeking input from ARM toolchain gurus for further advice.
 
 
 Testing GENERIC compiles with various combinations of MKCTF and MKDEBUG.
 In these results:
 - c0 == MKCTF=no
 - c1 == MKCTF=yes
 - d0 == MKDEBUG=no
 - d1 == MKDEBUG=yes
 
 % ls -l GENERIC.*/netbsd
 -rwxr-xr-x  1 lukem  users   5105548 May 27 00:57 GENERIC.c0d0/netbsd
 -rwxr-xr-x  1 lukem  users   5053672 May 27 01:00 GENERIC.c0d1/netbsd
 -rwxr-xr-x  1 lukem  users   5348240 May 27 00:59 GENERIC.c1d0/netbsd
 -rwxr-xr-x  1 lukem  users  35091320 May 27 01:09 GENERIC.c1d1/netbsd
 
 % size GENERIC.*/netbsd
    text    data     bss     dec     hex filename
 3843904  608148  119368 4571420  45c11c GENERIC.c0d0/netbsd
 3843904  612372  119368 4575644  45d19c GENERIC.c0d1/netbsd
 3843904  729492  119368 4692764  479b1c GENERIC.c1d0/netbsd
 3843904 15631188         119368 19594460        12afcdc GENERIC.c1d1/netbsd
 
 % foreach i (GENERIC.*/netbsd )
 foreach? echo $i;
 foreach? $TOOLDIR/bin/armv4--netbsdelf-eabi-dbsym -P $i
 foreach? end
 GENERIC.c0d0/netbsd
 503048
 GENERIC.c0d1/netbsd
 479652
 GENERIC.c1d0/netbsd
 624400
 GENERIC.c1d1/netbsd
 15498488
 


Home | Main Index | Thread Index | Old Index