]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Check for broken elftoolchain version of objcopy
authorMichael Brown <mcb30@ipxe.org>
Sat, 30 Jan 2021 01:56:16 +0000 (01:56 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 30 Jan 2021 18:37:01 +0000 (18:37 +0000)
commit1fea8ce06abf997dbfd6b1f5e4470cd708b478c8
tree02ac58604cb41094ddb346dd9188636fd5b2728b
parentfe52f8e8bef150c50e88c78ccc1f2b75a8d0f192
[build] Check for broken elftoolchain version of objcopy

The elftoolchain version of objcopy (as used in FreeBSD) seems to be
unusable for generating a raw binary file, since it will apparently
ignore the load memory addresses specified for each section in the
input file.

The binutils version of objcopy may be used on FreeBSD by specifying

  OBJCOPY=/usr/local/bin/objcopy

Detect an attempt to use the unusable elftoolchain version of objcopy
and report it as an error.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping