diff options
author | Michael Brown | 2016-03-13 12:09:01 +0100 |
---|---|---|
committer | Michael Brown | 2016-03-13 12:20:53 +0100 |
commit | 1f65ed53da16e383416ae034b585fd52682f5ea7 (patch) | |
tree | 3503be882258c7f371875fbb9dde567f72649fff /src/image | |
parent | [efi] Centralise architecture-independent EFI Makefile and linker script (diff) | |
download | ipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.tar.gz ipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.tar.xz ipxe-1f65ed53da16e383416ae034b585fd52682f5ea7.zip |
[build] Allow assembler section type character to vary by architecture
On some architectures (such as ARM) the "@" character is used as a
comment delimiter. A section type argument such as "@progbits"
therefore becomes "%progbits".
This is further complicated by the fact that the "%" character has
special meaning for inline assembly when input or output operands are
used, in which cases "@progbits" becomes "%%progbits".
Allow the section type character(s) to be defined via Makefile
variables.
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 48dd8685..376e5d29 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 \".rodata\", \"a\", " PROGBITS "\n\t" \ "\nembedded_image_" #_index "_data:\n\t" \ ".incbin \"" _path "\"\n\t" \ "\nembedded_image_" #_index "_end:\n\t" \ |