https://sourceware.org/bugzilla/show_bug.cgi?id=24942
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Niklas,
There is an easier way of solving this problem - the assembler's .incbin
directive. For example:
% cat foo.s
.section foo-image, "a", @progbits
.align 4
.global start_of_foo
start_of_foo:
.incbin "foo.jpg"
.global end_of_foo
end_of_foo:
Assembling this will create an object file called foo.o which contains
the contents of foo.jpg in a section called foo-image, and which is
aligned to 4 bytes.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils