PATCH: gas .incbin pseudo-op

Anders Norlander anorland@synergenix.se
Fri Jun 29 08:46:00 GMT 2001


Hi all,

this patch adds a .incbin directive to gas to include files
verbatim at the current location, as found in many other assemblers.
I'm a bit surprised this has not come up before, but the archives
didn't reveal anything.

Syntax:
.incbin "file"[,skip[,count]]

The same search path as .include is searched for the file,
but the local directory is tried first.

Tested on i*86-*-linux*, i*86-cygwin and arm-elf-thumb,
there is also a testcase attached.

Comments?

Regards,
Anders



More information about the Binutils mailing list