Richard W.M. Jones
2015-Dec-31 16:54 UTC
[Libguestfs] [PATCH] init: Use .rodata instead of .data.
This allows sharing of the read only data between supermin binaries running on the same 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
Reasonably Related Threads
- [PATCH] febootstrap-supermin-helper: Replace objcopy call for embedding init binary
- [PATCH v2 supermin 1/1] Switch binary embedding to a C source
- [PATCH supermin] bin2s: make sure the data is aligned
- [PATCH v2 supermin 0/1] Fix embedding of init
- [PATCH supermin v4] Supermin 5 rewrite.