~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to bfd/section.c.rej

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
*************** bfd_malloc_and_get_section (bfd *abfd, s
 
2
*** 1477,1483 ****
 
3
    if (sz == 0)
 
4
      return TRUE;
 
5
  
 
6
-   p = bfd_malloc (sec->rawsize > sec->size ? sec->rawsize : sec->size);
 
7
    if (p == NULL)
 
8
      return FALSE;
 
9
    *buf = p;
 
10
--- 1477,1483 ----
 
11
    if (sz == 0)
 
12
      return TRUE;
 
13
  
 
14
+   p = bfd_zmalloc (sec->rawsize > sec->size ? sec->rawsize : sec->size);
 
15
    if (p == NULL)
 
16
      return FALSE;
 
17
    *buf = p;