summaryrefslogtreecommitdiffstats
path: root/scripts/fix_size.c
Commit message (Collapse)AuthorAgeFilesLines
* scripts: fix warning generated by glibc 2.20Lucas Stach2015-03-021-3/+3
| | | | | | | | | | | | | Defining only _BSD_SOURCE is deprecated with version 2.20 of glibc. It has been replaced by _DEFAULT_SOURCE. The manpage says that code which wants to work in the same way on both old and new versions of glibc should simply define both symbols. Also move the definition up in fix_size as those feature flags should be defined before including any standard headers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: fix_size: check magicSascha Hauer2014-01-311-7/+32
| | | | | | | | Instead of passing the offset to the fix_size tool check the image to fixup for a valid header so that only recognized files are fixed up. This makes the usage of this tool safer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add fix size toolsJean-Christophe PLAGNIOL-VILLARD2013-09-181-0/+81
this will allow to write the size of barebox at an offset of the binary this is needed for ARM when using relocated binary Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>