~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to linux-user/flatload.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 *  You should have received a copy of the GNU General Public License
16
16
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 *  Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 
18
 *  MA 02110-1301, USA.
18
19
 *
19
20
 *      Copyright (C) 2006 CodeSourcery.
20
21
 *      Copyright (C) 2000-2003 David McCullough <davidm@snapgear.com>
102
103
    return p;
103
104
}
104
105
 
105
 
int target_pread(int fd, abi_ulong ptr, abi_ulong len,
106
 
                 abi_ulong offset)
 
106
static int target_pread(int fd, abi_ulong ptr, abi_ulong len,
 
107
                        abi_ulong offset)
107
108
{
108
109
    void *buf;
109
110
    int ret;
336
337
/****************************************************************************/
337
338
 
338
339
/* ??? This does not handle endianness correctly.  */
339
 
void old_reloc(struct lib_info *libinfo, uint32_t rl)
 
340
static void old_reloc(struct lib_info *libinfo, uint32_t rl)
340
341
{
341
342
#ifdef DEBUG
342
343
        char *segment[] = { "TEXT", "DATA", "BSS", "*UNKNOWN*" };
349
350
        reloc_type = rl >> 30;
350
351
        /* ??? How to handle this?  */
351
352
#if defined(CONFIG_COLDFIRE)
352
 
        ptr = (uint32_t *) (libinfo->start_code + offset);
 
353
        ptr = (uint32_t *) ((unsigned long) libinfo->start_code + offset);
353
354
#else
354
 
        ptr = (uint32_t *) (libinfo->start_data + offset);
 
355
        ptr = (uint32_t *) ((unsigned long) libinfo->start_data + offset);
355
356
#endif
356
357
 
357
358
#ifdef DEBUG
670
671
    }
671
672
 
672
673
    /* zero the BSS.  */
673
 
    memset((void*)(datapos + data_len), 0, bss_len);
 
674
    memset((void *)((unsigned long)datapos + data_len), 0, bss_len);
674
675
 
675
676
    return 0;
676
677
}