search for: ofh

Displaying 7 results from an estimated 7 matches for "ofh".

Did you mean: of
2011 Aug 24
1
[PATCH] febootstrap-supermin-helper: Replace objcopy call for embedding init binary
...EFAULT_ARCH) -O $(ELF_DEFAULT_ARCH) <in> <out> + +use strict; +use warnings; + +die "usage: $0 <in> <out>\n" if @ARGV != 2; + +my ($infile, $outfile) = @ARGV; +my ($buf, $i, $sz); +open my $ifh, '<', $infile or die "open $infile: $!"; +open my $ofh, '>', $outfile or die "open $outfile: $!"; + +print $ofh <<"EOF"; +/* This file has been automatically generated from $infile by $0 */ + +\t.globl\t_binary_${infile}_start +\t.globl\t_binary_${infile}_end +\t.globl\t_binary_${infile}_size + +\t.section\t.data +_...
2017 Aug 23
0
[PATCH v2 supermin 1/1] Switch binary embedding to a C source
...file # -# objcopy -I binary -B $(DEFAULT_ARCH) -O $(ELF_DEFAULT_ARCH) <in> <out> +# The output provides two variables: +# static const char _binary_$name[]; +# static const size_t _binary_$name_len; use strict; use warnings; @@ -36,28 +37,21 @@ $infile_basename =~ s{.*/}{}; print $ofh <<"EOF"; /* This file has been automatically generated from $infile by $0 */ -/* Mark stack as non-executable for GNU tools. */ -\t.section .note.GNU-stack,"",%progbits -\t.previous - -\t.globl\t_binary_${infile_basename}_start -\t.globl\t_binary_${infile_basename}_end...
2017 Aug 23
2
[PATCH v2 supermin 0/1] Fix embedding of init
Hi, this patch replaces the first simpler version: https://www.redhat.com/archives/libguestfs/2017-August/msg00117.html The approach now is to use a C snippet, which should pose way less compatibility issues. Thanks, Pino Toscano (1): Switch binary embedding to a C source .gitignore | 2 +- src/Makefile.am | 18 +++++++++--------- src/{bin2s.pl => bin2c.pl} |
2017 Aug 23
1
[PATCH supermin] bin2s: make sure the data is aligned
...e embedded init is always aligned to 8 bytes, which should work fine for both 32bit and 64bit architectures. --- src/bin2s.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin2s.pl b/src/bin2s.pl index 6c70446..67ff1f2 100755 --- a/src/bin2s.pl +++ b/src/bin2s.pl @@ -44,6 +44,7 @@ print $ofh <<"EOF"; \t.globl\t_binary_${infile_basename}_end \t.section\t.rodata +\t.align 8 _binary_${infile_basename}_start: EOF -- 2.13.5
2015 Dec 31
0
[PATCH] init: Use .rodata instead of .data.
...machine. Thanks: Christian Vogel See thread: https://news.ycombinator.com/item?id=10816921 --- src/bin2s.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin2s.pl b/src/bin2s.pl index 0f892f8..ccb060b 100755 --- a/src/bin2s.pl +++ b/src/bin2s.pl @@ -26,7 +26,7 @@ print $ofh <<"EOF"; \t.globl\t_binary_${infile}_end \t.globl\t_binary_${infile}_size -\t.section\t.data +\t.section\t.rodata _binary_${infile}_start: EOF -- 2.5.0
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2: - If we split out the init program into a separate init/ directory, that makes it much easier to build against an alternate libc. I tried to build against uClibc, but uClibc requires an entire build chain, which looked like it was going to be a massive ballache. Rich.
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...EFAULT_ARCH) -O $(ELF_DEFAULT_ARCH) <in> <out> - -use strict; -use warnings; - -die "usage: $0 <in> <out>\n" if @ARGV != 2; - -my ($infile, $outfile) = @ARGV; -my ($buf, $i, $sz); -open my $ifh, '<', $infile or die "open $infile: $!"; -open my $ofh, '>', $outfile or die "open $outfile: $!"; - -print $ofh <<"EOF"; -/* This file has been automatically generated from $infile by $0 */ - -\t.globl\t_binary_${infile}_start -\t.globl\t_binary_${infile}_end -\t.globl\t_binary_${infile}_size - -\t.section\t.data -_...