Skip to content
Snippets Groups Projects
Commit eadb081c authored by Anatol Pomozov's avatar Anatol Pomozov
Browse files

upgpkg: 2.34-1

parent 43f4023d
No related branches found
Tags 2.34-1
No related merge requests found
......@@ -6,7 +6,7 @@
# Build order: avr-binutils -> avr-gcc -> avr-libc
pkgname=avr-binutils
pkgver=2.33.1
pkgver=2.34
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files for the AVR architecture"
arch=('x86_64')
......@@ -16,9 +16,9 @@ depends=('glibc>=2.17' 'zlib' 'binutils')
options=('!distcc' '!ccache')
source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
avr-size.patch)
sha1sums=('332c7df7e1830c1e756cf4a5542a7952200210c1'
sha1sums=('361566c9ab5e90bd847d06f46fb9f18ec6c3ecf0'
'SKIP'
'7ec726441f086bf13142884901a6eb8d571f53ae')
'bb820f761fbbe7379ddf8e75235866c44591c899')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com>
'3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc@redhat.com>
......
diff --git a/binutils/size.c b/binutils/size.c
index 479a464887..f0b38e66a6 100644
index 3697087714..f99d45a6bf 100644
--- a/binutils/size.c
+++ b/binutils/size.c
@@ -51,7 +51,8 @@ enum output_format
......@@ -325,11 +325,10 @@ index 479a464887..f0b38e66a6 100644
case 'v':
case 'V':
show_version = 1;
@@ -648,6 +903,101 @@ print_sysv_format (bfd *file)
@@ -656,6 +911,98 @@ print_sysv_format (bfd *file)
printf ("\n\n");
}
+
+static avr_device_t *
+avr_find_device (void)
+{
......@@ -348,8 +347,6 @@ index 479a464887..f0b38e66a6 100644
+ return (NULL);
+}
+
+
+
+static void
+print_avr_format (bfd *file)
+{
......@@ -375,17 +372,17 @@ index 479a464887..f0b38e66a6 100644
+ }
+
+ if ((section = bfd_get_section_by_name (file, ".data")) != NULL)
+ my_datasize = bfd_section_size (file, section);
+ my_datasize = bfd_section_size (section);
+ if ((section = bfd_get_section_by_name (file, ".text")) != NULL)
+ my_textsize = bfd_section_size (file, section);
+ my_textsize = bfd_section_size (section);
+ if ((section = bfd_get_section_by_name (file, ".bss")) != NULL)
+ my_bsssize = bfd_section_size (file, section);
+ my_bsssize = bfd_section_size (section);
+ if ((section = bfd_get_section_by_name (file, ".bootloader")) != NULL)
+ bootloadersize = bfd_section_size (file, section);
+ bootloadersize = bfd_section_size (section);
+ if ((section = bfd_get_section_by_name (file, ".noinit")) != NULL)
+ noinitsize = bfd_section_size (file, section);
+ noinitsize = bfd_section_size (section);
+ if ((section = bfd_get_section_by_name (file, ".eeprom")) != NULL)
+ eepromsize = bfd_section_size (file, section);
+ eepromsize = bfd_section_size (section);
+
+ bfd_size_type text = my_textsize + my_datasize + bootloadersize;
+ bfd_size_type data = my_datasize + my_bsssize + noinitsize;
......@@ -427,7 +424,7 @@ index 479a464887..f0b38e66a6 100644
static void
print_sizes (bfd *file)
{
@@ -655,6 +1005,8 @@ print_sizes (bfd *file)
@@ -663,6 +1010,8 @@ print_sizes (bfd *file)
calculate_common_size (file);
if (selected_output_format == FORMAT_SYSV)
print_sysv_format (file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment