[arch-commits] Commit in avr-binutils/trunk (PKGBUILD avr-size.patch)
Anatol Pomozov
anatolik at archlinux.org
Fri Feb 7 23:24:37 UTC 2020
Date: Friday, February 7, 2020 @ 23:24:37
Author: anatolik
Revision: 563777
upgpkg: avr-binutils 2.34-1
Modified:
avr-binutils/trunk/PKGBUILD
avr-binutils/trunk/avr-size.patch
----------------+
PKGBUILD | 6 +++---
avr-size.patch | 21 +++++++++------------
2 files changed, 12 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-07 23:01:44 UTC (rev 563776)
+++ PKGBUILD 2020-02-07 23:24:37 UTC (rev 563777)
@@ -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 @@
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 at adacore.com>
'3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc at redhat.com>
Modified: avr-size.patch
===================================================================
--- avr-size.patch 2020-02-07 23:01:44 UTC (rev 563776)
+++ avr-size.patch 2020-02-07 23:24:37 UTC (rev 563777)
@@ -1,5 +1,5 @@
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 @@
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 @@
+ return (NULL);
+}
+
-+
-+
+static void
+print_avr_format (bfd *file)
+{
@@ -375,17 +372,17 @@
+ }
+
+ 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 @@
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);
More information about the arch-commits
mailing list