diff options
| author | Michael Brown | 2025-04-30 13:01:42 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-30 16:38:15 +0200 |
| commit | 3303910010071ad7b8fc92125d42e523aef5168d (patch) | |
| tree | 1dae3a38264d5eefa6127770e0033af50fd1622a /src/image | |
| parent | [test] Separate read-only and writable CMS test images (diff) | |
| download | ipxe-3303910010071ad7b8fc92125d42e523aef5168d.tar.gz ipxe-3303910010071ad7b8fc92125d42e523aef5168d.tar.xz ipxe-3303910010071ad7b8fc92125d42e523aef5168d.zip | |
[image] Move embedded images from .rodata to .data
Decrypting a CMS-encrypted image will overwrite the existing image
data in place, and using an encrypted embedded image is a valid use
case.
Move embedded images from .rodata to .data to reflect the fact that
they are intended to be writable.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/embedded.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/embedded.c b/src/image/embedded.c index 3c4bee655..58833ac30 100644 --- a/src/image/embedded.c +++ b/src/image/embedded.c @@ -18,7 +18,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define EMBED( _index, _path, _name ) \ extern char embedded_image_ ## _index ## _data[]; \ extern char embedded_image_ ## _index ## _len[]; \ - __asm__ ( ".section \".rodata\", \"a\", " PROGBITS "\n\t" \ + __asm__ ( ".section \".data\", \"aw\", " PROGBITS "\n\t" \ "\nembedded_image_" #_index "_data:\n\t" \ ".incbin \"" _path "\"\n\t" \ "\nembedded_image_" #_index "_end:\n\t" \ |
