[arch-commits] Commit in avr-binutils/trunk (PKGBUILD avr-size.patch)

Jakob Gruber schuay at nymeria.archlinux.org
Wed Jul 2 06:54:02 UTC 2014


    Date: Wednesday, July 2, 2014 @ 08:54:01
  Author: schuay
Revision: 114586

avr-binutils-2.24-2

Modified:
  avr-binutils/trunk/PKGBUILD
  avr-binutils/trunk/avr-size.patch

----------------+
 PKGBUILD       |    5 
 avr-size.patch |  365 ++++++++++++++++++++++++++++++++++---------------------
 2 files changed, 231 insertions(+), 139 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-02 06:32:13 UTC (rev 114585)
+++ PKGBUILD	2014-07-02 06:54:01 UTC (rev 114586)
@@ -8,7 +8,7 @@
 
 pkgname=avr-binutils
 pkgver=2.24
-pkgrel=1
+pkgrel=2
 pkgdesc="A set of programs to assemble and manipulate binary and object files for the AVR architecture"
 arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/binutils/"
@@ -25,6 +25,7 @@
     cd ${srcdir}/binutils-${pkgver}
 
     # See https://bugs.archlinux.org/task/32504
+    # And https://bugs.archlinux.org/task/40986
     patch -Np0 < ${srcdir}/avr-size.patch
 
     # https://bugs.archlinux.org/task/34629
@@ -76,4 +77,4 @@
 
 md5sums=('e0f71a7b2ddab0f8612336ac81d9636b'
          'SKIP'
-         '573769ec1107d1bfed78680edd7ae63f')
+         '7f62e260650ceb0ff2f7cb44c3ee899c')

Modified: avr-size.patch
===================================================================
--- avr-size.patch	2014-07-02 06:32:13 UTC (rev 114585)
+++ avr-size.patch	2014-07-02 06:54:01 UTC (rev 114586)
@@ -1,8 +1,10 @@
-AVR specific only
---------------------------------------------------------------------------------
+AVR only; support -C for AVR memory usage
+
+Source: http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
+===========================================================
 --- binutils/size.c	2007-08-06 13:56:14.000000000 -0600
 +++ binutils/size.c	2007-09-13 09:13:10.281250000 -0600
-@@ -35,10 +35,31 @@
+@@ -36,10 +36,31 @@
  #include "getopt.h"
  #include "bucomm.h"
  
@@ -36,7 +38,7 @@
  /* Program options.  */
  
  static enum
-@@ -47,9 +68,8 @@ static enum
+@@ -48,9 +69,8 @@ static enum
    }
  radix = decimal;
  
@@ -47,7 +49,7 @@
  static int show_version = 0;
  static int show_help = 0;
  static int show_totals = 0;
-@@ -63,6 +83,157 @@ static bfd_size_type total_textsize;
+@@ -64,6 +84,246 @@ static bfd_size_type total_textsize;
  /* Program exit status.  */
  static int return_code = 0;
  
@@ -63,12 +65,18 @@
 +#define AVR4K 4096UL
 +#define AVR8K 8192UL
 +#define AVR16K 16384UL
++#define AVR20K 20480UL
 +#define AVR24K 24576UL
 +#define AVR32K 32768UL
++#define AVR36K 36864UL
 +#define AVR40K 40960UL
 +#define AVR64K 65536UL
++#define AVR68K 69632UL
 +#define AVR128K 131072UL
++#define AVR136K 139264UL
++#define AVR200K 204800UL
 +#define AVR256K 262144UL
++#define AVR264K 270336UL
 +
 +typedef struct
 +{
@@ -80,123 +88,206 @@
 +
 +avr_device_t avr[] =
 +{
-+	{"atmega2560",  AVR256K, AVR8K,  AVR4K},
-+	{"atmega2561",  AVR256K, AVR8K,  AVR4K},
++	{"atxmega256a3",  AVR264K, AVR16K, AVR4K},
++	{"atxmega256a3b", AVR264K, AVR16K, AVR4K},
++	{"atxmega256d3",  AVR264K, AVR16K, AVR4K},
 +
-+	{"at43usb320",  AVR128K, 608UL,    0},
-+	{"at90can128",  AVR128K, AVR4K,  AVR4K},
-+	{"at90usb1286", AVR128K, AVR8K,  AVR4K},
-+	{"at90usb1287", AVR128K, AVR8K,  AVR4K},
-+	{"atmega128",   AVR128K, AVR4K,  AVR4K},
-+	{"atmega1280",  AVR128K, AVR8K,  AVR4K},
-+	{"atmega1281",  AVR128K, AVR8K,  AVR4K},
-+	{"atmega1284P", AVR128K, AVR16K, AVR4K},
-+	{"atmega103",   AVR128K, 4000UL,   AVR4K},
-+	{"atxmega128a1",AVR128K, AVR8K,  AVR2K},
++	{"atmega2560",    AVR256K, AVR8K,  AVR4K},
++	{"atmega2561",    AVR256K, AVR8K,  AVR4K},
 +
-+	{"at90can64",   AVR64K,  AVR4K,  AVR2K},
-+	{"at90usb646",  AVR64K,  AVR4K,  AVR2K},
-+	{"at90usb647",  AVR64K,  AVR4K,  AVR2K},
-+	{"atmega64",    AVR64K,  AVR4K,  AVR2K},
-+	{"atmega640",   AVR64K,  AVR8K,  AVR4K},
-+	{"atmega644",   AVR64K,  AVR4K,  AVR2K},
-+	{"atmega644p",  AVR64K,  AVR4K,  AVR2K},
-+	{"atmega645",   AVR64K,  AVR4K,  AVR2K},
-+	{"atmega6450",  AVR64K,  AVR4K,  AVR2K},
-+	{"atmega649",   AVR64K,  AVR4K,  AVR2K},
-+	{"atmega6490",  AVR64K,  AVR4K,  AVR2K},
-+	{"atxmega64a1", AVR64K,  AVR4K,  AVR2K},
++	{"atxmega192a3",  AVR200K, AVR16K, AVR2K},
++	{"atxmega192d3",  AVR200K, AVR16K, AVR2K},
 +
-+	{"atmega406",   AVR40K,  AVR512, AVR2K},
++	{"atxmega128a1",  AVR136K, AVR8K,  AVR2K},
++	{"atxmega128a1u", AVR136K, AVR8K,  AVR2K},
++	{"atxmega128a3",  AVR136K, AVR8K,  AVR2K},
++	{"atxmega128d3",  AVR136K, AVR8K,  AVR2K},
 +
-+	{"at90can32",   AVR32K,  AVR2K,  AVR1K},
-+	{"at94k",       AVR32K,  AVR4K,  0},
-+	{"atmega32",    AVR32K,  AVR2K,  AVR1K},
-+	{"atmega323",   AVR32K,  AVR2K,  AVR1K},
-+	{"atmega324p",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega325",   AVR32K,  AVR2K,  AVR1K},
-+	{"atmega325p",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega3250",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega3250p", AVR32K,  AVR2K,  AVR1K},
-+	{"atmega328p",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega329",   AVR32K,  AVR2K,  AVR1K},
-+	{"atmega329p",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega3290",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega3290p", AVR32K,  AVR2K,  AVR1K},
-+	{"atmega32hvb", AVR32K,  AVR2K,  AVR1K},
-+	{"atmega32c1",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega32m1",  AVR32K,  AVR2K,  AVR1K},
-+	{"atmega32u4",  AVR32K,  2560UL, AVR1K},
++	{"at43usb320",    AVR128K, 608UL,  0UL},
++	{"at90can128",    AVR128K, AVR4K,  AVR4K},
++	{"at90usb1286",   AVR128K, AVR8K,  AVR4K},
++	{"at90usb1287",   AVR128K, AVR8K,  AVR4K},
++	{"atmega128",     AVR128K, AVR4K,  AVR4K},
++	{"atmega1280",    AVR128K, AVR8K,  AVR4K},
++	{"atmega1281",    AVR128K, AVR8K,  AVR4K},
++	{"atmega1284p",   AVR128K, AVR16K, AVR4K},
++	{"atmega128rfa1", AVR128K, AVR16K, AVR4K},
++	{"atmega103",     AVR128K, 4000UL, AVR4K},
 +
-+	{"at43usb355",  AVR24K,  1120,   0},
++	{"atxmega64a1",   AVR68K,  AVR4K,  AVR2K},
++	{"atxmega64a1u",  AVR68K,  AVR4K,  AVR2K},
++	{"atxmega64a3",   AVR68K,  AVR4K,  AVR2K},
++	{"atxmega64d3",   AVR68K,  AVR4K,  AVR2K},
 +
-+	{"at76c711",    AVR16K,  AVR2K,  0},
-+	{"at90pwm216",  AVR16K,  AVR1K,  AVR512},
-+	{"at90pwm316",  AVR16K,  AVR1K,  AVR512},
-+	{"at90usb162",  AVR16K,  AVR512, AVR512},
-+	{"atmega16",    AVR16K,  AVR1K,  AVR512},
-+	{"atmega161",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega162",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega163",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega164",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega164p",  AVR16K,  AVR1K,  AVR512},
-+	{"atmega165",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega165p",  AVR16K,  AVR1K,  AVR512},
-+	{"atmega168",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega168p",  AVR16K,  AVR1K,  AVR512},
-+	{"atmega169",   AVR16K,  AVR1K,  AVR512},
-+	{"atmega169p",  AVR16K,  AVR1K,  AVR512},
-+	{"attiny167",   AVR16K,  AVR512, AVR512},
-+	{"atxmega16d4", AVR16K,  AVR2K,  AVR1K},
++	{"at90can64",     AVR64K,  AVR4K,  AVR2K},
++	{"at90scr100",    AVR64K,  AVR4K,  AVR2K},
++	{"at90usb646",    AVR64K,  AVR4K,  AVR2K},
++	{"at90usb647",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega64",      AVR64K,  AVR4K,  AVR2K},
++	{"atmega640",     AVR64K,  AVR8K,  AVR4K},
++	{"atmega644",     AVR64K,  AVR4K,  AVR2K},
++	{"atmega644a",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega644p",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega644pa",   AVR64K,  AVR4K,  AVR2K},
++	{"atmega645",     AVR64K,  AVR4K,  AVR2K},
++	{"atmega645a",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega645p",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega6450",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega6450a",   AVR64K,  AVR4K,  AVR2K},
++	{"atmega6450p",   AVR64K,  AVR4K,  AVR2K},
++	{"atmega649",     AVR64K,  AVR4K,  AVR2K},
++	{"atmega649a",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega649p",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega6490",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega6490a",   AVR64K,  AVR4K,  AVR2K},
++	{"atmega6490p",   AVR64K,  AVR4K,  AVR2K},
++	{"atmega64c1",    AVR64K,  AVR4K,  AVR2K},
++	{"atmega64hve",   AVR64K,  AVR4K,  AVR1K},
++	{"atmega64m1",    AVR64K,  AVR4K,  AVR2K},
++   {"m3000",         AVR64K,  AVR4K,  0UL},
 +
-+	{"at90c8534",   AVR8K,   352,    AVR512},
-+	{"at90pwm1",    AVR8K,   AVR512, AVR512},
-+	{"at90pwm2",    AVR8K,   AVR512, AVR512},
-+	{"at90pwm2b",   AVR8K,   AVR512, AVR512},
-+	{"at90pwm3",    AVR8K,   AVR512, AVR512},
-+	{"at90pwm3b",   AVR8K,   AVR512, AVR512},
-+	{"at90s8515",   AVR8K,   AVR512, AVR512},
-+	{"at90s8535",   AVR8K,   AVR512, AVR512},
-+	{"at90usb82",   AVR8K,   AVR512, AVR512},
-+	{"atmega8",     AVR8K,   AVR1K,  AVR512},
-+	{"atmega8515",  AVR8K,   AVR512, AVR512},
-+	{"atmega8535",  AVR8K,   AVR512, AVR512},
-+	{"atmega88",    AVR8K,   AVR1K,  AVR512},
-+	{"atmega88p",   AVR8K,   AVR1K,  AVR512},
-+	{"attiny84",    AVR8K,   AVR512, AVR512},
-+	{"attiny85",    AVR8K,   AVR512, AVR512},
-+	{"attiny861",   AVR8K,   AVR512, AVR512},
-+	{"attiny88",    AVR8K,   AVR256, AVR64},
++	{"atmega406",     AVR40K,  AVR2K,  AVR512},
 +
-+	{"at90s4414",   AVR4K,   352,    AVR256},
-+	{"at90s4433",   AVR4K,   AVR128, AVR256},
-+	{"at90s4434",   AVR4K,   352,    AVR256},
-+	{"atmega48",    AVR4K,   AVR512, AVR256},
-+	{"atmega48p",   AVR4K,   AVR512, AVR256},
-+	{"attiny43u",   AVR4K,   AVR256, AVR64},
-+	{"attiny44",    AVR4K,   AVR256, AVR256},
-+	{"attiny45",    AVR4K,   AVR256, AVR256},
-+	{"attiny461",   AVR4K,   AVR256, AVR256},
-+	{"attiny48",    AVR4K,   AVR256, AVR64},
++	{"atxmega32a4",   AVR36K,  AVR4K,  AVR1K},
++	{"atxmega32d4",   AVR36K,  AVR4K,  AVR1K},
 +
-+	{"at86rf401",   AVR2K,   224,    AVR128},
-+	{"at90s2313",   AVR2K,   AVR128, AVR128},
-+	{"at90s2323",   AVR2K,   AVR128, AVR128},
-+	{"at90s2333",   AVR2K,   224,    AVR128},
-+	{"at90s2343",   AVR2K,   AVR128, AVR128},
-+	{"attiny22",    AVR2K,   224,    AVR128},
-+	{"attiny2313",  AVR2K,   AVR128, AVR128},
-+	{"attiny24",    AVR2K,   AVR128, AVR128},
-+	{"attiny25",    AVR2K,   AVR128, AVR128},
-+	{"attiny26",    AVR2K,   AVR128, AVR128},
-+	{"attiny261",   AVR2K,   AVR128, AVR128},
-+	{"attiny28",    AVR2K,   0,      0},
++	{"at90can32",     AVR32K,  AVR2K,  AVR1K},
++	{"at94k",         AVR32K,  AVR4K,  0UL},
++	{"atmega32",      AVR32K,  AVR2K,  AVR1K},
++	{"atmega323",     AVR32K,  AVR2K,  AVR1K},
++	{"atmega324a",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega324p",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega324pa",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega325",     AVR32K,  AVR2K,  AVR1K},
++	{"atmega325a",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega325p",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega3250",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega3250a",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega3250p",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega328",     AVR32K,  AVR2K,  AVR1K},
++	{"atmega328p",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega329",     AVR32K,  AVR2K,  AVR1K},
++	{"atmega329a",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega329p",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega329pa",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega3290",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega3290a",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega3290p",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega32hvb",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega32c1",    AVR32K,  AVR2K,  AVR1K},
++   {"atmega32hvb",   AVR32K,  AVR2K,  AVR1K},
++	{"atmega32m1",    AVR32K,  AVR2K,  AVR1K},
++	{"atmega32u2",    AVR32K,  AVR1K,  AVR1K},
++	{"atmega32u4",    AVR32K,  2560UL, AVR1K},
++	{"atmega32u6",    AVR32K,  2560UL, AVR1K},
 +
-+	{"at90s1200",   AVR1K,   0,      AVR64},
-+	{"attiny11",    AVR1K,   0,      AVR64},
-+	{"attiny12",    AVR1K,   0,      AVR64},
-+	{"attiny13",    AVR1K,   AVR64,  AVR64},
-+	{"attiny15",    AVR1K,   0,      AVR64},
++	{"at43usb355",    AVR24K,  1120UL,   0UL},
++
++	{"atxmega16a4",   AVR20K,  AVR2K,  AVR1K},
++	{"atxmega16d4",   AVR20K,  AVR2K,  AVR1K},
++
++	{"at76c711",      AVR16K,  AVR2K,  0UL},
++	{"at90pwm216",    AVR16K,  AVR1K,  AVR512},
++	{"at90pwm316",    AVR16K,  AVR1K,  AVR512},
++	{"at90usb162",    AVR16K,  AVR512, AVR512},
++	{"atmega16",      AVR16K,  AVR1K,  AVR512},
++	{"atmega16a",     AVR16K,  AVR1K,  AVR512},
++	{"atmega161",     AVR16K,  AVR1K,  AVR512},
++	{"atmega162",     AVR16K,  AVR1K,  AVR512},
++	{"atmega163",     AVR16K,  AVR1K,  AVR512},
++	{"atmega164",     AVR16K,  AVR1K,  AVR512},
++	{"atmega164a",    AVR16K,  AVR1K,  AVR512},
++	{"atmega164p",    AVR16K,  AVR1K,  AVR512},
++	{"atmega165a",    AVR16K,  AVR1K,  AVR512},
++	{"atmega165",     AVR16K,  AVR1K,  AVR512},
++	{"atmega165p",    AVR16K,  AVR1K,  AVR512},
++	{"atmega168",     AVR16K,  AVR1K,  AVR512},
++	{"atmega168a",    AVR16K,  AVR1K,  AVR512},
++	{"atmega168p",    AVR16K,  AVR1K,  AVR512},
++	{"atmega169",     AVR16K,  AVR1K,  AVR512},
++	{"atmega169a",    AVR16K,  AVR1K,  AVR512},
++	{"atmega169p",    AVR16K,  AVR1K,  AVR512},
++	{"atmega169pa",   AVR16K,  AVR1K,  AVR512},
++	{"atmega16hva",   AVR16K,  768UL,  AVR256},
++	{"atmega16hva2",  AVR16K,  AVR1K,  AVR256},
++   {"atmega16hvb",   AVR16K,  AVR1K,  AVR512},
++	{"atmega16m1",    AVR16K,  AVR1K,  AVR512},
++	{"atmega16u2",    AVR16K,  AVR512, AVR512},
++	{"atmega16u4",    AVR16K,  1280UL, AVR512},
++	{"attiny167",     AVR16K,  AVR512, AVR512},
++
++	{"at90c8534",     AVR8K,   352UL,  AVR512},
++	{"at90pwm1",      AVR8K,   AVR512, AVR512},
++	{"at90pwm2",      AVR8K,   AVR512, AVR512},
++	{"at90pwm2b",     AVR8K,   AVR512, AVR512},
++	{"at90pwm3",      AVR8K,   AVR512, AVR512},
++	{"at90pwm3b",     AVR8K,   AVR512, AVR512},
++	{"at90pwm81",     AVR8K,   AVR256, AVR512},
++	{"at90s8515",     AVR8K,   AVR512, AVR512},
++	{"at90s8535",     AVR8K,   AVR512, AVR512},
++	{"at90usb82",     AVR8K,   AVR512, AVR512},
++	{"ata6289",       AVR8K,   AVR512, 320UL},
++	{"atmega8",       AVR8K,   AVR1K,  AVR512},
++	{"atmega8515",    AVR8K,   AVR512, AVR512},
++	{"atmega8535",    AVR8K,   AVR512, AVR512},
++	{"atmega88",      AVR8K,   AVR1K,  AVR512},
++	{"atmega88a",     AVR8K,   AVR1K,  AVR512},
++	{"atmega88p",     AVR8K,   AVR1K,  AVR512},
++	{"atmega88pa",    AVR8K,   AVR1K,  AVR512},
++	{"atmega8hva",    AVR8K,   768UL,  AVR256},
++	{"atmega8u2",     AVR8K,   AVR512, AVR512},
++	{"attiny84",      AVR8K,   AVR512, AVR512},
++	{"attiny84a",     AVR8K,   AVR512, AVR512},
++	{"attiny85",      AVR8K,   AVR512, AVR512},
++	{"attiny861",     AVR8K,   AVR512, AVR512},
++	{"attiny861a",    AVR8K,   AVR512, AVR512},
++	{"attiny87",      AVR8K,   AVR512, AVR512},
++	{"attiny88",      AVR8K,   AVR512, AVR64},
++
++	{"at90s4414",     AVR4K,   352UL,  AVR256},
++	{"at90s4433",     AVR4K,   AVR128, AVR256},
++	{"at90s4434",     AVR4K,   352UL,  AVR256},
++	{"atmega48",      AVR4K,   AVR512, AVR256},
++	{"atmega48a",     AVR4K,   AVR512, AVR256},
++	{"atmega48p",     AVR4K,   AVR512, AVR256},
++	{"attiny4313",    AVR4K,   AVR256, AVR256},
++	{"attiny43u",     AVR4K,   AVR256, AVR64},
++	{"attiny44",      AVR4K,   AVR256, AVR256},
++	{"attiny44a",     AVR4K,   AVR256, AVR256},
++	{"attiny45",      AVR4K,   AVR256, AVR256},
++	{"attiny461",     AVR4K,   AVR256, AVR256},
++	{"attiny461a",    AVR4K,   AVR256, AVR256},
++	{"attiny48",      AVR4K,   AVR256, AVR64},
++
++	{"at86rf401",     AVR2K,   224UL,  AVR128},
++	{"at90s2313",     AVR2K,   AVR128, AVR128},
++	{"at90s2323",     AVR2K,   AVR128, AVR128},
++	{"at90s2333",     AVR2K,   224UL,  AVR128},
++	{"at90s2343",     AVR2K,   AVR128, AVR128},
++   {"attiny20",      AVR2K,   AVR128, 0UL},
++	{"attiny22",      AVR2K,   224UL,  AVR128},
++	{"attiny2313",    AVR2K,   AVR128, AVR128},
++	{"attiny2313a",   AVR2K,   AVR128, AVR128},
++	{"attiny24",      AVR2K,   AVR128, AVR128},
++	{"attiny24a",     AVR2K,   AVR128, AVR128},
++	{"attiny25",      AVR2K,   AVR128, AVR128},
++	{"attiny26",      AVR2K,   AVR128, AVR128},
++	{"attiny261",     AVR2K,   AVR128, AVR128},
++	{"attiny261a",    AVR2K,   AVR128, AVR128},
++	{"attiny28",      AVR2K,   0UL,    0UL},
++   {"attiny40",      AVR2K,   AVR256, 0UL},
++
++	{"at90s1200",     AVR1K,   0UL,    AVR64},
++   {"attiny9",       AVR1K,   32UL,   0UL},
++   {"attiny10",      AVR1K,   32UL,   0UL},
++	{"attiny11",      AVR1K,   0UL,    AVR64},
++	{"attiny12",      AVR1K,   0UL,    AVR64},
++	{"attiny13",      AVR1K,   AVR64,  AVR64},
++	{"attiny13a",     AVR1K,   AVR64,  AVR64},
++	{"attiny15",      AVR1K,   0UL,    AVR64},
++
++   {"attiny4",       AVR512,  32UL,   0UL},
++   {"attiny5",       AVR512,  32UL,   0UL},
 +};
 +
 +static char *avrmcu = NULL;
@@ -205,7 +296,7 @@
  static char *target = NULL;
  
  /* Forward declarations.  */
-@@ -78,7 +240,8 @@ usage (FILE *stream, int status)
+@@ -79,7 +337,8 @@ usage (FILE *stream, int status)
    fprintf (stream, _(" Displays the sizes of sections inside binary files\n"));
    fprintf (stream, _(" If no input file(s) are specified, a.out is assumed\n"));
    fprintf (stream, _(" The options are:\n\
@@ -215,7 +306,7 @@
    -o|-d|-x  --radix={8|10|16}         Display numbers in octal, decimal or hex\n\
    -t        --totals                  Display the total sizes (Berkeley only)\n\
              --common                  Display total size for *COM* syms\n\
-@@ -87,11 +250,7 @@ usage (FILE *stream, int status)
+@@ -88,11 +337,7 @@ usage (FILE *stream, int status)
    -h        --help                    Display this information\n\
    -v        --version                 Display the program's version\n\
  \n"),
@@ -228,7 +319,7 @@
  );
    list_supported_targets (program_name, stream);
    if (REPORT_BUGS_TO[0] && status == 0)
-@@ -102,6 +261,7 @@ usage (FILE *stream, int status)
+@@ -103,6 +359,7 @@ usage (FILE *stream, int status)
  #define OPTION_FORMAT (200)
  #define OPTION_RADIX (OPTION_FORMAT + 1)
  #define OPTION_TARGET (OPTION_RADIX + 1)
@@ -236,7 +327,7 @@
  
  static struct option long_options[] =
  {
-@@ -109,6 +269,7 @@ static struct option long_options[] =
+@@ -110,6 +368,7 @@ static struct option long_options[] =
    {"format", required_argument, 0, OPTION_FORMAT},
    {"radix", required_argument, 0, OPTION_RADIX},
    {"target", required_argument, 0, OPTION_TARGET},
@@ -244,7 +335,7 @@
    {"totals", no_argument, &show_totals, 1},
    {"version", no_argument, &show_version, 1},
    {"help", no_argument, &show_help, 1},
-@@ -140,7 +301,7 @@ main (int argc, char **argv)
+@@ -141,7 +399,7 @@ main (int argc, char **argv)
    bfd_init ();
    set_default_bfd_target ();
  
@@ -253,7 +344,7 @@
  			   (int *) 0)) != EOF)
      switch (c)
        {
-@@ -149,11 +310,15 @@ main (int argc, char **argv)
+@@ -150,11 +409,15 @@ main (int argc, char **argv)
  	  {
  	  case 'B':
  	  case 'b':
@@ -271,7 +362,7 @@
  	    break;
  	  default:
  	    non_fatal (_("invalid argument to --format: %s"), optarg);
-@@ -161,6 +326,10 @@ main (int argc, char **argv)
+@@ -162,6 +424,10 @@ main (int argc, char **argv)
  	  }
  	break;
  
@@ -282,7 +373,7 @@
        case OPTION_TARGET:
  	target = optarg;
  	break;
-@@ -189,11 +358,14 @@ main (int argc, char **argv)
+@@ -190,11 +457,14 @@ main (int argc, char **argv)
  	break;
  
        case 'A':
@@ -299,7 +390,7 @@
        case 'v':
        case 'V':
  	show_version = 1;
-@@ -239,7 +411,7 @@ main (int argc, char **argv)
+@@ -240,7 +509,7 @@ main (int argc, char **argv)
      for (; optind < argc;)
        display_file (argv[optind++]);
  
@@ -308,7 +399,7 @@
      {
        bfd_size_type total = total_textsize + total_datasize + total_bsssize;
  
-@@ -600,13 +772,117 @@ print_sysv_format (bfd *file)
+@@ -599,13 +869,117 @@ print_sysv_format (bfd *file)
    printf ("\n\n");
  }
  
@@ -341,12 +432,12 @@
 +  int rammax = 0;
 +  int eeprommax = 0;
 +  asection *section; 
-+  bfd_size_type data_size = 0;
-+  bfd_size_type text_size = 0;
-+  bfd_size_type bss_size = 0;
-+  bfd_size_type bootloader_size = 0;
-+  bfd_size_type noinit_size = 0;
-+  bfd_size_type eeprom_size = 0;
++  bfd_size_type my_datasize = 0;
++  bfd_size_type my_textsize = 0;
++  bfd_size_type my_bsssize = 0;
++  bfd_size_type bootloadersize = 0;
++  bfd_size_type noinitsize = 0;
++  bfd_size_type eepromsize = 0;
 +
 +  avr_device_t *avrdevice = avr_find_device();
 +  if (avrdevice != NULL)
@@ -358,21 +449,21 @@
 +  }
 +
 +  if ((section = bfd_get_section_by_name (file, ".data")) != NULL)
-+    data_size = bfd_section_size (file, section);
++    my_datasize = bfd_section_size (file, section);
 +  if ((section = bfd_get_section_by_name (file, ".text")) != NULL)
-+    text_size = bfd_section_size (file, section);
++    my_textsize = bfd_section_size (file, section);
 +  if ((section = bfd_get_section_by_name (file, ".bss")) != NULL)
-+    bss_size = bfd_section_size (file, section);
++    my_bsssize = bfd_section_size (file, section);
 +  if ((section = bfd_get_section_by_name (file, ".bootloader")) != NULL)
-+    bootloader_size = bfd_section_size (file, section);
++    bootloadersize = bfd_section_size (file, section);
 +  if ((section = bfd_get_section_by_name (file, ".noinit")) != NULL)
-+    noinit_size = bfd_section_size (file, section);
++    noinitsize = bfd_section_size (file, section);
 +  if ((section = bfd_get_section_by_name (file, ".eeprom")) != NULL)
-+    eeprom_size = bfd_section_size (file, section);
++    eepromsize = bfd_section_size (file, section);
 +  
-+  bfd_size_type text = text_size + data_size + bootloader_size;
-+  bfd_size_type data = data_size + bss_size + noinit_size;
-+  bfd_size_type eeprom = eeprom_size;
++  bfd_size_type text = my_textsize + my_datasize + bootloadersize;
++  bfd_size_type data = my_datasize + my_bsssize + noinitsize;
++  bfd_size_type eeprom = eepromsize;
 +  
 +  printf ("AVR Memory Usage\n"
 +          "----------------\n"




More information about the arch-commits mailing list