flatload.c (cd59dd8734bebe5bd06be8a3fa79a9f4facf6633) | flatload.c (b4916d7b9d6b086d653db090d366ffe2f44c1323) |
---|---|
1/****************************************************************************/ 2/* 3 * QEMU bFLT binary loader. Based on linux/fs/binfmt_flat.c 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 561 unchanged lines hidden (view full) --- 570 libinfo[id].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos; 571 libinfo[id].build_date = ntohl(hdr->build_date); 572 573 /* 574 * We just load the allocations into some temporary memory to 575 * help simplify all this mumbo jumbo 576 * 577 * We've got two different sections of relocation entries. | 1/****************************************************************************/ 2/* 3 * QEMU bFLT binary loader. Based on linux/fs/binfmt_flat.c 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 561 unchanged lines hidden (view full) --- 570 libinfo[id].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos; 571 libinfo[id].build_date = ntohl(hdr->build_date); 572 573 /* 574 * We just load the allocations into some temporary memory to 575 * help simplify all this mumbo jumbo 576 * 577 * We've got two different sections of relocation entries. |
578 * The first is the GOT which resides at the begining of the data segment | 578 * The first is the GOT which resides at the beginning of the data segment |
579 * and is terminated with a -1. This one can be relocated in place. 580 * The second is the extra relocation entries tacked after the image's 581 * data segment. These require a little more processing as the entry is 582 * really an offset into the image which contains an offset into the 583 * image. 584 */ 585 if (flags & FLAT_FLAG_GOTPIC) { 586 rp = datapos; --- 227 unchanged lines hidden --- | 579 * and is terminated with a -1. This one can be relocated in place. 580 * The second is the extra relocation entries tacked after the image's 581 * data segment. These require a little more processing as the entry is 582 * really an offset into the image which contains an offset into the 583 * image. 584 */ 585 if (flags & FLAT_FLAG_GOTPIC) { 586 rp = datapos; --- 227 unchanged lines hidden --- |