summaryrefslogtreecommitdiff
blob: 71094f3bf4b682f3b76cdc91372a0113ff777163 (plain)
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
From 30d3253c6b413ba22ca0ca30dcd4c4c24daec2e1 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox@gentoo.org>
Date: Tue, 19 Aug 2014 09:42:43 +0300
Subject: [PATCH] Fix build failure against binutils-2.16.1 and upper.

Follow binutils' upstream change from 2004:

    https://sourceware.org/git/?p=binutils.git;a=commitdiff;h=7e2dd9e4c3e0b69dcb7d471b891879b5fd28687e
    > section.c (struct sec): Rename "_cooked_size" to "size".

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
 src/linux/dwarf-linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/linux/dwarf-linux.c b/src/linux/dwarf-linux.c
index 1941a1f..73be0e6 100644
--- a/src/linux/dwarf-linux.c
+++ b/src/linux/dwarf-linux.c
@@ -155,7 +155,7 @@ find_in_section (bfd * bfd, asection * sect, PTR obj)
 	      first.function = function;
 	      first.line = line;
 	      first.num_lines = 1;
-	      first.limit = sect->_cooked_size;
+	      first.limit = sect->size;
 	      last_line = line;
 	    }
 	  if (line > last_line
-- 
2.0.4