Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
OBJRES(1) FreeBSD General Commands Manual OBJRES(1)

objres - compile binary data into an object file.

objres [OPTIONS] [SYMBOL=]FILE ...

objres takes as input one or more files containing binary data, and creates an ELF object file that exports the contents of each input file as a read-only compile-time object. objres also produces a C header file that declares each of the exported objects as an array of unsigned char.

Each input file may be preceded by the symbol name to assign to that binary object. If no symbol name is provided, objres will derive one from the filename.

-o, --output=FILENAME
Set the name of the target object file to FILENAME. If this option is omitted, the default filename will be derived from the name of the exported symbol (or the first symbol, if there is more than one).
-h, --header=FILENAME
Set the name of the header file to FILENAME. If this option is omitted, the default filename will be chosen to match the name of the object file.
-m, --machine={32|64}
Set the target object file to be either a 32-bit ELF object or a 64-bit ELF object. The default type will be the same as the objres binary's type.
-R, --reference=OBJFILE
Examine the object file OBJFILE, and copy the fields from its ELF header to the file created. By default objres will only target x86 platforms; this option allows it to create object files for other platforms.
-r, --read-only
Place the binary objects in read-only memory. The objects will be declared as arrays of const unsigned char.
Display help and exit.
Display version information and exit.

Copyright © 2011 Brian Raiter <>.

License GPLv2+: GNU GPL version 2 or later. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

May 2011 ELF kickers 3.0

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.