ukify: Prefer using llvm-objcopy instead of objcopy
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 19 Dec 2022 14:29:43 +0000 (15:29 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Dec 2022 11:20:24 +0000 (12:20 +0100)
commit789a642738d28cf2a8ad3f65df9c0c136e83af09
tree88b22d58d9315f2effabaa5b9b924ef7286d2034
parent22ad038ac6e4fe5e4a68555f0e70bd0a16fb5616
ukify: Prefer using llvm-objcopy instead of objcopy

llvm-objcopy works on stubs built for foreign architectures whereas
objcopy doesn't so let's prefer using llvm-objcopy instead of objcopy.

llvm-objcopy automatically sets the virtual address and doesn't provide
an option to set it manually so we only add --change-section-vma when
using objcopy

The default section flags differ between llvm-objcopy and objcopy
so we add a default for the section flags so we make sure all sections
are read-only data unless specified otherwise.
src/ukify/ukify.py