File: 0001-Fix-bfd_section_size-argument.patch

package info (click to toggle)
nitpic 0.1-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: cpp: 3,845; ansic: 1,035; asm: 144; makefile: 15
file content (32 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (4)
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