Displaying 15 results from an estimated 15 matches for "write_head".
Did you mean:
write_read
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF
perform a few consistency checks, syslinux was unable to run on it. I don't
pretend to have a thorough understanding of the PE+ headers, some bugs may
remain. :)
Celelibi (4):
efi: Fix PE header field rva_and_sizes_nr
efi: Location, size and alignment of .text section
efi: Useless relocations in PE file
efi: PE
2013 Nov 27
0
[PATCH 2/4] efi: Location, size and alignment of .text section
...ibi <celelibi at gmail.com>
---
efi/wrapper.c | 44 +++++++++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 19 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index ec77271..bd2c175 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -54,11 +54,15 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
struct coff_hdr c_hdr;
struct header hdr;
struct coff_reloc c_rel;
- __uint32_t total_sz = so_size;
+ __uint32_t total_sz = data_size;
__uint32_t dummy = 0;
__uint32_t hdr_sz;
__uint32_t reloc_start, reloc_end;
+ hdr_sz = 512;
+ total_sz...
2013 Dec 01
0
[PATCH v2 3/4] efi: Useless relocations in PE file
...ned-off-by: Celelibi <celelibi at gmail.com>
---
efi/wrapper.c | 28 +++-------------------------
1 file changed, 3 insertions(+), 25 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index 8b553f8..4839e52 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -48,14 +48,12 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
{
struct optional_hdr o_hdr;
struct optional_hdr_pe32p o_hdr_pe32p;
- struct section t_sec, r_sec;
+ struct section t_sec;
struct extra_hdr e_hdr;
struct extra_hdr_pe32p e_hdr_pe32p;
struct coff_hdr c_hdr;
struct header hdr;
- struct coff_...
2013 Nov 27
0
[PATCH 3/4] efi: Useless relocations in PE file
...And I think it's better if it can be avoided. :)
efi/wrapper.c | 28 +++-------------------------
1 file changed, 3 insertions(+), 25 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index bd2c175..9652368 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -48,14 +48,12 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
{
struct optional_hdr o_hdr;
struct optional_hdr_pe32p o_hdr_pe32p;
- struct section t_sec, r_sec;
+ struct section t_sec;
struct extra_hdr e_hdr;
struct extra_hdr_pe32p e_hdr_pe32p;
struct coff_hdr c_hdr;
struct header hdr;
- struct coff_...
2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...* 'data_size' is the size of initialised data in the shared object.
* 'class' dictates how the header is written
* For 32bit machines (class == ELFCLASS32), the optional
@@ -44,7 +44,7 @@ typedef Elf64_Addr Elf_Addr;
* header includes PE32+header fields
*/
static void write_header(FILE *f, __uint32_t entry, size_t data_size,
- __uint32_t so_size, __uint8_t class)
+ __uint32_t so_memsz, __uint8_t class)
{
struct optional_hdr o_hdr;
struct optional_hdr_pe32p o_hdr_pe32p;
@@ -100,7 +100,7 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
m...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...* 'data_size' is the size of initialised data in the shared object.
* 'class' dictates how the header is written
* For 32bit machines (class == ELFCLASS32), the optional
@@ -44,7 +44,7 @@ typedef Elf64_Addr Elf_Addr;
* header includes PE32+header fields
*/
static void write_header(FILE *f, __uint32_t entry, size_t data_size,
- __uint32_t so_size, __uint8_t class)
+ __uint32_t so_memsz, __uint8_t class)
{
struct optional_hdr o_hdr;
struct optional_hdr_pe32p o_hdr_pe32p;
@@ -96,7 +96,7 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
mem...
2007 Jan 06
2
S3 throwing invalid argument using AWS S3 API
...in `write0''
E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:151:in `write''
E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:166:in `writing''
E:/InstantRails/ruby/lib/ruby/1.8/net/protocol.rb:150:in `write''
E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1542:in `write_header''
E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1513:in
`send_request_with_body''
E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1496:in `exec''
E:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:1044:in `request''
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.3.0...
2013 Nov 27
0
[PATCH 1/4] efi: Fix PE header field rva_and_sizes_nr
...libi at gmail.com>
---
efi/wrapper.c | 6 +++---
efi/wrapper.h | 28 ++++++++++++++++------------
2 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index 04c895f..ec77271 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -102,7 +102,7 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
e_hdr.image_sz = total_sz;
e_hdr.headers_sz = 512;
e_hdr.subsystem = IMAGE_SUBSYSTEM_EFI_APPLICATION;
- e_hdr.rva_and_sizes_nr = 1;
+ e_hdr.rva_and_sizes_nr = sizeof(e_hdr.data_directory) / sizeof(__uint64_t);
fwrite(&e_hdr, sizeof(e_...
2013 Nov 29
1
[PATCH 1/4] efi: Fix PE header field rva_and_sizes_nr
...| 6 +++---
> efi/wrapper.h | 28 ++++++++++++++++------------
> 2 files changed, 19 insertions(+), 15 deletions(-)
>
> diff --git a/efi/wrapper.c b/efi/wrapper.c
> index 04c895f..ec77271 100644
> --- a/efi/wrapper.c
> +++ b/efi/wrapper.c
> @@ -102,7 +102,7 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
> e_hdr.image_sz = total_sz;
> e_hdr.headers_sz = 512;
> e_hdr.subsystem = IMAGE_SUBSYSTEM_EFI_APPLICATION;
> - e_hdr.rva_and_sizes_nr = 1;
> + e_hdr.rva_and_sizes_nr = sizeof(e_hdr.data_directory) / sizeof(__uint64_t);
Sinc...
2013 Nov 29
1
[PATCH 2/4] efi: Location, size and alignment of .text section
...t; efi/wrapper.c | 44 +++++++++++++++++++++++++-------------------
> 1 file changed, 25 insertions(+), 19 deletions(-)
>
> diff --git a/efi/wrapper.c b/efi/wrapper.c
> index ec77271..bd2c175 100644
> --- a/efi/wrapper.c
> +++ b/efi/wrapper.c
> @@ -54,11 +54,15 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
> struct coff_hdr c_hdr;
> struct header hdr;
> struct coff_reloc c_rel;
> - __uint32_t total_sz = so_size;
> + __uint32_t total_sz = data_size;
> __uint32_t dummy = 0;
> __uint32_t hdr_sz;
> __uint32_t reloc_start,...
2013 Dec 01
0
[PATCH v2 1/4] efi: Fix PE header field rva_and_sizes_nr
...libi at gmail.com>
---
efi/wrapper.c | 6 +++---
efi/wrapper.h | 28 ++++++++++++++++------------
2 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index 04c895f..ec77271 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -102,7 +102,7 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
e_hdr.image_sz = total_sz;
e_hdr.headers_sz = 512;
e_hdr.subsystem = IMAGE_SUBSYSTEM_EFI_APPLICATION;
- e_hdr.rva_and_sizes_nr = 1;
+ e_hdr.rva_and_sizes_nr = sizeof(e_hdr.data_directory) / sizeof(__uint64_t);
fwrite(&e_hdr, sizeof(e_...
2007 Sep 11
3
Production mode bug with ruby/amazon
...n expired):
/usr/lib/ruby/1.8/timeout.rb:54:in `write0''
/usr/lib/ruby/1.8/net/protocol.rb:151:in `write''
/usr/lib/ruby/1.8/net/protocol.rb:166:in `writing''
/usr/lib/ruby/1.8/net/protocol.rb:150:in `write''
/usr/lib/ruby/1.8/net/http.rb:1542:in `write_header''
/usr/lib/ruby/1.8/net/http.rb:1500:in `exec''
/usr/lib/ruby/1.8/net/http.rb:1044:in `request''
/usr/lib/ruby/1.8/net/http.rb:771:in `get''
/lib/amazon/search.rb:973:in `get_page''
/lib/amazon/search.rb:1013:in `search''
/li...
2007 May 23
4
Error when posting form
...39;'
from /usr/local/lib/ruby/1.8/net/protocol.rb:151:in `write''
from /usr/local/lib/ruby/1.8/net/protocol.rb:166:in `writing''
from /usr/local/lib/ruby/1.8/net/protocol.rb:150:in `write''
from /usr/local/lib/ruby/1.8/net/http.rb:1571:in `write_header''
from /usr/local/lib/ruby/1.8/net/http.rb:1536:in
`send_request_with_body''
from /usr/local/lib/ruby/1.8/net/http.rb:1522:in `exec''
from /usr/local/lib/ruby/1.8/net/http.rb:1045:in `request''
from /usr/local/lib/ruby/gems/1.8/gems/...
2018 Jan 16
0
[ANNOUNCE] intel-gpu-tools 1.21
...21.
Radoslaw Szwichtenberg (1):
tests/pm_rps: Move some test logic out of boost function
Rhys Kidd (2):
assembler: Fix bashism in run-test.sh
overlay: Update .gitignore
Scott D Phillips (4):
lib: copy intel_aub.h from libdrm
tools/intel_aubdump: Set addr_bits before write_header
lib/intel_aub: Add new MEM_TRACE commands
tools/intel_aubdump: Add ability to simulate execlist submission
Thierry Reding (4):
tests/perf: Fix a bunch of warnings on 32-bit systems
tools/aubdump: Avoid ISO C90 warning
lib: Fix compilation on non-x86
lib/drmtes...
2012 Jun 23
9
[PATCH 0/5] btrfs: lz4/lz4hc compression
WARNING: This is not compatible with the previous lz4 patchset. If you''re using
experimental compression that isn''t in mainline kernels, be prepared to backup
and restore or decompress before upgrading, and have backups in case it eats
data (which appears not to be a problem any more, but has been during
development).
These patches add lz4 and lz4hc compression