1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From 90f2713ca3dfedf8f474e4a56f699f901713df86 Mon Sep 17 00:00:00 2001
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: Wed, 4 Mar 2020 19:55:47 +0000
Subject: [PATCH] Fix bfd_section_size() argument.
Change to bfd_section_size() is done via upstream commit:
fd3619828e94a24a92cddec42cbc0ab33352eeb4
Can be viewed at:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=fd3619828e94a24a92cddec42cbc0ab33352eeb4
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
pu_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pu_lib.c b/pu_lib.c
index 74c543b..844ead7 100644
--- a/pu_lib.c
+++ b/pu_lib.c
@@ -48,7 +48,7 @@ int PU_Read (const char *filename, PICDEFN *pic, int *top)
}
for (section = file->sections; section != NULL; section = section->next) {
- bfd_size_type sz = bfd_section_size (file, section);
+ bfd_size_type sz = bfd_section_size (section);
if ((section->vma % 2) != 0) {
fprintf (stderr, "section not on 16-bit boundary: ignoring");
break;
--
2.20.1
|